org.netbeans.api.visual 2.21.1

org.netbeans.api.visual.action
Interface InplaceEditorProvider.EditorController

All Known Subinterfaces:
InplaceEditorProvider.TypedEditorController
Enclosing interface:
InplaceEditorProvider<C extends JComponent>

public static interface InplaceEditorProvider.EditorController

This is an interface of editor action supplied to the methods in the provider.


Method Summary
 void closeEditor(boolean commit)
          Closes the current in-place editor.
 boolean isEditorVisible()
          Returns whether an in-place editor is visible.
 void notifyEditorComponentBoundsChanged()
          Notify the boundary of an editor component is changed and auto-expansion should be recalculated.
 boolean openEditor(Widget widget)
          Opens an in-place editor on a specified widget.
 

Method Detail

isEditorVisible

boolean isEditorVisible()
Returns whether an in-place editor is visible.

Returns:
true, if visible; false, if not visible

openEditor

boolean openEditor(Widget widget)
Opens an in-place editor on a specified widget.

Parameters:
widget - the widget
Returns:
true, if the editor is really opened

closeEditor

void closeEditor(boolean commit)
Closes the current in-place editor.

Parameters:
commit - whether the current value in the in-place editor is approved by an user

notifyEditorComponentBoundsChanged

void notifyEditorComponentBoundsChanged()
Notify the boundary of an editor component is changed and auto-expansion should be recalculated.


org.netbeans.api.visual 2.21.1

Built on February 13 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.