com.tensegrity.gui.swing.inplaceediting
Class SwingInplaceEditorProvider

java.lang.Object
  extended bycom.tensegrity.gui.swing.inplaceediting.SwingInplaceEditorProvider
All Implemented Interfaces:
InplaceEditorProvider

public class SwingInplaceEditorProvider
extends java.lang.Object
implements InplaceEditorProvider

A Swing based implementation of the InplaceEditorProvider interface.

InplaceEditorProvider

Version:
$Id: SwingInplaceEditorProvider.java,v 1.1 2005/08/19 09:10:42 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
SwingInplaceEditorProvider()
          Empty default constructor
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingInplaceEditorProvider

public SwingInplaceEditorProvider()
Empty default constructor

Method Detail

getComboEditor

public InplaceEditor getComboEditor(Label2D label,
                                    BaseComposite bComposite,
                                    GraphPanel gPanel,
                                    Attribute attr)
Description copied from interface: InplaceEditorProvider
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().

Specified by:
getComboEditor in interface InplaceEditorProvider
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

getLabelEditor

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

Specified by:
getLabelEditor in interface InplaceEditorProvider
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


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