org.bs.mdi.swing
Class SwingWindowCommand

java.lang.Object
  extended byorg.bs.mdi.Command
      extended byorg.bs.mdi.swing.SwingCommand
          extended byorg.bs.mdi.swing.SwingCommandAdapter
              extended byorg.bs.mdi.swing.SwingWindowCommand
All Implemented Interfaces:
MessageProcessor

public class SwingWindowCommand
extends SwingCommandAdapter

Command subclass which activates a particular TraditionalDocumentWindow


Constructor Summary
SwingWindowCommand(DocumentWindow window)
          Creates a new SwingWindowCommand which can activate the given window.
 
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.swing.SwingCommandAdapter
getAccelerator, processMessage
 
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

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
Method Detail

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