Class TreeitemActionComponent
- java.lang.Object
-
- com.hybris.backoffice.actionbar.impl.TreeitemActionComponent
-
- All Implemented Interfaces:
ActionComponent
public class TreeitemActionComponent extends java.lang.Object implements ActionComponent
ActionDefinitionrepresented byTreeitemcomponent
-
-
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.ObjectgetAttribute(java.lang.String name)Gets an attribute of specified name from action representation componentorg.zkoss.zk.ui.HtmlBasedComponentgetComponent()Gets action representation componentjava.lang.StringgetImage()Gets uri to action iconjava.lang.StringgetLabel()Gets current label representation of actionorg.zkoss.zul.TreecellgetLabelCell()java.lang.StringgetTooltiptext()Gets current action's tooltipbooleanhasAttribute(java.lang.String name)Checks whether action representation component has defined an attribute of specified namejava.lang.ObjectremoveAttribute(java.lang.String name)Removes definition of specified attribute from action representation componentjava.lang.ObjectsetAttribute(java.lang.String name, java.lang.Object value)Sets new value of specified attribute in action representation componentvoidsetImage(java.lang.String image)Sets new uri to action iconvoidsetLabel(java.lang.String label)Sets new label representation of actionvoidsetTooltiptext(java.lang.String tooltiptext)Sets new action's tooltip
-
-
-
Method Detail
-
getLabelCell
public org.zkoss.zul.Treecell getLabelCell()
-
setLabel
public void setLabel(java.lang.String label)
Description copied from interface:ActionComponentSets new label representation of action- Specified by:
setLabelin interfaceActionComponent- Parameters:
label- label representation
-
getLabel
public java.lang.String getLabel()
Description copied from interface:ActionComponentGets current label representation of action- Specified by:
getLabelin interfaceActionComponent- Returns:
- label representation
-
getImage
public java.lang.String getImage()
Description copied from interface:ActionComponentGets uri to action icon- Specified by:
getImagein interfaceActionComponent- Returns:
- action's icon uri
-
setImage
public void setImage(java.lang.String image)
Description copied from interface:ActionComponentSets new uri to action icon- Specified by:
setImagein interfaceActionComponent- Parameters:
image- action's icon uri
-
getTooltiptext
public java.lang.String getTooltiptext()
Description copied from interface:ActionComponentGets current action's tooltip- Specified by:
getTooltiptextin interfaceActionComponent- Returns:
- tooltip
-
setTooltiptext
public void setTooltiptext(java.lang.String tooltiptext)
Description copied from interface:ActionComponentSets new action's tooltip- Specified by:
setTooltiptextin interfaceActionComponent- Parameters:
tooltiptext- new tooltip
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
Description copied from interface:ActionComponentGets an attribute of specified name from action representation component- Specified by:
getAttributein interfaceActionComponent- Parameters:
name- name of attribute- Returns:
- value of component's attribute
-
hasAttribute
public boolean hasAttribute(java.lang.String name)
Description copied from interface:ActionComponentChecks whether action representation component has defined an attribute of specified name- Specified by:
hasAttributein interfaceActionComponent- Parameters:
name- name of attribute- Returns:
trueif component defines an attribute
-
setAttribute
public java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:ActionComponentSets new value of specified attribute in action representation component- Specified by:
setAttributein interfaceActionComponent- Parameters:
name- name of attributevalue- value of attribute- Returns:
- previous value of attribute
-
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
Description copied from interface:ActionComponentRemoves definition of specified attribute from action representation component- Specified by:
removeAttributein interfaceActionComponent- Parameters:
name- name of attribute- Returns:
- value of attribute just removed
-
getComponent
public org.zkoss.zk.ui.HtmlBasedComponent getComponent()
Description copied from interface:ActionComponentGets action representation component- Specified by:
getComponentin interfaceActionComponent- Returns:
- actual component
-
-