Package io.keikaiex.ui.widget
Class ChartsWidget
- java.lang.Object
-
- io.keikaiex.ui.widget.BaseWidget
-
- io.keikaiex.ui.widget.ChartsWidget
-
- All Implemented Interfaces:
Widget
,Serializable
public class ChartsWidget extends BaseWidget
A ChartWidget to show chart in spreadsheet. The implementation of this widget isChart
, you can getChart
component by callBaseWidget.getComponent()
- Author:
- henrichen@zkoss.org, dennis , refine to new chart model
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChartsWidget(SSheet sheet, SChart chartInfo, String panel, int zindex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZssCharts
createChart(SChart chartInfo)
Number
getHeight()
protected org.zkoss.zk.ui.Component
getInnerComponent()
String
getTitle()
String
getType()
String
getWidgetType()
Returns the widget type.Number
getWidth()
void
invalidate()
boolean
isThreeD()
void
setHeight(Number height)
void
setThreeD(boolean enabled)
void
setTitle(String title)
void
setType(String type)
void
setWidth(Number width)
-
Methods inherited from class io.keikaiex.ui.widget.BaseWidget
addEventListener, adjustLocation, getColumn, getColumn2, getComponent, getCtrl, getCtrlKeys, getHandler, getId, getLeft, getPanel, getRow, getRow2, getTop, getZindex, isMovable, isSizable, isVisible, newCtrl, removeEventListener, setColumn, setColumn2, setCtrlKeys, setHandler, setId, setLeft, setMovable, setRow, setRow2, setSizable, setTop, setVisible, setZindex, toString
-
-
-
-
Method Detail
-
getInnerComponent
protected org.zkoss.zk.ui.Component getInnerComponent()
- Overrides:
getInnerComponent
in classBaseWidget
-
getType
public String getType()
-
setType
public void setType(String type)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
isThreeD
public boolean isThreeD()
-
setThreeD
public void setThreeD(boolean enabled)
-
setWidth
public void setWidth(Number width)
-
getWidth
public Number getWidth()
-
setHeight
public void setHeight(Number height)
-
getHeight
public Number getHeight()
-
invalidate
public void invalidate()
- Specified by:
invalidate
in classBaseWidget
-
getWidgetType
public String getWidgetType()
Description copied from class:BaseWidget
Returns the widget type.- Specified by:
getWidgetType
in classBaseWidget
- Returns:
- the widget type.
-
-