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 is Image, you can get Image component by call BaseWidget.getComponent()
Author:
Dennis.Chen
See Also:
  • Constructor Details

  • Method Details

    • getInnerComponent

      protected org.zkoss.zk.ui.Component getInnerComponent()
      Overrides:
      getInnerComponent in class BaseWidget
    • 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 class BaseWidget
    • invalidate

      public void invalidate()
      Specified by:
      invalidate in class BaseWidget
    • getWidgetType

      public String getWidgetType()
      Description copied from class: BaseWidget
      Returns the widget type.
      Specified by:
      getWidgetType in class BaseWidget
      Returns:
      the widget type.
    • getName

      public String getName()
      Description copied from class: BaseWidget
      Returns the name.
      Specified by:
      getName in class BaseWidget
      Returns:
      the name
    • setName

      public void setName(String name)
      Description copied from class: BaseWidget
      Sets the name.
      Specified by:
      setName in class BaseWidget