com.tensegrity.gui.swt.inplaceediting
Class InplaceComboEditor
java.lang.Object
com.tensegrity.gui.inplaceediting.InplaceEditor
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 tolabel - Primitive to apply inplace editing tobComp - Composite to apply inplace editing togPanel - contains the underlying element which requests inplace
editingattr - Attribute that holds the constraints
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.