com.borland.primetime.properties
Class NodeProperty
java.lang.Object
|
+--com.borland.primetime.properties.Property
|
+--com.borland.primetime.properties.NodeProperty
- public class NodeProperty
- extends Property
This NodeProperty serves as a wrapper for the underlying node property
mechanism. There isn't any reason why a PropertyPage couldn't just go
directly to the node to alter values, but for consistency this offers a
standardized Property-style wrapper.
Constructor Summary |
NodeProperty(java.lang.String category,
java.lang.String name)
|
NodeProperty(java.lang.String category,
java.lang.String name,
java.lang.String defaultValue)
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
defaultValue
protected java.lang.String defaultValue
NodeProperty
public NodeProperty(java.lang.String category,
java.lang.String name)
NodeProperty
public NodeProperty(java.lang.String category,
java.lang.String name,
java.lang.String defaultValue)
setValue
public boolean setValue(Node node,
java.lang.String value)
getValue
public java.lang.String getValue(Node node)
addPropertyListener
public void addPropertyListener(NodePropertyListener listener)
- Adds a NodePropertyListener to the list of listeners that receive events.
- Parameters:
listener
- The listener.
removePropertyListener
public void removePropertyListener(NodePropertyListener listener)
- Removes a NodePropertyListener from the list of listeners that receive
events.
- Parameters:
listener
- The listener.
firePropertyChange
public void firePropertyChange(Node node,
java.lang.String oldValue,
java.lang.String newValue)
- Notifies all registered NodePropertyListeners that the value of the
property has been changed.