com.borland.primetime.properties
Class ProjectAutoArrayProperty
java.lang.Object
|
+--com.borland.primetime.properties.Property
|
+--com.borland.primetime.properties.ProjectAutoArrayProperty
- All Implemented Interfaces:
- java.lang.Comparable
- public class ProjectAutoArrayProperty
- extends Property
Instances of ProjectAutoArrayProperty are used to represent automatic project
settings with a related set of zero or more values under the user's control.
Constructor Summary |
ProjectAutoArrayProperty(java.lang.String category,
java.lang.String name)
Creates an auto project property whose values will be stored as a sequence
of individual properties with the names 'name.0', 'name.1', etc. |
Method Summary |
void |
firePropertyChange(Project project,
java.lang.String[] newValue)
Notifies all registered ProjectAutoArrayPropertyListeners that the value
of the property has been changed. |
java.lang.String[] |
getValues(Project project)
Fetches the current setting of this property. |
boolean |
setValues(Project project,
java.lang.String[] values)
Changes the current setting of the property to the array of strings
provided. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProjectAutoArrayProperty
public ProjectAutoArrayProperty(java.lang.String category,
java.lang.String name)
- Creates an auto project property whose values will be stored as a sequence
of individual properties with the names 'name.0', 'name.1', etc.
- Parameters:
category
- The category this property will be stored under.name
- The root name used to generate each of the individual property
names for entries in the array.
setValues
public boolean setValues(Project project,
java.lang.String[] values)
- Changes the current setting of the property to the array of strings
provided.
- Parameters:
values
- The desired array of parameter values. Null is treated the
same as an empty array.- Returns:
- True if one or more changes were made, false otherwise.
getValues
public java.lang.String[] getValues(Project project)
- Fetches the current setting of this property.
- Returns:
- The stored array of parameter values, or an empty array if no
values have been stored.
firePropertyChange
public void firePropertyChange(Project project,
java.lang.String[] newValue)
- Notifies all registered ProjectAutoArrayPropertyListeners that the value
of the property has been changed.