|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.explorer.propertysheet.DefaultPropertyModel
The default implementation of PropertyModel interface. It takes the bean instance and the property name which should be accessed through PropertyModel methods. We now implement the new ExPropertyModel interface (which extends PropertyModel).
Fields inherited from interface org.openide.explorer.propertysheet.PropertyModel |
PROP_VALUE |
Constructor Summary | |
DefaultPropertyModel(Object bean,
String propertyName)
Creates new DefaultPropertyModel. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds listener to change of the value. |
Object[] |
getBeans()
Returns an array of beans/nodes that this property belongs to. |
FeatureDescriptor |
getFeatureDescriptor()
Returns descriptor describing the property. |
Class |
getPropertyEditorClass()
The class of the property editor or null
if default property editor should be used. |
Class |
getPropertyType()
The class of the property. |
Object |
getValue()
Getter for current value of a property. |
void |
propertyChange(PropertyChangeEvent evt)
Implementation of PropertyChangeListener method |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes listener to change of the value. |
void |
setValue(Object v)
Setter for a value of a property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPropertyModel(Object bean, String propertyName) throws IllegalArgumentException
bean
- the java bean to be introspectedpropertyName
- name of the propertyIllegalArgumentException
- if there is any problem
with the parameters (introspection of bean,...)Method Detail |
public Class getPropertyType()
PropertyModel
getPropertyType
in interface PropertyModel
public Object getValue() throws InvocationTargetException
getValue
in interface PropertyModel
public void setValue(Object v) throws InvocationTargetException
setValue
in interface PropertyModel
v
- the valuepublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface PropertyModel
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface PropertyModel
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public Class getPropertyEditorClass()
null
if default property editor should be used.getPropertyEditorClass
in interface PropertyModel
public Object[] getBeans()
getBeans
in interface ExPropertyModel
public FeatureDescriptor getFeatureDescriptor()
getFeatureDescriptor
in interface ExPropertyModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |