org.netbeans.core/2 3.32

org.netbeans.beaninfo.editors
Class WrappersEditor

java.lang.Object
  extended by org.netbeans.beaninfo.editors.WrappersEditor
All Implemented Interfaces:
PropertyEditor, ExPropertyEditor
Direct Known Subclasses:
BooleanEditor, ByteEditor, CharacterEditor, DoubleEditor, FloatEditor, IntegerEditor, LongEditor, ShortEditor

public abstract class WrappersEditor
extends Object
implements ExPropertyEditor

Abstract class represents Editor for Wrappers of 8 known primitive types (Byte, Short, Integer, Long, Boolean, Float, Double, Character)


Field Summary
protected  PropertyEditor pe
           
 
Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor
PROP_VALUE_VALID, PROPERTY_HELP_ID
 
Constructor Summary
WrappersEditor(Class type)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 void attachEnv(PropertyEnv env)
           
 String getAsText()
           
 Component getCustomEditor()
           
 String[] getTags()
           
 Object getValue()
           
 boolean isPaintable()
           
 void paintValue(Graphics gfx, Rectangle box)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setAsText(String text)
           
 void setValue(Object newValue)
           
 boolean supportsCustomEditor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
getJavaInitializationString
 

Field Detail

pe

protected PropertyEditor pe
Constructor Detail

WrappersEditor

public WrappersEditor(Class type)
Method Detail

setValue

public void setValue(Object newValue)
              throws IllegalArgumentException
Specified by:
setValue in interface PropertyEditor
Throws:
IllegalArgumentException

getValue

public Object getValue()
Specified by:
getValue in interface PropertyEditor

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface PropertyEditor

paintValue

public void paintValue(Graphics gfx,
                       Rectangle box)
Specified by:
paintValue in interface PropertyEditor

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Throws:
IllegalArgumentException

getTags

public String[] getTags()
Specified by:
getTags in interface PropertyEditor

getCustomEditor

public Component getCustomEditor()
Specified by:
getCustomEditor in interface PropertyEditor

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface PropertyEditor

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface PropertyEditor

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface PropertyEditor

attachEnv

public void attachEnv(PropertyEnv env)
Specified by:
attachEnv in interface ExPropertyEditor

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.