com.tirsen.angkor.beans
Class JavaBeanModel
java.lang.Object
|
+--com.tirsen.angkor.beans.JavaBeanModel
- All Implemented Interfaces:
- ChangeSource, java.io.Serializable
- public class JavaBeanModel
- extends java.lang.Object
- implements java.io.Serializable, ChangeSource
A JavaBeanModel 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 JavaBeanModel
may be a little bit
inaccurate, maybe JavaBeanModel
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 |
JavaBeanModel
public JavaBeanModel(java.lang.Class objectClass)
JavaBeanModel
public JavaBeanModel(ValueModel model)
JavaBeanModel
public JavaBeanModel(java.lang.Object valueObject)
setValueObject
public void setValueObject(java.lang.Object valueObject)
getObject
public java.lang.Object getObject()
getObjectClass
public java.lang.Class getObjectClass()
getValue
public ValueModel getValue(java.lang.String expression)
getJavaBean
public JavaBeanModel getJavaBean(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.