public class DefaultToolBarItem extends Object implements ToolBarItem
| Constructor and Description |
|---|
DefaultToolBarItem(IconType iconType,
String tooltip,
Command command) |
DefaultToolBarItem(String url,
String tooltip,
Command command) |
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand() |
ToolBarIcon |
getIcon() |
Collection<String> |
getRoles() |
String |
getSignatureId() |
String |
getTooltip() |
Collection<String> |
getTraits() |
boolean |
isEnabled() |
void |
setEnabled(boolean isEnabled) |
void |
setRoles(String[] roles)
Set the roles required to access this Tool Bar Item
|
public String getTooltip()
getTooltip in interface ToolBarItempublic ToolBarIcon getIcon()
getIcon in interface ToolBarItempublic boolean isEnabled()
isEnabled in interface ToolBarItempublic void setEnabled(boolean isEnabled)
setEnabled in interface ToolBarItemisEnabled - the enabled to setpublic Command getCommand()
getCommand in interface ToolBarItempublic String getSignatureId()
getSignatureId in interface RuntimeResourcepublic void setRoles(String[] roles)
ToolBarItemsetRoles in interface ToolBarItempublic Collection<String> getRoles()
getRoles in interface RuntimeFeatureResourcepublic Collection<String> getTraits()
getTraits in interface RuntimeResourceCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.