Package com.hybris.backoffice.actionbar
Interface ActionComponent
-
- All Known Implementing Classes:
LabelImageActionComponent,MenuActionComponent,MenuitemActionComponent,TreeitemActionComponent
public interface ActionComponentA component interface that represents a single action
-
-
Method Summary
All Methods Instance Methods Abstract 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.ComponentgetComponent()Gets action representation componentjava.lang.StringgetImage()Gets uri to action iconjava.lang.StringgetLabel()Gets current label representation of actionjava.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
-
setLabel
void setLabel(java.lang.String label)
Sets new label representation of action- Parameters:
label- label representation
-
getLabel
java.lang.String getLabel()
Gets current label representation of action- Returns:
- label representation
-
getImage
java.lang.String getImage()
Gets uri to action icon- Returns:
- action's icon uri
-
setImage
void setImage(java.lang.String image)
Sets new uri to action icon- Parameters:
image- action's icon uri
-
getTooltiptext
java.lang.String getTooltiptext()
Gets current action's tooltip- Returns:
- tooltip
-
setTooltiptext
void setTooltiptext(java.lang.String tooltiptext)
Sets new action's tooltip- Parameters:
tooltiptext- new tooltip
-
getAttribute
java.lang.Object getAttribute(java.lang.String name)
Gets an attribute of specified name from action representation component- Parameters:
name- name of attribute- Returns:
- value of component's attribute
-
hasAttribute
boolean hasAttribute(java.lang.String name)
Checks whether action representation component has defined an attribute of specified name- Parameters:
name- name of attribute- Returns:
trueif component defines an attribute
-
setAttribute
java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)Sets new value of specified attribute in action representation component- Parameters:
name- name of attributevalue- value of attribute- Returns:
- previous value of attribute
-
removeAttribute
java.lang.Object removeAttribute(java.lang.String name)
Removes definition of specified attribute from action representation component- Parameters:
name- name of attribute- Returns:
- value of attribute just removed
-
getComponent
org.zkoss.zk.ui.Component getComponent()
Gets action representation component- Returns:
- actual component
-
-