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

java.lang.Object
  extended bycom.tensegrity.gui.swt.control.attributetree.editors.AttributeTableItemEditor
      extended bycom.tensegrity.gui.swt.control.attributetree.editors.MetricExpressionItemEditor
All Implemented Interfaces:
AbstractAttributeTableItemEditor, java.util.EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener

public class MetricExpressionItemEditor
extends AttributeTableItemEditor
implements org.eclipse.swt.events.KeyListener

This class handles the editing of metric expression attribute values

Version:
$Id: MetricExpressionItemEditor.java,v 1.7 2005/11/30 15:44:17 ArndHouben Exp $
Author:
Arnd Houben

Field Summary
 
Fields inherited from class com.tensegrity.gui.swt.control.attributetree.editors.AttributeTableItemEditor
newValue
 
Constructor Summary
MetricExpressionItemEditor(org.eclipse.swt.widgets.Composite parent, AttributeTableItem tableItem)
          Constructor which creates a new MetricExpressionItemEditor instance
 
Method Summary
 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.
 void keyPressed(org.eclipse.swt.events.KeyEvent ev)
           
 void keyReleased(org.eclipse.swt.events.KeyEvent e)
           
 
Methods inherited from class com.tensegrity.gui.swt.control.attributetree.editors.AttributeTableItemEditor
addEditorListener, getItem, getValue, notifyListeners, removeEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricExpressionItemEditor

public MetricExpressionItemEditor(org.eclipse.swt.widgets.Composite parent,
                                  AttributeTableItem tableItem)
Constructor which creates a new MetricExpressionItemEditor instance

Parameters:
parent - the composite to add this MetricExpressionItemEditor to
tableItem - the table item which should be edited
Method Detail

getEditorControl

public final org.eclipse.swt.widgets.Control getEditorControl()
Description copied from interface: AbstractAttributeTableItemEditor
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.

Specified by:
getEditorControl in interface AbstractAttributeTableItemEditor
Returns:
the editor control or null if none is required

dispose

public final void dispose()
Description copied from interface: AbstractAttributeTableItemEditor
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.

Specified by:
dispose in interface AbstractAttributeTableItemEditor
Specified by:
dispose in class AttributeTableItemEditor

keyPressed

public void keyPressed(org.eclipse.swt.events.KeyEvent ev)
Specified by:
keyPressed in interface org.eclipse.swt.events.KeyListener

keyReleased

public void keyReleased(org.eclipse.swt.events.KeyEvent e)
Specified by:
keyReleased in interface org.eclipse.swt.events.KeyListener


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