|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.model.AbstractValueHolder com.taursys.model.ObjectValueHolder
ValueHolder which stores a Single Object value internally.
Field Summary | |
protected java.lang.Object |
obj
|
Constructor Summary | |
ObjectValueHolder()
Constructs a new ObjectValueHolder |
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds the specified change listener to receive change events from this ObjectValueHolder. |
void |
fireContentValueChanged()
Notifies all ChangeListeners that the contents of this value holder have changed. |
int |
getJavaDataType(java.lang.String propertyName)
Get javaDataType always returns DataTypes.TYPE_UNDEFINED (propertyName is ignored) |
java.lang.Object |
getObject()
Get the internal object for this holder. |
java.lang.String |
getParentPropertyName()
Get the property name of the Collection in the parentValueHolder for this VOCollectionValueHolder. |
ValueHolder |
getParentValueHolder()
Get the parent ValueHolder for this VOCollectionValueHolder. |
java.lang.Object |
getPropertyValue(java.lang.String propertyName)
Get the internal value (propertyName is ignored). |
protected java.lang.Object |
getPropertyValue(java.lang.String propertyName,
java.lang.Object vo)
Get the value for the given property in the given obj. |
protected java.lang.Object[] |
getPropertyValues(java.lang.String[] propertyNames,
java.lang.Object vo)
Get the values for the given properties in the given obj. |
void |
setObject(java.lang.Object obj)
Set the internal object for this holder. |
void |
setObject(java.lang.Object obj,
javax.swing.event.ChangeEvent e)
Set the internal object for this holder. |
void |
setParentPropertyName(java.lang.String parentPropertyName)
Set the property name of the Collection in the parentValueHolder for this VOCollectionValueHolder. |
void |
setParentValueHolder(ValueHolder parentValueHolder)
Set the parent ValueHolder for this VOCollectionValueHolder. |
void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Sets the internal object (propertyName is ignored). |
protected void |
setPropertyValues(java.lang.String[] propertyNames,
java.lang.Object[] values,
java.lang.Object vo)
Unsupported operation has no effect. |
protected void |
setPropertyValues(java.lang.String propertyName,
java.lang.Object value,
java.lang.Object vo)
Unsupported operation has no effect. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Invoked by the parentValueHolder whenever there is a change in its value. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class com.taursys.model.AbstractValueHolder |
checkArrays, fireStateChanged, getAlias, getPropertyValues, isMultiplePropertiesChanging, removeChangeListener, setAlias, setMultiplePropertiesChanging, setPropertyValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object obj
Constructor Detail |
public ObjectValueHolder()
Method Detail |
public java.lang.Object getObject()
public void setObject(java.lang.Object obj)
obj
- the internal object for this holder.public void setObject(java.lang.Object obj, javax.swing.event.ChangeEvent e)
obj
- the internal object for this holder.e
- ChangeEvent to fire to all ChangeListeners (if not null)public int getJavaDataType(java.lang.String propertyName) throws ModelException
getJavaDataType
in interface ValueHolder
getJavaDataType
in class AbstractValueHolder
ModelException
public java.lang.Object getPropertyValue(java.lang.String propertyName) throws ModelException
getPropertyValue
in interface ValueHolder
getPropertyValue
in class AbstractValueHolder
propertyName
- ignored
ModelException
public void setPropertyValue(java.lang.String propertyName, java.lang.Object value) throws ModelException
setPropertyValue
in interface ValueHolder
setPropertyValue
in class AbstractValueHolder
propertyName
- the property to update
ModelException
protected void setPropertyValues(java.lang.String propertyName, java.lang.Object value, java.lang.Object vo) throws ModelException
ModelException
protected void setPropertyValues(java.lang.String[] propertyNames, java.lang.Object[] values, java.lang.Object vo) throws ModelException
ModelException
public void setParentValueHolder(ValueHolder parentValueHolder)
parentValueHolder
- the parent ValueHolder for this VOCollectionValueHolder.public ValueHolder getParentValueHolder()
public void setParentPropertyName(java.lang.String parentPropertyName)
public java.lang.String getParentPropertyName()
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
e
- the ChangeEvent from the parentValueHolderprotected java.lang.Object getPropertyValue(java.lang.String propertyName, java.lang.Object vo) throws ModelException
ModelException
protected java.lang.Object[] getPropertyValues(java.lang.String[] propertyNames, java.lang.Object vo) throws ModelException
ModelException
public void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener
in interface ValueHolder
addChangeListener
in class AbstractValueHolder
l
- the specified change listener to receive change events from this
ObjectValueHolderpublic void fireContentValueChanged()
public java.lang.String toString()
toString
in class AbstractValueHolder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |