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 protected
BaseWidget(String panel)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener)
void
adjustLocation()
int
getColumn()
get cell column index to anchorint
getColumn2()
org.zkoss.zk.ui.Component
getComponent()
protected WidgetCtrl
getCtrl()
String
getCtrlKeys()
WidgetHandler
getHandler()
String
getId()
the id of this widgetprotected org.zkoss.zk.ui.Component
getInnerComponent()
int
getLeft()
get the left margin of the anchored cellString
getPanel()
the panel to stay.int
getRow()
get cell row index to anchorint
getRow2()
int
getTop()
get the top margin of the anchored cellabstract String
getWidgetType()
Returns the widget type.int
getZindex()
set the z index of this widgetabstract void
invalidate()
boolean
isMovable()
boolean
isSizable()
boolean
isVisible()
protected WidgetCtrl
newCtrl()
boolean
removeEventListener(String evtnm, org.zkoss.zk.ui.event.EventListener listener)
void
setColumn(int column)
set cell column index to anchorvoid
setColumn2(int column)
void
setCtrlKeys(String ctrlKeys)
void
setHandler(WidgetHandler handler)
void
setId(String id)
void
setLeft(int left)
set the left margin of the anchored cellvoid
setMovable(boolean movable)
void
setRow(int row)
set cell row index to anchorvoid
setRow2(int row)
void
setSizable(boolean sizable)
void
setTop(int top)
set the top margin of the anchored cellvoid
setVisible(boolean visible)
void
setZindex(int zindex)
set the z-index of this widgetString
toString()
-
-
-
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:Widget
get cell row index to anchor
-
setRow
public void setRow(int row)
Description copied from interface:Widget
set cell row index to anchor
-
getColumn
public int getColumn()
Description copied from interface:Widget
get cell column index to anchor
-
setColumn
public void setColumn(int column)
Description copied from interface:Widget
set 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:Widget
get the left margin of the anchored cell
-
setLeft
public void setLeft(int left)
Description copied from interface:Widget
set the left margin of the anchored cell
-
getTop
public int getTop()
Description copied from interface:Widget
get the top margin of the anchored cell
-
setTop
public void setTop(int top)
Description copied from interface:Widget
set the top margin of the anchored cell
-
setZindex
public void setZindex(int zindex)
Description copied from interface:Widget
set the z-index of this widget
-
getZindex
public int getZindex()
Description copied from interface:Widget
set 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:Widget
the 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.
-
-