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

java.lang.Object
  extended bycom.tensegrity.gui.swt.control.attributetree.AttributeTableEditorSupplier
All Implemented Interfaces:
AttributeEditorListener

public class AttributeTableEditorSupplier
extends java.lang.Object
implements AttributeEditorListener

This class supplies an AttributeTable with appropriate AttributeTableItem editors.

Version:
$Id: AttributeTableEditorSupplier.java,v 1.10 2006/02/10 17:47:57 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
AttributeTableEditorSupplier(SwtAttributeTreeModel treeModel, SwtAttributeTree attributeTree, UIManager uiManager)
          Constructor which initializes a general table tree editor
 
Method Summary
 void changed(AttributeTableItem tableItem)
          Is called when the specified AttributeTableItem has changed.
 void disposeEditor()
          Disposes the currently set table tree editor.
 AbstractAttributeTableItemEditor getCurrentEditor()
          Returns the currently used item editor.
 void setEditor(org.eclipse.swt.custom.TableTreeItem tableTreeItem)
          This sets an appropriate table tree editor for the given table tree item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTableEditorSupplier

public AttributeTableEditorSupplier(SwtAttributeTreeModel treeModel,
                                    SwtAttributeTree attributeTree,
                                    UIManager uiManager)
Constructor which initializes a general table tree editor

Parameters:
treeModel - the underlying SwtAttributeTreeModel
uiManager - the UIManager used for internationalization
Method Detail

setEditor

public final void setEditor(org.eclipse.swt.custom.TableTreeItem tableTreeItem)
This sets an appropriate table tree editor for the given table tree item.

Parameters:
tableTreeItem - the item to edit

disposeEditor

public final void disposeEditor()
Disposes the currently set table tree editor. This method has no effect, if no editor is set.


changed

public void changed(AttributeTableItem tableItem)
Description copied from interface: AttributeEditorListener
Is called when the specified AttributeTableItem has changed.

Specified by:
changed in interface AttributeEditorListener
Parameters:
tableItem - the change AttributeTableItem

getCurrentEditor

public final AbstractAttributeTableItemEditor getCurrentEditor()
Returns the currently used item editor.
NOTE: the item editor could be null or disposed!!

Returns:
the currently used item editor.


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