com.tensegrity.gui.swt.control.attributetree.editors
Interface AbstractAttributeTableItemEditor

All Known Implementing Classes:
AttributeTableItemEditor

public interface AbstractAttributeTableItemEditor

This interface defines methods and behaviour of a typical AttributeTableItemEditors.

Version:
$Id: AbstractAttributeTableItemEditor.java,v 1.1 2005/04/06 12:00:34 ArndHouben Exp $
Author:
Arnd Houben

Method Summary
 void addEditorListener(AttributeEditorListener listener)
          Adds the specified editor listener to the list of all listeners
 void dispose()
          Callback method which is invoked to signal that the current editor is asked to remove itself.
 org.eclipse.swt.widgets.Control getEditorControl()
          Returns the editor component which replaces the corresponding attribute table entry for editing.
 AttributeTableItem getItem()
          Returns the AttributeTableItem which should be edit
 java.lang.Object getValue()
          Returns the changed value or null if none exists or no change happened
 void notifyListeners()
          Notifies each registered listener that an attribute has been changed
 void removeEditorListener(AttributeEditorListener listener)
          Removes the specified editor listener from the list of all listeners
 

Method Detail

getEditorControl

public org.eclipse.swt.widgets.Control getEditorControl()
Returns the editor component which replaces the corresponding attribute table entry for editing. Null is returned to signal that the entry is not replaced. The latter case is typical for an editor which pops up a dialog for editing.

Returns:
the editor control or null if none is required

getValue

public java.lang.Object getValue()
Returns the changed value or null if none exists or no change happened

Returns:
the new value of an attribute

getItem

public AttributeTableItem getItem()
Returns the AttributeTableItem which should be edit

Returns:
the adjusted AttributeTableItem

addEditorListener

public void addEditorListener(AttributeEditorListener listener)
Adds the specified editor listener to the list of all listeners

Parameters:
listener - an arbitrary AttributeEditorListener

removeEditorListener

public void removeEditorListener(AttributeEditorListener listener)
Removes the specified editor listener from the list of all listeners

Parameters:
listener - an arbitrary AttributeEditorListener

notifyListeners

public void notifyListeners()
Notifies each registered listener that an attribute has been changed


dispose

public void dispose()
Callback method which is invoked to signal that the current editor is asked to remove itself. For implementing classes this is a good place to free occupied resources.



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