Class BaseWidget

    • Constructor Detail

      • BaseWidget

        protected BaseWidget​(String panel)
    • Method Detail

      • getComponent

        public org.zkoss.zk.ui.Component getComponent()
      • getInnerComponent

        protected org.zkoss.zk.ui.Component getInnerComponent()
      • getRow

        public int getRow()
        Description copied from interface: Widget
        get cell row index to anchor
        Specified by:
        getRow in interface Widget
        Returns:
        row anchor
      • setRow

        public void setRow​(int row)
        Description copied from interface: Widget
        set cell row index to anchor
        Specified by:
        setRow in interface Widget
        Parameters:
        row - row anchor
      • getColumn

        public int getColumn()
        Description copied from interface: Widget
        get cell column index to anchor
        Specified by:
        getColumn in interface Widget
        Returns:
        column anchor
      • setColumn

        public void setColumn​(int column)
        Description copied from interface: Widget
        set cell column index to anchor
        Specified by:
        setColumn in interface Widget
        Parameters:
        column - column 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
        Specified by:
        getLeft in interface Widget
        Returns:
        left margin
      • setLeft

        public void setLeft​(int left)
        Description copied from interface: Widget
        set the left margin of the anchored cell
        Specified by:
        setLeft in interface Widget
        Parameters:
        left - left offset
      • getTop

        public int getTop()
        Description copied from interface: Widget
        get the top margin of the anchored cell
        Specified by:
        getTop in interface Widget
        Returns:
        top offset
      • setTop

        public void setTop​(int top)
        Description copied from interface: Widget
        set the top margin of the anchored cell
        Specified by:
        setTop in interface Widget
        Parameters:
        top - top offset
      • setZindex

        public void setZindex​(int zindex)
        Description copied from interface: Widget
        set the z-index of this widget
        Specified by:
        setZindex in interface Widget
        Parameters:
        zindex - the z-index
      • getZindex

        public int getZindex()
        Description copied from interface: Widget
        set the z index of this widget
        Specified by:
        getZindex in interface Widget
        Returns:
        z-index
      • 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)
      • getId

        public String getId()
        Description copied from interface: Widget
        the id of this widget
        Specified by:
        getId in interface Widget
        Returns:
      • 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
        Specified by:
        getPanel in interface Widget
        Returns:
      • adjustLocation

        public void adjustLocation()
      • invalidate

        public abstract void invalidate()
      • getWidgetType

        public abstract String getWidgetType()
        Returns the widget type.
        Returns:
        the widget type.