Interface ToolBarItem
-
- All Superinterfaces:
Resource,RuntimeFeatureResource,RuntimeResource
- All Known Implementing Classes:
DefaultToolBarItem
@JsType public interface ToolBarItem extends RuntimeFeatureResource
Meta-data for a Workbench Tool Bar Item including permissions. The default is that all users have permission to access a Tool BarItem Item and that it is enabled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandgetCommand()ToolBarIcongetIcon()StringgetTooltip()booleanisEnabled()voidsetEnabled(boolean enabled)-
Methods inherited from interface org.uberfire.security.Resource
getDependencies, getIdentifier, getResourceType, isType
-
-
-
-
Method Detail
-
getTooltip
String getTooltip()
- Returns:
- the caption
-
getIcon
ToolBarIcon getIcon()
- Returns:
- the toolbar icon information
-
isEnabled
boolean isEnabled()
- Returns:
- is the Tool Bar Item enabled
-
setEnabled
void setEnabled(boolean enabled)
- Parameters:
enabled- the enabled to set
-
getCommand
Command getCommand()
- Returns:
- The command associated with the Tool Bar Item
-
-