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
- Author:
- Dennis.Chen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener) voidintget cell column index to anchorintorg.zkoss.zk.ui.Componentprotected WidgetCtrlgetCtrl()getId()the id of this widgetprotected org.zkoss.zk.ui.ComponentintgetLeft()get the left margin of the anchored cellabstract StringgetName()Returns the name.getPanel()the panel to stay.intgetRow()get cell row index to anchorintgetRow2()intgetTop()get the top margin of the anchored cellabstract StringReturns the widget type.intset the z index of this widgetabstract voidbooleanbooleanbooleanprotected 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) voidvoidsetLeft(int left) set the left margin of the anchored cellvoidsetMovable(boolean movable) abstract voidSets the name.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 widgettoString()void
-
Constructor Details
-
BaseWidget
-
-
Method Details
-
newCtrl
-
getComponent
public org.zkoss.zk.ui.Component getComponent() -
getInnerComponent
protected org.zkoss.zk.ui.Component getInnerComponent() -
getCtrl
-
getHandler
-
setHandler
-
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
-
getCtrlKeys
-
setId
-
getId
Description copied from interface:Widgetthe id of this widget -
addEventListener
-
removeEventListener
-
toString
-
getPanel
Description copied from interface:Widgetthe panel to stay. available value is corner,top,left or default -
adjustLocation
public void adjustLocation() -
updateName
public void updateName() -
invalidate
public abstract void invalidate() -
getWidgetType
Returns the widget type.- Returns:
- the widget type.
-
getName
Returns the name.- Returns:
- the name
- Since:
- 6.2.0
-
setName
Sets the name.- Parameters:
name-- Since:
- 6.2.0
-