|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Targetable
An interface which exposes the allowable actions to a TargetManager. The getCommands method will expose the allowable actions to another class and the doCommand method is called to invoke an action on the class.
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
Method Summary | |
---|---|
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. |
Method Detail |
---|
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_KEY
Object[] getCommands()
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |