Class DefaultToolBarItem
- java.lang.Object
-
- org.uberfire.workbench.model.toolbar.impl.DefaultToolBarItem
-
- All Implemented Interfaces:
RuntimeFeatureResource,RuntimeResource,Resource,ToolBarItem
public class DefaultToolBarItem extends Object implements ToolBarItem
Default implementation of ToolBarItem
-
-
Constructor Summary
Constructors Constructor Description DefaultToolBarItem(String url, String tooltip, Command command)DefaultToolBarItem(IconType iconType, String tooltip, Command command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandgetCommand()ToolBarIcongetIcon()StringgetIdentifier()An identifier that is unique among all the resources of the same type (seeResource.getResourceType()).StringgetTooltip()booleanisEnabled()voidsetEnabled(boolean isEnabled)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uberfire.security.Resource
getDependencies, getResourceType, isType
-
-
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:ResourceAn identifier that is unique among all the resources of the same type (seeResource.getResourceType()).- Specified by:
getIdentifierin interfaceResource
-
getTooltip
public String getTooltip()
- Specified by:
getTooltipin interfaceToolBarItem- Returns:
- the caption
-
getIcon
public ToolBarIcon getIcon()
- Specified by:
getIconin interfaceToolBarItem- Returns:
- the toolbar icon information
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceToolBarItem- Returns:
- is the Tool Bar Item enabled
-
setEnabled
public void setEnabled(boolean isEnabled)
- Specified by:
setEnabledin interfaceToolBarItem- Parameters:
isEnabled- the enabled to set
-
getCommand
public Command getCommand()
- Specified by:
getCommandin interfaceToolBarItem- Returns:
- The command associated with the Tool Bar Item
-
-