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

java.lang.Object
  extended bycom.tensegrity.gui.swt.control.attributetree.SwtAttributeTreeStateManager
All Implemented Interfaces:
AttributeEditorStateManager

public class SwtAttributeTreeStateManager
extends java.lang.Object
implements AttributeEditorStateManager

This class manages the different states of an SwtAttributeTree. Therefore it provides useful methods to store and restore states depending on the currently selected attribute sets

Version:
$Id: SwtAttributeTreeStateManager.java,v 1.9 2005/06/28 13:59:26 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
SwtAttributeTreeStateManager(SwtAttributeTree attrTree)
          Constructs an SwtAttributeTreeStateManager instance corresponding to the given SwtAttributeTree
 
Method Summary
 boolean containsState(AttributableOnSet attributable)
          Checks if the state of the given AttributableOnSet instance was stored before.
 void restoreEditorState(AttributableOnSet attributable)
          Restores the state for the given AttributableOnSet when it is assigned to the AttributeEditor.
 void storeEditorState(AttributableOnSet attributable)
          Stores the state for the given AttributableOnSet when it is removed from the AttributeEditor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtAttributeTreeStateManager

public SwtAttributeTreeStateManager(SwtAttributeTree attrTree)
Constructs an SwtAttributeTreeStateManager instance corresponding to the given SwtAttributeTree

Parameters:
attrTree - an SwtAttributeTree instance which states should be managed
Method Detail

storeEditorState

public final void storeEditorState(AttributableOnSet attributable)
Description copied from interface: AttributeEditorStateManager
Stores the state for the given AttributableOnSet when it is removed from the AttributeEditor.

Specified by:
storeEditorState in interface AttributeEditorStateManager
Parameters:
attributable - The item to store the state for, might be null

restoreEditorState

public final void restoreEditorState(AttributableOnSet attributable)
Description copied from interface: AttributeEditorStateManager
Restores the state for the given AttributableOnSet when it is assigned to the AttributeEditor.

Specified by:
restoreEditorState in interface AttributeEditorStateManager
Parameters:
attributable - The item to restore the state for, might be null

containsState

public final boolean containsState(AttributableOnSet attributable)
Checks if the state of the given AttributableOnSet instance was stored before.

Parameters:
attributable - an AttributableOnSet instance defining a state
Returns:
true if the state was stored already, false otherwise


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