|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.loribel.commons.business.GB_BOValueAbstract
Default abstract implementation of GB_SimpleBOValue.
| Field Summary | |
protected GB_SimpleBusinessObjectSet |
businessObject
The BusinessObject linked to this value. |
protected GB_BOProperty |
property
Meta data of the value (BusinessObject property). |
| Constructor Summary | |
GB_BOValueAbstract(GB_SimpleBusinessObjectSet a_businessObject,
GB_BOProperty a_property)
Constructor of GB_SimpleBusinessObjectValueAbstract with parameter(s). |
|
GB_BOValueAbstract(GB_SimpleBusinessObjectSet a_businessObject,
java.lang.String a_propertyName)
Constructor of GB_SimpleBusinessObjectValueAbstract with parameter(s). |
|
| Method Summary | |
void |
addMyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
Add a MyPropertyChangeListener to the listener list. |
void |
addMyPropertyChangeListener(java.lang.String a_property,
GB_MyPropertyChangeListener a_listener)
Add a MyPropertyChangeListener for a specific property. |
protected abstract void |
checkWithProperty()
|
protected void |
fireMyPropertyChange(java.lang.String a_propertyName,
java.lang.Object a_oldValue,
java.lang.Object a_newValue)
Report a property update to any registered listeners. |
GB_SimpleBusinessObjectSet |
getBusinessObject()
Get The BusinessObject linked to this value.. |
GB_BOProperty |
getProperty()
Get Meta data of the value (BusinessObject property).. |
java.lang.String |
getPropertyName()
return the property name corresponding to this value. |
java.lang.Class |
getType()
Return the type of value. |
boolean |
isBusinessObject()
Return true if the property is assignable to BusinessObject. |
boolean |
isMultiValue()
Return true if this object represent a list of values. |
void |
removeMyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
Remove a GB_PropertyChangeListener from the listener list. |
void |
removeMyPropertyChangeListener(java.lang.String a_property,
GB_MyPropertyChangeListener a_listener)
Remove a GB_PropertyChangeListener for a specific property. |
protected void |
setBusinessObject(GB_SimpleBusinessObjectSet a_businessObject)
Set The BusinessObject linked to this value.. |
protected void |
setProperty(GB_BOProperty a_property)
Set Meta data of the value (BusinessObject property).. |
protected void |
setProperty(java.lang.String a_propertyName)
Set the property by this name. |
java.lang.String |
toString()
Use to debug. |
void |
updateValue(java.lang.Object a_newValue)
Update the value of the property by setting a value of the property (see getPropertyName()) of the BusinessObject associated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_SimpleBOValue |
getValue |
| Field Detail |
protected GB_SimpleBusinessObjectSet businessObject
protected GB_BOProperty property
| Constructor Detail |
public GB_BOValueAbstract(GB_SimpleBusinessObjectSet a_businessObject,
GB_BOProperty a_property)
a_businessObject - GB_SimpleBusinessObjectSet -a_property - GB_BOProperty -
public GB_BOValueAbstract(GB_SimpleBusinessObjectSet a_businessObject,
java.lang.String a_propertyName)
a_businessObject - GB_SimpleBusinessObjectSet -a_propertyName - String -| Method Detail |
public void addMyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
addMyPropertyChangeListener in interface GB_MyPropertyOwnera_listener - GB_MyPropertyChangeListener - the PropertyChangeListener to be added
public void addMyPropertyChangeListener(java.lang.String a_property,
GB_MyPropertyChangeListener a_listener)
addMyPropertyChangeListener in interface GB_MyPropertyOwnera_property - String - the name of the property to listen ona_listener - GB_MyPropertyChangeListener - the PropertyChangeListener to be addedprotected abstract void checkWithProperty()
protected void fireMyPropertyChange(java.lang.String a_propertyName,
java.lang.Object a_oldValue,
java.lang.Object a_newValue)
a_propertyName - String - the programmatic name of the property that was changeda_oldValue - Object - the old value of the propertya_newValue - Object - the new value of the propertypublic GB_SimpleBusinessObjectSet getBusinessObject()
getBusinessObject in interface GB_SimpleBOValuepublic GB_BOProperty getProperty()
public java.lang.String getPropertyName()
getPropertyName in interface GB_SimpleBOValuepublic java.lang.Class getType()
getType in interface GB_SimpleBOValuepublic boolean isBusinessObject()
public boolean isMultiValue()
public void removeMyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
removeMyPropertyChangeListener in interface GB_MyPropertyOwnera_listener - GB_MyPropertyChangeListener - the PropertyChangeListener to be removed
public void removeMyPropertyChangeListener(java.lang.String a_property,
GB_MyPropertyChangeListener a_listener)
removeMyPropertyChangeListener in interface GB_MyPropertyOwnera_property - String - the name of the property that was listened ona_listener - GB_MyPropertyChangeListener - the PropertyChangeListener to be removedprotected void setBusinessObject(GB_SimpleBusinessObjectSet a_businessObject)
a_businessObject - GB_SimpleBusinessObjectSet - businessObjectprotected void setProperty(GB_BOProperty a_property)
a_property - GB_BOProperty - propertyprotected void setProperty(java.lang.String a_propertyName)
a_propertyName - String - the name of propertypublic java.lang.String toString()
public void updateValue(java.lang.Object a_newValue)
updateValue in interface GB_SimpleBOValueSeta_newValue - Object - the new value of the property
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||