|
|||||||||||
| 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
SwingCommand is basically a Command with icon support.
| Constructor Summary | |
SwingCommand()
Creates a new SwingCommand. |
|
| Method Summary | |
protected abstract void |
doExecute()
Executes this command. |
abstract KeyStroke |
getAccelerator()
Gets the "accelerator" for this action. |
String |
getDescription()
Gets the description of this command, e.g. |
abstract Icon |
getIcon(int size)
Gets an icon representing this command. |
String |
getName()
Gets the name of this command, e.g. |
abstract void |
processMessage(Object source,
int type,
Object argument)
Processes messages. |
void |
removeFrom(Container container)
Removes all triggers of this command from the specified container. |
void |
setDescription(String description)
Sets the description of this command and updates all associated triggers. |
void |
setName(String name)
Sets the name of this command and updates all associated triggers. |
| 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 SwingCommand()
| Method Detail |
protected abstract void doExecute()
Command
doExecute in class Command
public abstract void processMessage(Object source,
int type,
Object argument)
CommandCommand.setAvailable(boolean).
See: MessageProcessor.processMessage(Object, int, Object)
processMessage in interface MessageProcessorprocessMessage in class Commandpublic String getName()
Command
getName in class Commandpublic String getDescription()
Command
getDescription in class Commandpublic void setName(String name)
name - the new name of this commandpublic void setDescription(String description)
description - the new description of this commandpublic abstract Icon getIcon(int size)
size - the requested size of the icon
public abstract KeyStroke getAccelerator()
public void removeFrom(Container container)
container - the container which is supposed to contain menu items
associated with this command
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||