org.openide.explorer.propertysheet
Interface PropertyModel

All Known Subinterfaces:
ExPropertyModel

public interface PropertyModel

Model defining the right behaviour of property. This model should be used for communication with PropertyBean bean.


Field Summary
static String PROP_VALUE
          Name of the 'value' property.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Add listener to change of the value.
 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 removePropertyChangeListener(PropertyChangeListener l)
          Remove listener to change of the value.
 void setValue(Object v)
          Setter for a value of a property.
 

Field Detail

PROP_VALUE

public static final String PROP_VALUE
Name of the 'value' property.
Method Detail

getValue

public Object getValue()
                throws InvocationTargetException
Getter for current value of a property.

setValue

public void setValue(Object v)
              throws InvocationTargetException
Setter for a value of a property.
Parameters:
v - the value

getPropertyType

public Class getPropertyType()
The class of the property.

getPropertyEditorClass

public Class getPropertyEditorClass()
The class of the property editor or null if default property editor should be used.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Add listener to change of the value.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Remove listener to change of the value.


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.