|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A CommandSource represents a source of a command, such as a MenuItem or Toolbar Button. A CommandSource may have a CommandTarget associated with it. The CommandTarget represents the command that will be fired when the CommandSource is activated. Typically a CommandTargetManager is responsible for setting the CommandTarget. The CommandSource will typically be dimmed out if either there is no CommandTarget associated with it, or if the CommandTarget is not enabled.
Method Summary | |
void |
clearTarget()
Clears the CommandTarget associated with the CommandSource |
String |
getCommand()
Returns the command associated with the CommandSource |
CommandTarget |
getTarget()
Returns the current CommandTarget, or null of there isnt a current command target |
boolean |
setTarget(CommandTarget target)
Sets a CommandTarget associated with the CommandSource |
Method Detail |
public String getCommand()
public boolean setTarget(CommandTarget target)
public CommandTarget getTarget()
public void clearTarget()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |