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...

Author:
Michael Connor mlconnor@yahoo.com

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
 

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