Package io.keikaiex.ui.widget
Class BaseWidget
- java.lang.Object
-
- io.keikaiex.ui.widget.BaseWidget
-
- All Implemented Interfaces:
Widget,Serializable
- Direct Known Subclasses:
ChartsWidget,ImageWidget
public abstract class BaseWidget extends Object implements Widget
- Author:
- Dennis.Chen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseWidget(String panel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener)voidadjustLocation()intgetColumn()get cell column index to anchorintgetColumn2()org.zkoss.zk.ui.ComponentgetComponent()protected WidgetCtrlgetCtrl()StringgetCtrlKeys()WidgetHandlergetHandler()StringgetId()the id of this widgetprotected org.zkoss.zk.ui.ComponentgetInnerComponent()intgetLeft()get the left margin of the anchored cellStringgetPanel()the panel to stay.intgetRow()get cell row index to anchorintgetRow2()intgetTop()get the top margin of the anchored cellabstract StringgetWidgetType()Returns the widget type.intgetZindex()set the z index of this widgetabstract voidinvalidate()booleanisMovable()booleanisSizable()booleanisVisible()protected WidgetCtrlnewCtrl()booleanremoveEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener)voidsetColumn(int column)set cell column index to anchorvoidsetColumn2(int column)voidsetCtrlKeys(String ctrlKeys)voidsetHandler(WidgetHandler handler)voidsetId(String id)voidsetLeft(int left)set the left margin of the anchored cellvoidsetMovable(boolean movable)voidsetRow(int row)set cell row index to anchorvoidsetRow2(int row)voidsetSizable(boolean sizable)voidsetTop(int top)set the top margin of the anchored cellvoidsetVisible(boolean visible)voidsetZindex(int zindex)set the z-index of this widgetStringtoString()
-
-
-
Constructor Detail
-
BaseWidget
protected BaseWidget(String panel)
-
-
Method Detail
-
newCtrl
protected WidgetCtrl newCtrl()
-
getComponent
public org.zkoss.zk.ui.Component getComponent()
-
getInnerComponent
protected org.zkoss.zk.ui.Component getInnerComponent()
-
getCtrl
protected WidgetCtrl getCtrl()
-
getHandler
public WidgetHandler getHandler()
-
setHandler
public void setHandler(WidgetHandler handler)
-
getRow
public int getRow()
Description copied from interface:Widgetget cell row index to anchor
-
setRow
public void setRow(int row)
Description copied from interface:Widgetset cell row index to anchor
-
getColumn
public int getColumn()
Description copied from interface:Widgetget cell column index to anchor
-
setColumn
public void setColumn(int column)
Description copied from interface:Widgetset cell column index to anchor
-
getRow2
public int getRow2()
-
setRow2
public void setRow2(int row)
-
getColumn2
public int getColumn2()
-
setColumn2
public void setColumn2(int column)
-
getLeft
public int getLeft()
Description copied from interface:Widgetget the left margin of the anchored cell
-
setLeft
public void setLeft(int left)
Description copied from interface:Widgetset the left margin of the anchored cell
-
getTop
public int getTop()
Description copied from interface:Widgetget the top margin of the anchored cell
-
setTop
public void setTop(int top)
Description copied from interface:Widgetset the top margin of the anchored cell
-
setZindex
public void setZindex(int zindex)
Description copied from interface:Widgetset the z-index of this widget
-
getZindex
public int getZindex()
Description copied from interface:Widgetset the z index of this widget
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
isMovable
public boolean isMovable()
-
setMovable
public void setMovable(boolean movable)
-
isSizable
public boolean isSizable()
-
setSizable
public void setSizable(boolean sizable)
-
setCtrlKeys
public void setCtrlKeys(String ctrlKeys)
-
getCtrlKeys
public String getCtrlKeys()
-
setId
public void setId(String id)
-
addEventListener
public void addEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener)
-
removeEventListener
public boolean removeEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener)
-
getPanel
public String getPanel()
Description copied from interface:Widgetthe panel to stay. available value is corner,top,left or default
-
adjustLocation
public void adjustLocation()
-
invalidate
public abstract void invalidate()
-
getWidgetType
public abstract String getWidgetType()
Returns the widget type.- Returns:
- the widget type.
-
-