com.tensegrity.skeleton.commands
Class EditDocumentSettingsCommand

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.EditDocumentSettingsCommand
All Implemented Interfaces:
Command

public class EditDocumentSettingsCommand
extends GraphDocumentCommand

EditDocumentSettingsCommand shows a dialog for editing the document settings. The settings that will be available to the user can be defined in an XML in the same way as for the preferences.

Author:
BurkhardWick

Field Summary
protected  java.lang.String documentPrefsUrl
          The url of the default document preferences
protected  java.lang.Class refClass
          The reference class used to load the defaults
 
Constructor Summary
EditDocumentSettingsCommand(ApplicationFrame applicationFrame, java.lang.String command, java.lang.String documentPrefsUrl, java.lang.Class refClass)
          Constructor
 
Method Summary
protected  DocumentSettingsProvider getDocumentSettingsProvider()
          Creates an instanceof DocumentSettingsProvider that will be used in the dialog.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView, isEnabled
 
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
 

Field Detail

documentPrefsUrl

protected final java.lang.String documentPrefsUrl
The url of the default document preferences


refClass

protected final java.lang.Class refClass
The reference class used to load the defaults

Constructor Detail

EditDocumentSettingsCommand

public EditDocumentSettingsCommand(ApplicationFrame applicationFrame,
                                   java.lang.String command,
                                   java.lang.String documentPrefsUrl,
                                   java.lang.Class refClass)
Constructor

Parameters:
applicationFrame - The application frame
command - The id to register this command with
documentPrefsUrl - The url of the default document preferences
refClass - The reference class used to load the defaults
Method Detail

perform

public final 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)

getDocumentSettingsProvider

protected DocumentSettingsProvider getDocumentSettingsProvider()
                                                        throws java.lang.Exception
Creates an instanceof DocumentSettingsProvider that will be used in the dialog.

Returns:
the DocumentSettingsProvider to use
Throws:
java.lang.Exception - if the creation of the instance fails


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