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.


Field Summary
protected  java.lang.String defaultValue
           
 
Fields inherited from class com.borland.primetime.properties.Property
category, name
 
Constructor Summary
NodeProperty(java.lang.String category, java.lang.String name)
           
NodeProperty(java.lang.String category, java.lang.String name, java.lang.String defaultValue)
           
 
Method Summary
 void addPropertyListener(NodePropertyListener listener)
          Adds a NodePropertyListener to the list of listeners that receive events.
 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.
 java.lang.String getValue(Node node)
           
 void removePropertyListener(NodePropertyListener listener)
          Removes a NodePropertyListener from the list of listeners that receive events.
 boolean setValue(Node node, java.lang.String value)
           
 
Methods inherited from class com.borland.primetime.properties.Property
compareTo, equals, getPropertyCategory, getPropertyName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultValue

protected java.lang.String defaultValue
Constructor Detail

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)
Method Detail

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.