当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ScrollInsetsEditor (Editor Module) - NetBeans API Javadoc (Current Development Version)
org.netbeans.modules.editor.options
Class ScrollInsetsEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.netbeans.modules.editor.options.ScrollInsetsEditor
- All Implemented Interfaces:
- PropertyEditor, ExPropertyEditor
public class ScrollInsetsEditor
- extends PropertyEditorSupport
- implements ExPropertyEditor
A property editor for Insets class allowing to specify per cent value
represented as negative number.
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrollInsetsEditor
public ScrollInsetsEditor()
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor
in interface PropertyEditor
- Overrides:
supportsCustomEditor
in class PropertyEditorSupport
getCustomEditor
public Component getCustomEditor()
- Specified by:
getCustomEditor
in interface PropertyEditor
- Overrides:
getCustomEditor
in class PropertyEditorSupport
getAsText
public String getAsText()
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
- Returns:
- The property value as a human editable string.
Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should
be prepared to parse that string back in setAsText().
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Set the property value by parsing a given String. May raise
java.lang.IllegalArgumentException if either the String is
badly formatted or if this kind of property can't be expressed
as text.
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
- Parameters:
text
- The string to be parsed.
- Throws:
IllegalArgumentException
attachEnv
public void attachEnv(PropertyEnv env)
- Specified by:
attachEnv
in interface ExPropertyEditor