net.openai.ai.nn.gui.properties
Class PropertyList

java.lang.Object
  |
  +--net.openai.ai.nn.gui.properties.PropertyList

public class PropertyList
extends java.lang.Object

Represents all properties for a class that are view- or changeable. Basicly its a collection of property-objects.

Version:
$Id: PropertyList.java,v 1.1 2002/03/17 18:04:48 tweber Exp $ History:
$Log: PropertyList.java,v $
Revision 1.1 2002/03/17 18:04:48 tweber
First release of the propertysystem
Author:
Thomas Weber

Constructor Summary
PropertyList()
          Constructs a empty propertylist.
PropertyList(java.lang.Class clientclass)
          Constructs a empty propertylist for the given class.
 
Method Summary
 void add(Property property)
          Adds a single property to this list.
 java.lang.Class getClientClass()
          Returns the list's classobject,
 java.lang.String getClientClassName()
          Returns the name of the clientclass.
 java.util.Vector getProperties()
          Returns all properties as Vector.
 void setClientClassName(java.lang.String classname)
          Sets the clientclassname.
 void setProperties(java.util.Vector properties)
          Sets the properties of this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyList

public PropertyList()
Constructs a empty propertylist.


PropertyList

public PropertyList(java.lang.Class clientclass)
Constructs a empty propertylist for the given class.

Parameters:
clientclass - The new list will hold the properties for this class.
Method Detail

setClientClassName

public void setClientClassName(java.lang.String classname)
Sets the clientclassname. The clientclass itself is set by this method, too. Its created on the fly by Class.forName(classname) This method is needed for the XML-persistence to work.

Parameters:
classname - The new list will hold the properties for this class.

getClientClassName

public java.lang.String getClientClassName()
Returns the name of the clientclass.

Returns:
The name of the class that is represented with this list.

getClientClass

public java.lang.Class getClientClass()
Returns the list's classobject,

Returns:
The class that is represented with this list.

add

public void add(Property property)
Adds a single property to this list.

Parameters:
property - Property to be added

getProperties

public java.util.Vector getProperties()
Returns all properties as Vector.

Returns:
All properties.

setProperties

public void setProperties(java.util.Vector properties)
Sets the properties of this list.

Parameters:
properties - Vector filled with properties.


Copyright - 2001 OpenAI Labs. All Rights Reserved.