com.tensegrity.skeleton.commands
Class InsertCustomAttributeCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.InsertCustomAttributeCommand
- All Implemented Interfaces:
- Command
- public class InsertCustomAttributeCommand
- extends GraphDocumentCommand
The AddCustomAttributeCommand opens a dialog to create
attributes of various types and add these to a list of elements or the graph. The
command is always enabled. If there is a selection within the document, the
attributes will be added to them. Is there no selection the attributes are applied
to the graph itself.
- Version:
- $Id: InsertCustomAttributeCommand.java,v 1.7 2006/05/10 15:35:04 BurkhardWick Exp $
- Author:
- GillesIachelini
|
Method Summary |
protected java.util.List |
getSelection()
Returns a List that reflects the current selection of the
active document. |
boolean |
isEnabled()
(non-Javadoc)
This method returns true if the currently active
Document is an instance of GraphDocument. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsertCustomAttributeCommand
public InsertCustomAttributeCommand(ApplicationFrame applicationFrame,
java.lang.String command)
- Creates a new
AddCustomAttributeCommand.
- Parameters:
applicationFrame - The enclosing Application instance.command - the id for the command.
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)
isEnabled
public boolean isEnabled()
- Description copied from class:
GraphDocumentCommand
- (non-Javadoc)
This method returns
true if the currently active
Document is an instance of GraphDocument.
- Specified by:
isEnabled in interface Command- Overrides:
isEnabled in class GraphDocumentCommand
getSelection
protected java.util.List getSelection()
- Returns a
List that reflects the current selection of the
active document. Elements that are not graph element are not part of the
list.
- Returns:
- List the selection of the active document.
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.