org.mlc.swing.layout
Class BeanProperty

java.lang.Object
  extended by org.mlc.swing.layout.BeanProperty

public class BeanProperty
extends java.lang.Object

This represents a property in the ComponentBuilder. This is kind of a hack and this really should be done simply using introspection and property editors. It is simple though and works for now...

Since:
Ptolemy II 8.0
Version:
$Id: BeanProperty.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Michael Connor mlconnor@yahoo.com

Field Summary
(package private)  java.lang.String name
           
(package private)  java.util.List<java.lang.Object> possibleValues
           
(package private)  java.lang.Class type
           
 
Constructor Summary
BeanProperty(java.lang.String name, java.lang.Class type)
           
BeanProperty(java.lang.String name, java.lang.Class type, java.util.List<java.lang.Object> possibleValues)
          Creates a new instance of BeanProperty
 
Method Summary
 java.lang.String getName()
          Returns the value of the name property
 java.lang.Class getType()
          Returns the value of the type property
 void setName(java.lang.String name)
          Registers the value of the name property
 void setType(java.lang.Class type)
          Registers the value of the type property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

java.lang.String name

type

java.lang.Class type

possibleValues

java.util.List<java.lang.Object> possibleValues
Constructor Detail

BeanProperty

public BeanProperty(java.lang.String name,
                    java.lang.Class type,
                    java.util.List<java.lang.Object> possibleValues)
Creates a new instance of BeanProperty


BeanProperty

public BeanProperty(java.lang.String name,
                    java.lang.Class type)
Method Detail

setName

public void setName(java.lang.String name)
Registers the value of the name property

Parameters:
name - The value of the property

getName

public java.lang.String getName()
Returns the value of the name property

Returns:
The value

setType

public void setType(java.lang.Class type)
Registers the value of the type property

Parameters:
type - The value of the property

getType

public java.lang.Class getType()
Returns the value of the type property

Returns:
The value