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

AbbrevsEditor (Editor Module) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor/3 1.32.0

org.netbeans.modules.editor.options
Class AbbrevsEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.netbeans.modules.editor.options.AbbrevsEditor
All Implemented Interfaces:
PropertyEditor

public class AbbrevsEditor
extends PropertyEditorSupport

AbbrevsEditor is editor for Map of abbreviations. Each abbreviation is pair of Strings.


Constructor Summary
AbbrevsEditor()
           
 
Method Summary
protected  void customEditorChange()
          The way our customEditor notifies us when user changes something.
 String getAsText()
          Return the label to be shown in the PropertySheet
 Component getCustomEditor()
          Create custom editor tightly coupled with this editor
protected  HelpCtx getHelpCtx()
           
 void setAsText(String s)
          Don't bother if the user tried to edit our label in the PropertySheet
 void setValue(Object obj)
          Sets the value for editor / customEditor
 boolean supportsCustomEditor()
          Tell the world that we have nice editor Component
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbbrevsEditor

public AbbrevsEditor()
Method Detail

getHelpCtx

protected HelpCtx getHelpCtx()

supportsCustomEditor

public boolean supportsCustomEditor()
Tell the world that we have nice editor Component

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport

getCustomEditor

public Component getCustomEditor()
Create custom editor tightly coupled with this editor

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport

setValue

public void setValue(Object obj)
Sets the value for editor / customEditor

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport

customEditorChange

protected void customEditorChange()
The way our customEditor notifies us when user changes something.


getAsText

public String getAsText()
Return the label to be shown in the PropertySheet

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String s)
Don't bother if the user tried to edit our label in the PropertySheet

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport

org.netbeans.modules.editor/3 1.32.0

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