com.tensegrity.application
Class StyleHelper

java.lang.Object
  extended bycom.tensegrity.application.StyleHelper

public class StyleHelper
extends java.lang.Object

This class helps to apply modified styles across an Application.

Version:
$Id: StyleHelper.java,v 1.7 2005/01/17 17:37:46 BurkhardWick Exp $
Author:
GillesIachelini

Method Summary
static void applyDeletedStyleItem(java.lang.String styleItemName, ApplicationFrame frame)
          Removes the StyleItemName from all primitives with that name and re-applies the default StyleItem.
static void applyModifiedStyleItem(java.lang.String styleItemName, ApplicationFrame frame)
          Applies the StyleItem identified by the parameter string to all primitives of all open documents and repository items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

applyDeletedStyleItem

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

Parameters:
styleItemName - the name of the style to remove from the primitives.
frame - the Application context to operate in.

applyModifiedStyleItem

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

Parameters:
styleItemName - the name of the style which has been modified.
frame - the application context.


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