com.tirsen.angkor.widget
Class PropertyValueModel

java.lang.Object
  |
  +--com.tirsen.angkor.widget.PropertyValueModel
All Implemented Interfaces:
java.io.Serializable, ValueModel

public class PropertyValueModel
extends java.lang.Object
implements ValueModel

A value model implementation which fetches and updates it's value according to the patterns of the JavaBean specification, useful together with ModelProxy.

Version:
$Revision: 1.4 $
Author:
$Author: tirsen $
See Also:
Serialized Form

Constructor Summary
PropertyValueModel(ModelProxy proxy, java.lang.String property)
           
PropertyValueModel(java.lang.Object object, java.beans.PropertyDescriptor property)
           
PropertyValueModel(java.lang.Object object, java.lang.String property)
           
 
Method Summary
 java.beans.PropertyEditor getPropertyEditor()
           
 java.lang.Object getValue()
           
 java.lang.Class getValueClass()
           
 boolean isChanged()
           
 boolean isReadOnly()
           
 void resetChanged()
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValueModel

public PropertyValueModel(java.lang.Object object,
                          java.lang.String property)

PropertyValueModel

public PropertyValueModel(java.lang.Object object,
                          java.beans.PropertyDescriptor property)

PropertyValueModel

public PropertyValueModel(ModelProxy proxy,
                          java.lang.String property)
Method Detail

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface ValueModel

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface ValueModel

getValueClass

public java.lang.Class getValueClass()
Specified by:
getValueClass in interface ValueModel

isChanged

public boolean isChanged()
Specified by:
isChanged in interface ValueModel

resetChanged

public void resetChanged()
Specified by:
resetChanged in interface ValueModel

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface ValueModel

getPropertyEditor

public java.beans.PropertyEditor getPropertyEditor()
Specified by:
getPropertyEditor in interface ValueModel


Copyright © 2002-2002 . All Rights Reserved.