com.tirsen.angkor.beans
Class BeanModel
java.lang.Object
|
+--com.tirsen.angkor.beans.BeanModel
- All Implemented Interfaces:
- ChangeSource, java.io.Serializable
- public class BeanModel
- extends java.lang.Object
- implements java.io.Serializable, ChangeSource
A BeanModel acts as the proxy for JavaBean instances which may or may not actually
exist enabling them to be lazily evaluated only when a view actually requests the value
of the JavaBean. Useful when creating views which should be bound to properties of JavaBeans
but the view is not yet visible and the JavaBean is not yet instantiated. Also has a lot of
utility methods for creating various models bound to the JavaBean so it may be useful even if
the JavaBean actually exists. For this reason the name BeanModel
may be a little bit
inaccurate, maybe BeanModel
may be better.
- Version:
- $Revision: 1.2 $
- Author:
- $Author: tirsen $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanModel
public BeanModel(java.lang.Class objectClass)
BeanModel
public BeanModel(ValueModel model)
BeanModel
public BeanModel(java.lang.Object valueObject)
setBean
public void setBean(java.lang.Object valueObject)
getBean
public java.lang.Object getBean()
getObjectClass
public java.lang.Class getObjectClass()
getTable
public BeanTableModel getTable(java.lang.String expression)
getTable
public BeanTableModel getTable(java.lang.String expression,
java.lang.Class propertyClass)
getValue
public ValueModel getValue(java.lang.String expression)
parseExpression
public com.tirsen.angkor.beans.BeanModel.PropertySpec parseExpression(java.lang.String expression)
getBean
public BeanModel getBean(java.lang.String expression)
addChangeListener
public void addChangeListener(ChangeListener listener)
- Specified by:
addChangeListener
in interface ChangeSource
removeChangeListener
public void removeChangeListener(ChangeListener listener)
- Specified by:
removeChangeListener
in interface ChangeSource
Copyright © 2002-2002 . All Rights Reserved.