Package io.keikaiex.ui.widget
Class ImageWidget
- java.lang.Object
-
- io.keikaiex.ui.widget.BaseWidget
-
- io.keikaiex.ui.widget.ImageWidget
-
- All Implemented Interfaces:
Widget
,Serializable
public class ImageWidget extends BaseWidget
A ImageWiget to show image in spreadsheet. The implementation of this widget isImage
, you can getImage
component by callBaseWidget.getComponent()
- Author:
- Dennis.Chen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageWidget(SSheet sheet, SPicture pic, String panel)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getBorder()
Deprecated.use CSS instead.org.zkoss.image.Image
getContent()
String
getHeight()
protected org.zkoss.zk.ui.Component
getInnerComponent()
String
getSrc()
String
getWidgetType()
Returns the widget type.String
getWidth()
void
invalidate()
protected WidgetCtrl
newCtrl()
void
setBorder(String border)
Deprecated.use CSS instead.void
setContent(org.zkoss.image.Image image)
void
setHeight(String h)
void
setSrc(String src)
void
setWidth(String w)
-
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, 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
-
getSrc
public String getSrc()
-
setSrc
public void setSrc(String src)
-
getContent
public org.zkoss.image.Image getContent()
-
setWidth
public void setWidth(String w)
-
getWidth
public String getWidth()
-
setHeight
public void setHeight(String h)
-
getHeight
public String getHeight()
-
setBorder
public void setBorder(String border)
Deprecated.use CSS instead.
-
getBorder
public String getBorder()
Deprecated.use CSS instead.
-
setContent
public void setContent(org.zkoss.image.Image image)
-
newCtrl
protected WidgetCtrl newCtrl()
- Overrides:
newCtrl
in classBaseWidget
-
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.
-
-