com.borland.primetime.properties
Class ProjectAutoProperty

java.lang.Object
  |
  +--com.borland.primetime.properties.Property
        |
        +--com.borland.primetime.properties.ProjectAutoProperty
All Implemented Interfaces:
java.lang.Comparable

public class ProjectAutoProperty
extends Property

This ProjectAutoProperty serves as a wrapper for the underlying automatic project property mechanism. There isn't any reason why a PropertyPage couldn't just go directly to the project 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
ProjectAutoProperty(java.lang.String category, java.lang.String name)
           
ProjectAutoProperty(java.lang.String category, java.lang.String name, java.lang.String defaultValue)
           
 
Method Summary
 void firePropertyChange(Project project, java.lang.String oldValue, java.lang.String newValue)
          Notifies all registered ProjectAutoPropertyListeners that the value of the property has been changed.
 java.lang.String getValue(Project project)
           
 boolean setValue(Project project, 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

ProjectAutoProperty

public ProjectAutoProperty(java.lang.String category,
                           java.lang.String name)

ProjectAutoProperty

public ProjectAutoProperty(java.lang.String category,
                           java.lang.String name,
                           java.lang.String defaultValue)
Method Detail

setValue

public boolean setValue(Project project,
                        java.lang.String value)

getValue

public java.lang.String getValue(Project project)

firePropertyChange

public void firePropertyChange(Project project,
                               java.lang.String oldValue,
                               java.lang.String newValue)
Notifies all registered ProjectAutoPropertyListeners that the value of the property has been changed.