站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

InplaceEditorProvider.EditorController (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

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

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.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.