Class TreeitemActionComponent

    • Constructor Summary

      Constructors 
      Constructor Description
      TreeitemActionComponent​(org.zkoss.zul.Treeitem item)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String name)
      Gets an attribute of specified name from action representation component
      org.zkoss.zk.ui.HtmlBasedComponent getComponent()
      Gets action representation component
      java.lang.String getImage()
      Gets uri to action icon
      java.lang.String getLabel()
      Gets current label representation of action
      org.zkoss.zul.Treecell getLabelCell()  
      java.lang.String getTooltiptext()
      Gets current action's tooltip
      boolean hasAttribute​(java.lang.String name)
      Checks whether action representation component has defined an attribute of specified name
      java.lang.Object removeAttribute​(java.lang.String name)
      Removes definition of specified attribute from action representation component
      java.lang.Object setAttribute​(java.lang.String name, java.lang.Object value)
      Sets new value of specified attribute in action representation component
      void setImage​(java.lang.String image)
      Sets new uri to action icon
      void setLabel​(java.lang.String label)
      Sets new label representation of action
      void setTooltiptext​(java.lang.String tooltiptext)
      Sets new action's tooltip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeitemActionComponent

        public TreeitemActionComponent​(org.zkoss.zul.Treeitem item)
    • Method Detail

      • getLabelCell

        public org.zkoss.zul.Treecell getLabelCell()
      • setLabel

        public void setLabel​(java.lang.String label)
        Description copied from interface: ActionComponent
        Sets new label representation of action
        Specified by:
        setLabel in interface ActionComponent
        Parameters:
        label - label representation
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: ActionComponent
        Gets current label representation of action
        Specified by:
        getLabel in interface ActionComponent
        Returns:
        label representation
      • getImage

        public java.lang.String getImage()
        Description copied from interface: ActionComponent
        Gets uri to action icon
        Specified by:
        getImage in interface ActionComponent
        Returns:
        action's icon uri
      • setImage

        public void setImage​(java.lang.String image)
        Description copied from interface: ActionComponent
        Sets new uri to action icon
        Specified by:
        setImage in interface ActionComponent
        Parameters:
        image - action's icon uri
      • setTooltiptext

        public void setTooltiptext​(java.lang.String tooltiptext)
        Description copied from interface: ActionComponent
        Sets new action's tooltip
        Specified by:
        setTooltiptext in interface ActionComponent
        Parameters:
        tooltiptext - new tooltip
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Description copied from interface: ActionComponent
        Gets an attribute of specified name from action representation component
        Specified by:
        getAttribute in interface ActionComponent
        Parameters:
        name - name of attribute
        Returns:
        value of component's attribute
      • hasAttribute

        public boolean hasAttribute​(java.lang.String name)
        Description copied from interface: ActionComponent
        Checks whether action representation component has defined an attribute of specified name
        Specified by:
        hasAttribute in interface ActionComponent
        Parameters:
        name - name of attribute
        Returns:
        true if component defines an attribute
      • setAttribute

        public java.lang.Object setAttribute​(java.lang.String name,
                                             java.lang.Object value)
        Description copied from interface: ActionComponent
        Sets new value of specified attribute in action representation component
        Specified by:
        setAttribute in interface ActionComponent
        Parameters:
        name - name of attribute
        value - value of attribute
        Returns:
        previous value of attribute
      • removeAttribute

        public java.lang.Object removeAttribute​(java.lang.String name)
        Description copied from interface: ActionComponent
        Removes definition of specified attribute from action representation component
        Specified by:
        removeAttribute in interface ActionComponent
        Parameters:
        name - name of attribute
        Returns:
        value of attribute just removed
      • getComponent

        public org.zkoss.zk.ui.HtmlBasedComponent getComponent()
        Description copied from interface: ActionComponent
        Gets action representation component
        Specified by:
        getComponent in interface ActionComponent
        Returns:
        actual component