public interface Targetable
Usually, the command key will be the key value of the Action. For components This could be the ActionMap keys. For actions managed with the ActionManager, this will be the value of an actions Action.ACTION_COMMAND_KEY
TargetManager
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(Object command,
Object value)
Perform the command using the object value.
|
Object[] |
getCommands()
Returns an array of supported commands.
|
boolean |
hasCommand(Object command)
Return a flag that indicates if a command is supported.
|
boolean doCommand(Object command, Object value)
command
- is a Action.ACTION_COMMAND_KEYvalue
- an arbitrary value. Usually this will be
EventObject which trigered the command.boolean hasCommand(Object command)
command
- is a Action.ACTION_COMMAND_KEYObject[] getCommands()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses