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

TextFieldInplaceEditor (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Interface TextFieldInplaceEditor


public interface TextFieldInplaceEditor

This is an inteface for text-field based in-place editor.


Method Summary
 String getText(Widget widget)
          Returns an initial text of the in-place editor.
 boolean isEnabled(Widget widget)
          Returns whether the in-place editing is allowed.
 void setText(Widget widget, String text)
          Sets a new text approved by an user.
 

Method Detail

isEnabled

boolean isEnabled(Widget widget)
Returns whether the in-place editing is allowed.

Parameters:
widget - the widget where the editor will be invoked
Returns:
true, if enabled; false if disabled

getText

String getText(Widget widget)
Returns an initial text of the in-place editor.

Parameters:
widget - the edited widget
Returns:
the initial text

setText

void setText(Widget widget,
             String text)
Sets a new text approved by an user.

Parameters:
widget - the edited widget
text - the new text entered by an user

org.netbeans.api.visual 2.2

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