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() |
String |
getIdentifier()
An identifier that is unique among all the resources of the same type
(see
Resource.getResourceType() ). |
String |
getTooltip() |
boolean |
isEnabled() |
void |
setEnabled(boolean isEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencies, getResourceType, isType
public String getIdentifier()
Resource
Resource.getResourceType()
).getIdentifier
in interface Resource
public String getTooltip()
getTooltip
in interface ToolBarItem
public ToolBarIcon getIcon()
getIcon
in interface ToolBarItem
public boolean isEnabled()
isEnabled
in interface ToolBarItem
public void setEnabled(boolean isEnabled)
setEnabled
in interface ToolBarItem
isEnabled
- the enabled to setpublic Command getCommand()
getCommand
in interface ToolBarItem
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.