|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.explorer.propertysheet.PropertyEnv
PropertyEnv is a class which allows an object (such as a
Node.Property instance) to communicate hints to property
editor instances that affect the behavior or visual
rendering of the property in a PropertySheet
or PropertyPanel
component. An instance of
PropertyEnv is passed to the attachEnv()
method of property editors implementing ExPropertyEditor.
Such property editors may then call
env.getFeatureDescriptor().get("someHintString")
to retrieve hints that affect their behavior from the
Node.Property object whose properties they are displaying.
Note: client code should treat this class as final; it should never be necessary to create instances of this class outside the propertysheet package or to subclass it.
Field Summary | |
static String |
PROP_STATE
Name of the state property. |
static Object |
STATE_INVALID
One possible value for the setState/getState methods. |
static Object |
STATE_NEEDS_VALIDATION
One possible value for the setState/getState methods. |
static Object |
STATE_VALID
One possible value for the setState/getState methods. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Property change listener: listenning here you will be notified when the state of the environment is has been changed. |
void |
addVetoableChangeListener(VetoableChangeListener l)
Vetoable change listener: listenning here you will be notified when the state of the environment is being changed (when the setState method is being called). |
Object[] |
getBeans()
Array of beans that the edited property belongs to. |
FeatureDescriptor |
getFeatureDescriptor()
Feature descritor that describes the property. |
Object |
getState()
A getter for the current state of the environment. |
void |
registerInplaceEditorFactory(InplaceEditor.Factory factory)
Register a factory for InplaceEditor instances that the property sheet should use as an inline editor for the property. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes Property change listener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Vetoable change listener removal. |
void |
setState(Object newState)
A setter that should be used by the property editor to change the state of the environment. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String PROP_STATE
public static final Object STATE_VALID
public static final Object STATE_NEEDS_VALIDATION
public static final Object STATE_INVALID
Method Detail |
public Object[] getBeans()
public FeatureDescriptor getFeatureDescriptor()
public void setState(Object newState)
public Object getState()
public void addVetoableChangeListener(VetoableChangeListener l)
public void addPropertyChangeListener(PropertyChangeListener l)
public void removeVetoableChangeListener(VetoableChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public void registerInplaceEditorFactory(InplaceEditor.Factory factory)
getValue(String)
.
Node.Property
,
InplaceEditor
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |