com.tensegrity.skeleton.commands
Class InsertTableCommand

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.GraphDocumentCommand
                  extended bycom.tensegrity.skeleton.commands.AbstractInsertElementCommand
                      extended bycom.tensegrity.skeleton.commands.InsertTableCommand
All Implemented Interfaces:
Command

public class InsertTableCommand
extends AbstractInsertElementCommand

This Command inserts a table node into the currently selected VisualGraph.

Version:
$Id: InsertTableCommand.java,v 1.6 2005/04/13 14:10:05 KevinCVS Exp $
Author:
BurkhardWick

Field Summary
 
Fields inherited from class com.tensegrity.skeleton.commands.AbstractInsertElementCommand
ELEMENTNAME_CHART_NODE, ELEMENTNAME_IMAGE, ELEMENTNAME_TABLE_NODE
 
Constructor Summary
InsertTableCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Constructor.
 
Method Summary
 boolean isEnabled()
          Overridden to restrict the availability of this command to the case that the "TableNode" element is in the pool.
 void perform(java.lang.Object args)
          Adds a copy of the table defined in the element pool to the current graph.
 
Methods inherited from class com.tensegrity.skeleton.commands.AbstractInsertElementCommand
addElement, addElement, toLog
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView
 
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

InsertTableCommand

public InsertTableCommand(ApplicationFrame applicationFrame,
                          java.lang.String command)
Constructor.

Parameters:
applicationFrame - The application frame
command - The id used to register this command in the command registry
Method Detail

perform

public void perform(java.lang.Object args)
Adds a copy of the table defined in the element pool to the current graph.

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

isEnabled

public boolean isEnabled()
Overridden to restrict the availability of this command to the case that the "TableNode" element is in the pool.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class GraphDocumentCommand
Returns:
True, if the command is currently available


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