org.bs.mdi.swing
Class SwingWindowCommand
java.lang.Object
org.bs.mdi.Command
org.bs.mdi.swing.SwingCommand
org.bs.mdi.swing.SwingCommandAdapter
org.bs.mdi.swing.SwingWindowCommand
- All Implemented Interfaces:
- MessageProcessor
- public class SwingWindowCommand
- extends SwingCommandAdapter
Command subclass which activates a particular TraditionalDocumentWindow
|
Method Summary |
protected void |
doExecute()
Executes this command. |
Icon |
getIcon(int size)
Gets an icon representing this command. |
void |
titleChanged(String newTitle)
Invoked from within the framework to indicate that the document's name
has changed. |
| 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 |
SwingWindowCommand
public SwingWindowCommand(DocumentWindow window)
- Creates a new SwingWindowCommand which can activate the given window.
- Parameters:
window - the window to be activated by this command
titleChanged
public void titleChanged(String newTitle)
- Invoked from within the framework to indicate that the document's name
has changed.
- Parameters:
newTitle - the new title to be displayed
doExecute
protected void doExecute()
- Description copied from class:
Command
- Executes this command.
- Overrides:
doExecute in class SwingCommandAdapter
getIcon
public Icon getIcon(int size)
- Description copied from class:
SwingCommand
- Gets an icon representing this command.
- Overrides:
getIcon in class SwingCommandAdapter