com.tensegrity.gui.swt.inplaceediting
Class SwtInplaceEditorProvider

java.lang.Object
  extended bycom.tensegrity.gui.swt.inplaceediting.SwtInplaceEditorProvider
All Implemented Interfaces:
InplaceEditorProvider

public class SwtInplaceEditorProvider
extends java.lang.Object
implements InplaceEditorProvider

A SWT based implementation of the InplaceEditorProvider interface.

Version:
$Id: SwtInplaceEditorProvider.java,v 1.1 2005/08/19 09:30:39 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
SwtInplaceEditorProvider(org.eclipse.swt.widgets.Composite parent)
          Creates a new SwtInplaceEditorProvider
 
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

SwtInplaceEditorProvider

public SwtInplaceEditorProvider(org.eclipse.swt.widgets.Composite parent)
Creates a new SwtInplaceEditorProvider

Parameters:
parent - the parent Composite to add this editor's gui control to.
Method Detail

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

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


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