|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.supple.rep.values.Variable
edu.washington.cs.supple.beanlike.BeanlikeValue
BeanlikeValue allows a Supple UI variable to be bound to a beanlike property. The value of the property may be simple (String, Integer, etc.) or complex (i.e. a ValueObject).
Constructor Summary | |
BeanlikeValue(java.lang.Object beanlike,
BeanlikePropertyDescriptor pd,
BeanlikeValueDescriptor bvd)
Create a value binding that listens to a beanlike property. |
|
BeanlikeValue(java.lang.Object beanlike,
java.lang.String propertyName)
Create a value binding that listens to a beanlike property. |
|
BeanlikeValue(java.lang.Object beanlike,
java.lang.String propertyName,
BeanlikeValueDescriptor bvd)
Create a value binding that listens to a beanlike property, and binds |
Method Summary | |
java.lang.Object |
fromBeanlike(java.lang.Object value)
Convert a value from a bean property into a usable value object. |
java.lang.Object |
getValue()
Get the bound value. |
java.lang.Class |
getValueClass()
Get the class of this variable |
protected void |
postLastListener()
Subclasses can use this to implement post-last-listener cleanup. |
protected void |
preFirstListener()
Subclasses can use this to implement pre-first-listener setup. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
setValue(java.lang.Object value)
Set the value of this variable. |
java.lang.Object |
toBeanlike(java.lang.Object value)
Extract the beanlike from an incoming value object. |
java.lang.String |
toString()
|
Methods inherited from class edu.washington.cs.supple.rep.values.Variable |
addListener, processUpdate, removeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.washington.cs.supple.rep.values.ValueBinding |
addListener, removeListener |
Constructor Detail |
public BeanlikeValue(java.lang.Object beanlike, java.lang.String propertyName)
public BeanlikeValue(java.lang.Object beanlike, java.lang.String propertyName, BeanlikeValueDescriptor bvd)
public BeanlikeValue(java.lang.Object beanlike, BeanlikePropertyDescriptor pd, BeanlikeValueDescriptor bvd)
Method Detail |
public java.lang.Class getValueClass()
ValueBinding
getValueClass
in interface ValueBinding
public java.lang.Object getValue()
ValueBinding
getValue
in interface ValueBinding
public void setValue(java.lang.Object value)
ValueBinding
setValue
in interface ValueBinding
value
- protected void preFirstListener()
Variable
preFirstListener
in class Variable
protected void postLastListener()
Variable
postLastListener
in class Variable
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public java.lang.Object fromBeanlike(java.lang.Object value)
value
-
public java.lang.Object toBeanlike(java.lang.Object value)
value
-
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |