com.tensegrity.skeleton.commands
Class CloseAllCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.commands.DocumentCommand
              extended bycom.tensegrity.skeleton.commands.CloseAllCommand
All Implemented Interfaces:
Command

public final class CloseAllCommand
extends DocumentCommand

This Command closes all open documents.

Version:
$Id: CloseAllCommand.java,v 1.11 2005/04/13 11:11:18 KevinCVS Exp $
Author:
MichaelKegel, Gilles Iachelini, Stepan RUtz

Constructor Summary
CloseAllCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates the command to close all open documents.
 
Method Summary
 boolean isEnabled()
          Returns true if this command is enabled.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand
getDocument, getGraphApplication, newGraphDocumentFromFactory
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle
 
Methods inherited from class com.tensegrity.generic.command.BaseCommand
getDescription, getId, getPerformDescription, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseAllCommand

public CloseAllCommand(ApplicationFrame applicationFrame,
                       java.lang.String command)
Creates the command to close all open documents.

Parameters:
applicationFrame - Application context for this command.
command - the ID of this command.
Method Detail

isEnabled

public boolean isEnabled()
Description copied from interface: Command
Returns true if this command is enabled.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class BaseCommand

perform

public void perform(java.lang.Object args)
Description copied from class: CommonBaseCommand
Updates the StatusBar with this commands title string. (non-Javadoc)

Specified by:
perform in interface Command
Overrides:
perform in class CommonBaseCommand
See Also:
Command.perform(java.lang.Object)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.