|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.inplaceediting.InplaceEditor
Abstract class which describes a typical inplace editor. It is meant
to be extended by classes which provide an editor control.
For more information see getControl().
A class which is interested in editor events can register an
InplaceEditorListener to get notified about aborted,
cancelled or committed editings.
| Field Summary | |
protected BaseComposite |
bComp
BaseComposite to which inplace editing is applied |
protected GraphPanel |
gPanel
GraphPanel containing the underlying inplace editing element |
protected Label2D |
label
Label2D to which inplace editing is applied |
| Constructor Summary | |
InplaceEditor(Label2D label,
BaseComposite bComp,
GraphPanel gPanel)
Constructor which creates a new InplaceEditor instance. |
|
| Method Summary | |
protected void |
abortEditing()
Is called in case an editing was aborted. |
void |
addInplaceEditorListener(InplaceEditorListener l)
Adding given InplaceEditorListener which gets notified
on editing events. |
void |
commitChanges()
Is called on normal edit commits. |
protected void |
editingCancelled()
Is called in case an editing was cancelled. |
abstract 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 |
| Field Detail |
protected GraphPanel gPanel
GraphPanel containing the underlying inplace editing element
protected BaseComposite bComp
BaseComposite to which inplace editing is applied
protected Label2D label
Label2D to which inplace editing is applied
| Constructor Detail |
public InplaceEditor(Label2D label,
BaseComposite bComp,
GraphPanel gPanel)
InplaceEditor instance.
label - Primitive to apply inplace editing tobComp - Composite to apply inplace editing togPanel - contains the underlying element which requests inplace editing| Method Detail |
public abstract java.lang.Object getControl()
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.
public final void addInplaceEditorListener(InplaceEditorListener l)
InplaceEditorListener which gets notified
on editing events.
l - the InplaceEditorListener to notifypublic void commitChanges()
InplaceEditorListener.
protected void editingCancelled()
InplaceEditorListener.
protected void abortEditing()
InplaceEditorListener.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||