public class MenuitemActionComponent extends Object implements ActionComponent
ActionDefinition represented by Menuitem component| Constructor and Description |
|---|
MenuitemActionComponent(org.zkoss.zul.Menuitem menuitem) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Gets an attribute of specified name from action representation component
|
org.zkoss.zk.ui.Component |
getComponent()
Gets action representation component
|
String |
getImage()
Gets uri to action icon
|
String |
getLabel()
Gets current label representation of action
|
String |
getTooltiptext()
Gets current action's tooltip
|
boolean |
hasAttribute(String name)
Checks whether action representation component has defined an attribute of specified name
|
Object |
removeAttribute(String name)
Removes definition of specified attribute from action representation component
|
Object |
setAttribute(String name,
Object value)
Sets new value of specified attribute in action representation component
|
void |
setImage(String image)
Sets new uri to action icon
|
void |
setLabel(String label)
Sets new label representation of action
|
void |
setTooltiptext(String tooltiptext)
Sets new action's tooltip
|
public MenuitemActionComponent(org.zkoss.zul.Menuitem menuitem)
public void setLabel(String label)
ActionComponentsetLabel in interface ActionComponentlabel - label representationpublic String getLabel()
ActionComponentgetLabel in interface ActionComponentpublic String getImage()
ActionComponentgetImage in interface ActionComponentpublic void setImage(String image)
ActionComponentsetImage in interface ActionComponentimage - action's icon uripublic String getTooltiptext()
ActionComponentgetTooltiptext in interface ActionComponentpublic void setTooltiptext(String tooltiptext)
ActionComponentsetTooltiptext in interface ActionComponenttooltiptext - new tooltippublic Object getAttribute(String name)
ActionComponentgetAttribute in interface ActionComponentname - name of attributepublic boolean hasAttribute(String name)
ActionComponenthasAttribute in interface ActionComponentname - name of attributetrue if component defines an attributepublic Object setAttribute(String name, Object value)
ActionComponentsetAttribute in interface ActionComponentname - name of attributevalue - value of attributepublic Object removeAttribute(String name)
ActionComponentremoveAttribute in interface ActionComponentname - name of attributepublic org.zkoss.zk.ui.Component getComponent()
ActionComponentgetComponent in interface ActionComponentCopyright © 2018. All rights reserved.