|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.model.AbstractValueHolder
AbstractValueHolder is a partial implementation of the ValueHolder Interface.
Constructor Summary | |
AbstractValueHolder()
Constructs a new AbstractValueHolder |
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds the specified change listener to receive change events from this value holder. |
protected void |
checkArrays(java.lang.String[] propertyNames,
java.lang.Object[] values)
Check to ensure arrays are not null and same size |
protected void |
fireStateChanged(javax.swing.event.ChangeEvent e)
Reports a state change to all change listeners. |
java.lang.String |
getAlias()
Gets the alias name for this VOValueHolder. |
abstract int |
getJavaDataType(java.lang.String propertyName)
Get the java data type for the given propertyName |
abstract java.lang.Object |
getPropertyValue(java.lang.String propertyName)
Get the value for the given property name. |
java.lang.Object[] |
getPropertyValues(java.lang.String[] propertyNames)
Get the values for the given property names. |
protected boolean |
isMultiplePropertiesChanging()
Get flag indicating that multiple properties are being changed. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes the specified change listener so that it no longer receives change events from this value holder. |
void |
setAlias(java.lang.String newAlias)
Sets the alias name for this VOValueHolder. |
protected void |
setMultiplePropertiesChanging(boolean multiplePropertiesChanging)
Set flag indicating that multiple properties are being changed. |
abstract void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Set the named property's value to the given value. |
void |
setPropertyValues(java.lang.String[] propertyNames,
java.lang.Object[] values)
Set the the named property's values to the given values This method also sets the multiplePropertiesChanging to true while it is updating properties. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractValueHolder()
Method Detail |
public abstract int getJavaDataType(java.lang.String propertyName) throws ModelException
getJavaDataType
in interface ValueHolder
ModelException
public abstract java.lang.Object getPropertyValue(java.lang.String propertyName) throws ModelException
getPropertyValue
in interface ValueHolder
ModelException
public java.lang.Object[] getPropertyValues(java.lang.String[] propertyNames) throws ModelException
getPropertyValues
in interface ValueHolder
propertyNames
- array of property names
ModelException
public abstract void setPropertyValue(java.lang.String propertyName, java.lang.Object value) throws ModelException
setPropertyValue
in interface ValueHolder
propertyName
- the property to updatevalue
- the value to set the property to
ModelException
public void setPropertyValues(java.lang.String[] propertyNames, java.lang.Object[] values) throws ModelException
setPropertyValues
in interface ValueHolder
propertyNames
- the names of the properties to updatevalues
- the array of values to update the properties with
ModelException
protected void checkArrays(java.lang.String[] propertyNames, java.lang.Object[] values) throws ModelException
propertyNames
- the list of property namesvalues
- the corresponding values
ModelException.REASON_MULTI_PROPERTY_MISMATCH
- if either array
is null or they are not the same size.
ModelException
public void setAlias(java.lang.String newAlias)
newAlias
- the alias name for this VOValueHolderpublic java.lang.String getAlias()
getAlias
in interface ValueHolder
protected void setMultiplePropertiesChanging(boolean multiplePropertiesChanging)
multiplePropertiesChanging
- flag indicating that multiple
properties are being changed.protected boolean isMultiplePropertiesChanging()
public void removeChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener
in interface ValueHolder
l
- the change listener to removepublic void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener
in interface ValueHolder
l
- the change listener to addprotected void fireStateChanged(javax.swing.event.ChangeEvent e)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |