com.tensegrity.gui.swt.control.attributetree
Class AttributeTreeState

java.lang.Object
  extended bycom.tensegrity.gui.swt.control.attributetree.AttributeTreeState

public class AttributeTreeState
extends java.lang.Object

This class stores the currently state of an SwtAttributeTree. The state of an SwtAttributeTree is defined by its currently set column width, expand level, top item and selection.

Version:
$Id: AttributeTreeState.java,v 1.5 2005/06/14 09:42:22 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
AttributeTreeState(SwtAttributeTree attrTree, java.lang.String item)
          Constructor which stores either the complete state or part of it of the specified attribute tree
 
Method Summary
 void restoreState(SwtAttributeTree attrTree)
          Restores the state of the given SwtAttributeTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTreeState

public AttributeTreeState(SwtAttributeTree attrTree,
                          java.lang.String item)
Constructor which stores either the complete state or part of it of the specified attribute tree

Parameters:
attrTree - the SwtAttributeTree which state should be stored
item - name of the first level category attribute which state should be stored. Set to null or an empty string to store the complete attribute tree state.
Method Detail

restoreState

public final void restoreState(SwtAttributeTree attrTree)
Restores the state of the given SwtAttributeTree

Parameters:
attrTree - the SwtAttributeTree which state should be restored


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