com.tensegrity.gui.inplaceediting
Interface InplaceEditorProvider

All Known Implementing Classes:
SwingInplaceEditorProvider, SwtInplaceEditorProvider

public interface InplaceEditorProvider

Interface which lists all possible inplace editors. Implementing classes have to provide a suitable gui control and register theirself to an InplaceConductor. com.tensegrity.gui.swt.graph.inplaceediting.InplaceConductor

Version:
$Id: InplaceEditorProvider.java,v 1.1 2005/08/19 09:03:15 ArndHouben Exp $
Author:
Arnd Houben

Method Summary
 InplaceEditor getComboEditor(Label2D label, BaseComposite bComposite, GraphPanel gPanel, Attribute attr)
          Returns the InplaceEditor for editing a label's constraint.
 InplaceEditor getLabelEditor(Label2D label, BaseComposite bComposite, GraphPanel gPanel, CompositeTable table)
          Returns the InplaceEditor for editing labels.
 

Method Detail

getLabelEditor

public InplaceEditor getLabelEditor(Label2D label,
                                    BaseComposite bComposite,
                                    GraphPanel gPanel,
                                    CompositeTable table)
Returns the InplaceEditor for editing labels. To get the visual representation, i.e. usually a Swing or SWT based TextArea, use InplaceEditor#getControl().

Parameters:
label - Primitive to apply inplace editing to
bComposite - Composite to apply inplace editing to
gPanel - contains the underlying element which requests inplace editing
table - The composite table containing the label or null
Returns:
an InplaceEditor instance for editing labels

getComboEditor

public InplaceEditor getComboEditor(Label2D label,
                                    BaseComposite bComposite,
                                    GraphPanel gPanel,
                                    Attribute attr)
Returns the InplaceEditor for editing a label's constraint. To get the visual representation, i.e. usually a Swing or SWT based Combo, use InplaceEditor#getControl().

Parameters:
label - Primitive to apply inplace editing to
bComposite - Composite to apply inplace editing to
gPanel - contains the underlying element which requests inplace editing
attr - Attribute that holds the constraints
Returns:
an InplaceEditor instance for constraint editing


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