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

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

public class Property
extends java.lang.Object

Defines a single Property. After a getter is set, the object is able to retrieve and set Values of a clientobject.

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

Constructor Summary
Property()
          Creates a new instance of Property
Property(java.lang.String name, java.lang.String getter)
          Creates a new Property and sets the Name (Caption) and the getMethode() of it.
 
Method Summary
 java.lang.String getGetter()
          Returns the get-method for this property
 java.lang.String getInfo()
          Returns the info(help) text for this property
 java.lang.String getName()
          Returns the Propertyname
 java.lang.String getSelect()
          Getter for property select.
 java.lang.String getSetter()
          Returns the name of the set-method of this property.
 java.lang.String getType()
          Getter for property type.
 java.lang.Object getValue(java.lang.Object clientObject)
          Returns the value for this property.
 void setGetter(java.lang.String getter)
          Sets the get-method for this property.
 void setInfo(java.lang.String info)
          Sets the infotext for this property
 void setName(java.lang.String name)
          Sets the propertyname
 void setSelect(java.lang.String select)
          Setter for property select.
 void setSetter(java.lang.String setter)
          Sets the setter-method for this property
 void setType(java.lang.String type)
          Setter for property type.
 void setValue(java.lang.Object clientObject, java.lang.Object value)
          Sets the value in the given clientObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Creates a new instance of Property


Property

public Property(java.lang.String name,
                java.lang.String getter)
Creates a new Property and sets the Name (Caption) and the getMethode() of it.

Parameters:
getter - Getmethod of the class
name - Propertyname
Method Detail

getInfo

public java.lang.String getInfo()
Returns the info(help) text for this property

Returns:
Value of property info.

setInfo

public void setInfo(java.lang.String info)
Sets the infotext for this property

Parameters:
info - New value of property info.

getName

public java.lang.String getName()
Returns the Propertyname

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Sets the propertyname

Parameters:
name - Propertyname

getValue

public java.lang.Object getValue(java.lang.Object clientObject)
Returns the value for this property. I.e.: If the getter is set to getID and the clientobject is a instance of layer, layer.getID() is returned.

Parameters:
clientObject - Object that acts as client for this property.
Returns:
The actual value of the described property of the clientObject

setValue

public void setValue(java.lang.Object clientObject,
                     java.lang.Object value)
Sets the value in the given clientObject.

Parameters:
clientObject -
value - New value to be set in clientObject

getSetter

public java.lang.String getSetter()
Returns the name of the set-method of this property.

Returns:
Setter.

setSetter

public void setSetter(java.lang.String setter)
Sets the setter-method for this property

Parameters:
setter - Set-method.

getGetter

public java.lang.String getGetter()
Returns the get-method for this property

Returns:
Getter

setGetter

public void setGetter(java.lang.String getter)
Sets the get-method for this property.

Parameters:
getter - Get-method for this property

getType

public java.lang.String getType()
Getter for property type.

Returns:
Value of property type.

setType

public void setType(java.lang.String type)
Setter for property type.

Parameters:
type - New value of property type.

getSelect

public java.lang.String getSelect()
Getter for property select.

Returns:
Value of property select.

setSelect

public void setSelect(java.lang.String select)
Setter for property select.

Parameters:
select - New value of property select.


Copyright - 2001 OpenAI Labs. All Rights Reserved.