com.tensegrity.skeleton.swt.commands
Class SwtStyleDialogCommand

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

Deprecated. NOT IMPLEMENTED - SIMPLY DO NOT USE

public class SwtStyleDialogCommand
extends CommonBaseCommand

Opens the Style Dialog to let users modify existing style elements. When the dialog is closed, all changed descriptors are re-applied to all available primitives of the application.

Version:
$Id: SwtStyleDialogCommand.java,v 1.3 2005/08/03 07:03:31 SebastienGuyon Exp $
Author:
GillesIachelini, S�bastien Guyon

Constructor Summary
SwtStyleDialogCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Deprecated. Constructor for the StyleDialogCommand.
 
Method Summary
static void applyDeletedStyleItem(java.lang.String styleItemName, ApplicationFrame frame)
          Deprecated. Removes the StyleItemName from all primitives with that name and re applies the default StyleItem.
static void applyModifiedStyleItem(java.lang.String styleItemName, ApplicationFrame frame)
          Deprecated. Applies the StyleItem identified by the parameter string to all primitives of all open documents and repository items.
 void perform(java.lang.Object args)
          Deprecated. Opens the StyleDialog.
static void updateStyleItems(ApplicationFrame frame)
          Deprecated. This method updateStyleItems refreshes the style of all elements and repository items.
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle
 
Methods inherited from class com.tensegrity.generic.command.BaseCommand
getDescription, getId, getPerformDescription, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtStyleDialogCommand

public SwtStyleDialogCommand(ApplicationFrame applicationFrame,
                             java.lang.String command)
Deprecated. 
Constructor for the StyleDialogCommand.

Parameters:
applicationFrame - Application context represented by the ApplicationFrame
command - id of the command.
Method Detail

perform

public void perform(java.lang.Object args)
Deprecated. 
Opens the StyleDialog. When the dialog was canceled all deleted items are restored. Otherwise all primitives of which the style item was deleted are restored to the default item, modified items are re applied.

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

applyDeletedStyleItem

public static void applyDeletedStyleItem(java.lang.String styleItemName,
                                         ApplicationFrame frame)
Deprecated. 
Removes the StyleItemName from all primitives with that name and re applies the default StyleItem.

Parameters:
styleItemName - the name of the style which has been deleted.
frame - Application context to reach the repository.

applyModifiedStyleItem

public static void applyModifiedStyleItem(java.lang.String styleItemName,
                                          ApplicationFrame frame)
Deprecated. 
Applies the StyleItem identified by the parameter string to all primitives of all open documents and repository items.

Parameters:
styleItemName - name of the style which has been modified.
frame - Application context to reach the repository.

updateStyleItems

public static void updateStyleItems(ApplicationFrame frame)
Deprecated. 
This method updateStyleItems refreshes the style of all elements and repository items.

Parameters:
frame - Application context to reach the repository.


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