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

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

public class PropertyHandler
extends java.lang.Object

Mainclass of the propertysystem. Reads and holds property- and selectionlists.

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

Constructor Summary
PropertyHandler()
          Constructs a new (empty) propertyhandler
 
Method Summary
 void addPropertyDefinition(java.lang.String path)
          Reads and umarshalls a XML-propertydescription.
static PropertyList getPropertyList(java.lang.Object client)
          Searches in the internal propertylist's for a maching definition.
static java.util.Vector getSelectionList(java.lang.String name)
          Returns a selectionlist (for i.E.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyHandler

public PropertyHandler()
Constructs a new (empty) propertyhandler

Method Detail

addPropertyDefinition

public void addPropertyDefinition(java.lang.String path)
Reads and umarshalls a XML-propertydescription. Adds all propertylists from the file to the own, internal list.


getPropertyList

public static PropertyList getPropertyList(java.lang.Object client)
Searches in the internal propertylist's for a maching definition. This method takes care of classinheritance as well. So if class 'B' extends class 'A' and 'B' is requested but only 'A' is defined, it returns the propertylist for 'A'.

Parameters:
client - Clientobject thats the source for the propertyvalues
Returns:
A maching propertylist for the clientobject's class

getSelectionList

public static java.util.Vector getSelectionList(java.lang.String name)
Returns a selectionlist (for i.E. a dropdown-box) with the given name

Parameters:
name - Name of the selectionlist to be found
Returns:
A vector of SelectionEntries


Copyright - 2001 OpenAI Labs. All Rights Reserved.