|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.Command
org.bs.mdi.swing.SwingCommand
org.bs.mdi.swing.SwingCommandAdapter
Adapter for SwingCommand to simplify subclassing
| Constructor Summary | |
SwingCommandAdapter(String name,
String description)
Creates a new command. |
|
| Method Summary | |
protected void |
doExecute()
Executes this command. |
KeyStroke |
getAccelerator()
Gets the "accelerator" for this action. |
Icon |
getIcon(int size)
Gets an icon representing this command. |
void |
processMessage(Object source,
int type,
Object argument)
Processes messages. |
| Methods inherited from class org.bs.mdi.swing.SwingCommand |
getDescription, getName, removeFrom, setDescription, setName |
| Methods inherited from class org.bs.mdi.Command |
addTrigger, countTriggers, execute, getLocalizedDescription, getLocalizedName, getTriggers, isAvailable, removeAllTriggers, removeTrigger, setAvailable, updateTriggers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingCommandAdapter(String name,
String description)
name - the name of the commanddescription - the command's description| Method Detail |
protected void doExecute()
Command
doExecute in class SwingCommandpublic Icon getIcon(int size)
SwingCommand
getIcon in class SwingCommandsize - the requested size of the icon
public void processMessage(Object source,
int type,
Object argument)
CommandCommand.setAvailable(boolean).
See: MessageProcessor.processMessage(Object, int, Object)
processMessage in interface MessageProcessorprocessMessage in class SwingCommandpublic KeyStroke getAccelerator()
SwingCommand
getAccelerator in class SwingCommand
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||