net.jbeans.bean.property.editor
Class IntegerEditor
java.lang.Object
java.beans.PropertyEditorSupport
net.jbeans.bean.property.editor.EditorSupport
net.jbeans.bean.property.editor.IntegerEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
- public final class IntegerEditor
- extends EditorSupport
A property editor for editing integers. This editor also supports enumerated
type properties which are identified if the "enumerationValues" key returns
a non-null value.
Note: the init() method must be called before the set/get methods can be
called.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Masahiro Takatsuka (masa@jbeans.net)
- See Also:
EditorSupport
Method Summary |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Must overloade the PropertyChangeListener registration because
this class is the only interface to the EnumEditor. |
java.awt.Component |
getCustomEditor()
Return the custom editor for the enumeration or the integer. |
java.lang.String |
getJavaInitializationString()
|
java.lang.Object |
getValue()
|
void |
init(java.beans.PropertyDescriptor descriptor)
Initializes this property editor with the enumerated items. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
setValue(java.lang.Object value)
|
Methods inherited from class java.beans.PropertyEditorSupport |
firePropertyChange, getAsText, getTags, isPaintable, paintValue, setAsText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerEditor
public IntegerEditor()
setValue
public final void setValue(java.lang.Object value)
getValue
public final java.lang.Object getValue()
addPropertyChangeListener
public final void addPropertyChangeListener(java.beans.PropertyChangeListener l)
- Must overloade the PropertyChangeListener registration because
this class is the only interface to the EnumEditor.
removePropertyChangeListener
public final void removePropertyChangeListener(java.beans.PropertyChangeListener l)
init
public final void init(java.beans.PropertyDescriptor descriptor)
- Initializes this property editor with the enumerated items.
- Overrides:
init
in class EditorSupport
getCustomEditor
public final java.awt.Component getCustomEditor()
- Return the custom editor for the enumeration or the integer.
- Specified by:
getCustomEditor
in interface java.beans.PropertyEditor
- Overrides:
getCustomEditor
in class EditorSupport
getJavaInitializationString
public final java.lang.String getJavaInitializationString()
Copyright © 2003 JBean project. All Rights Reserved.