jas2.util
Interface CommandSource
-
- All Known Implementing Classes:
- CommandButton, JASCheckboxMenuItem, JASMenuItem, JASRadioMenuItem, JASToolBarButton
public interface CommandSourceA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclearTarget()Clears the CommandTarget associated with the CommandSourcejava.lang.StringgetCommand()Returns the command associated with the CommandSourceCommandTargetgetTarget()Returns the current CommandTarget, or null of there isnt a current command targetbooleansetTarget(CommandTarget target)Sets a CommandTarget associated with the CommandSource
-
-
-
Method Detail
-
getCommand
java.lang.String getCommand()
Returns the command associated with the CommandSource
-
setTarget
boolean setTarget(CommandTarget target)
Sets a CommandTarget associated with the CommandSource
-
clearTarget
void clearTarget()
Clears the CommandTarget associated with the CommandSource
-
getTarget
CommandTarget getTarget()
Returns the current CommandTarget, or null of there isnt a current command target
-
-
DataMelt 3.0 © DataMelt by jWork.ORG