com.tensegrity.gui.swt.inplaceediting
Class InplaceComboEditor

java.lang.Object
  extended bycom.tensegrity.gui.inplaceediting.InplaceEditor
      extended bycom.tensegrity.gui.swt.inplaceediting.InplaceComboEditor

public class InplaceComboEditor
extends InplaceEditor

InplaceEditor instance to use when the text of a Label2D or CompositeLabel contains a Constraint which has to be edited inplace. In this case a Combo is placed over the corresponding label.

Version:
$Id: InplaceComboEditor.java,v 1.3 2005/11/04 10:01:45 BurkhardWick Exp $
Author:
Arnd Houben

Field Summary
 
Fields inherited from class com.tensegrity.gui.inplaceediting.InplaceEditor
bComp, gPanel, label
 
Constructor Summary
InplaceComboEditor(org.eclipse.swt.widgets.Composite parent, Label2D label, BaseComposite bComp, GraphPanel gPanel, Attribute attr)
          Creates a new InplaceComboEditor.
 
Method Summary
 void commitChanges()
          Is called on normal edit commits.
 java.lang.Object getControl()
          Returns the editor control, i.e. its visual component.
 
Methods inherited from class com.tensegrity.gui.inplaceediting.InplaceEditor
abortEditing, addInplaceEditorListener, editingCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InplaceComboEditor

public InplaceComboEditor(org.eclipse.swt.widgets.Composite parent,
                          Label2D label,
                          BaseComposite bComp,
                          GraphPanel gPanel,
                          Attribute attr)
Creates a new InplaceComboEditor.

Parameters:
parent - the parent Composite to add this editor to
label - Primitive to apply inplace editing to
bComp - Composite to apply inplace editing to
gPanel - contains the underlying element which requests inplace editing
attr - Attribute that holds the constraints
Method Detail

getControl

public java.lang.Object getControl()
Description copied from class: InplaceEditor
Returns the editor control, i.e. its visual component.
For a Swing based editor this is usually an instance of a JComponent class and for an SWT based editor this is usually an extend of Control.

Specified by:
getControl in class InplaceEditor
Returns:
the visual editor component for placing into a GUI environment.

commitChanges

public void commitChanges()
Description copied from class: InplaceEditor
Is called on normal edit commits. This method notifies the registered InplaceEditorListener.
Overwriting classes should call this method afterwards to notify a registered class.

Overrides:
commitChanges in class InplaceEditor


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