com.tensegrity.gui.swt.control.attributetree.editors
Class AttributeTableItemEditorProvider

java.lang.Object
  extended bycom.tensegrity.gui.swt.control.attributetree.editors.AttributeTableItemEditorProvider

public class AttributeTableItemEditorProvider
extends java.lang.Object

This class provides different editors for editing AttributeTableItems.

Version:
$Id: AttributeTableItemEditorProvider.java,v 1.5 2005/11/03 16:16:14 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
AttributeTableItemEditorProvider(SwtAttributeTree attributeTree, UIManager uiManager, org.eclipse.swt.graphics.Rectangle itemBounds)
          Constructor which creates a new AttributeTableItemEditorProvider
 
Method Summary
 AbstractAttributeTableItemEditor getEditor(AttributeTableItem tableItem)
          Returns the appropriate TableTreeEditor which corresponds to the given TableTreeItem.
static boolean hasDialog(Attribute attribute)
          Checks if a dialog control is needed for editing the specified attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTableItemEditorProvider

public AttributeTableItemEditorProvider(SwtAttributeTree attributeTree,
                                        UIManager uiManager,
                                        org.eclipse.swt.graphics.Rectangle itemBounds)
Constructor which creates a new AttributeTableItemEditorProvider

Parameters:
uiManager - the uiManager for localizing the editor
itemBounds - for positioning the optional editor dialog (NOTE: this parameter is likely to be removed in the near future)
Method Detail

getEditor

public final AbstractAttributeTableItemEditor getEditor(AttributeTableItem tableItem)
Returns the appropriate TableTreeEditor which corresponds to the given TableTreeItem.

Parameters:
tableItem - the AttributeTableItem to edit
Returns:
an AbstractAttributeTableItemEditor which handles the editing of the specified table item or null, if no appropriate editor is found

hasDialog

public static final boolean hasDialog(Attribute attribute)
Checks if a dialog control is needed for editing the specified attribute

Parameters:
attribute - the attribute to check
Returns:
true if a dialog will be used for editing, false otherwise


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