|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.loribel.commons.business.GB_BusinessObjectAbstract
com.loribel.commons.business.GB_BusinessObjectDefault
Default implementation for BusinessObject.
| Nested Class Summary |
| Nested classes inherited from class com.loribel.commons.business.abstraction.GB_BusinessObject |
GB_BusinessObject.MY_PROPERTY |
| Constructor Summary | |
GB_BusinessObjectDefault(java.lang.String a_name)
Constructor of GB_BusinessObjectDefault with parameter(s). |
|
| Method Summary | |
void |
addApplyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
Add a PropertyChangeListener for the specific property MY_PROPERTY.APPLY. |
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 void |
addPropertyDependent(java.lang.String a_propertySrc,
java.lang.String a_calculatedProperty)
Add a dependence between properties. |
void |
addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value,
int a_index)
Subclass this method to fire event when a property changes. |
protected java.util.Map |
buildBOValueMap()
Overwrite method to create a new Map with the init size = propertyCount. |
protected java.util.Map |
buildPropertyMap()
This method is used the first time we demand the map of properties. |
protected java.util.List |
buildPropertyNames()
This method is used the first time we demand the propertyNames. |
void |
doApply()
Do Apply and send MyPropertyEvent. |
void |
doUpdate()
Send PropertyEvent for property MY_PROPERTY_UPDATE. |
protected void |
fireEventFromBOValue(java.lang.String a_propertyName)
Fire a event on a specific property. |
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. |
java.util.List |
getAllListeners()
Returns a list of all listeners. |
boolean |
isReadOnly()
Get flag read-only. |
void |
removeApplyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
Remove a PropertyChangeListener for the specific property MY_PROPERTY.APPLY. |
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. |
void |
removePropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Subclass this method to fire event when a property changes. |
void |
setModified(boolean a_modified)
Override method to fire property event when flag change. |
void |
setPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Subclass this method to fire event when a property changes. |
void |
setReadOnly(boolean a_flagReadOnly)
Set flag read-only. |
java.util.List |
toDebug()
Returns an array to debug values of BusinessObject. |
java.lang.String |
toDebugId()
Returns an id for debug. |
boolean |
unregister()
Unregister all listeners of this business object. |
| 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_SimpleBusinessObjectSet |
addPropertyValue, putPropertyValueMap, removePropertyValueMap |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_SimpleBusinessObject |
getBOName, getProperty, getPropertyNames, getPropertyValue, isModified |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_BOParentOwner |
getBoParent |
| Methods inherited from interface com.loribel.commons.abstraction.GB_LabelInfoOwner |
getLabelInfo |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_BOParentOwnerSet |
setBoParent |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_BOValueOwner |
getBOValue |
| Methods inherited from interface com.loribel.commons.abstraction.GB_MementoCompliant |
installMemento, newMemento |
| Constructor Detail |
public GB_BusinessObjectDefault(java.lang.String a_name)
a_name - String - business Object Name| Method Detail |
public void addApplyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
a_listener - GB_MyPropertyChangeListener - the PropertyChangeListener to be addedpublic 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 added
protected void addPropertyDependent(java.lang.String a_propertySrc,
java.lang.String a_calculatedProperty)
a_propertySrc - String - the property sourcea_calculatedProperty - String - the property that must change when the property source changes
public void addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value,
int a_index)
addPropertyValue in class GB_BusinessObjectAbstracta_propertyName - String -a_value - Object -protected java.util.Map buildBOValueMap()
buildBOValueMap in class GB_BusinessObjectAbstractprotected java.util.Map buildPropertyMap()
buildPropertyMap in class GB_BusinessObjectAbstractprotected java.util.List buildPropertyNames()
buildPropertyNames in class GB_BusinessObjectAbstractpublic void doApply()
doApply in interface GB_BusinessObjectpublic void doUpdate()
doUpdate in interface GB_BusinessObjectprotected void fireEventFromBOValue(java.lang.String a_propertyName)
a_propertyName - String - a_propertyName
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 java.util.List getAllListeners()
public boolean isReadOnly()
isReadOnly in interface GB_SimpleBusinessObjectpublic void removeApplyPropertyChangeListener(GB_MyPropertyChangeListener a_listener)
a_listener - GB_MyPropertyChangeListener - the PropertyChangeListener to be addedpublic 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 removed
public void removePropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
removePropertyValue in interface GB_SimpleBusinessObjectSetremovePropertyValue in class GB_BusinessObjectAbstracta_propertyName - String - a_propertyNamea_value - Object - a_valuepublic void setModified(boolean a_modified)
setModified in interface GB_SimpleBusinessObjectSetsetModified in class GB_BusinessObjectAbstract
public void setPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
setPropertyValue in interface GB_SimpleBusinessObjectSetsetPropertyValue in class GB_BusinessObjectAbstracta_propertyName - String -a_value - Object -public void setReadOnly(boolean a_flagReadOnly)
setReadOnly in interface GB_SimpleBusinessObjectSeta_flagReadOnly - boolean - flagReadOnlypublic java.util.List toDebug()
toDebug in interface GB_Debugablepublic java.lang.String toDebugId()
toDebugId in interface GB_Debugablepublic boolean unregister()
unregister in interface GB_Unregisterable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||