|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A construct that mirrors a domain object and adds UI things. A UIObject has a base object which is its corresponding object in the domain. The contents of this object may change - it is a clone of what is in the domain. The UIObject also has a reference that can be used to identify its corresponding object in the domain (e.g. for a refinement that should be its name). Once this is set, it should not be changed. It will be needed if the domain has to work out what the original is (in case of remove or update operations)
| Method Summary | |
void |
addToDomain(Domain domain)
Adds the contents of this UIObject to the domain (part of publish). |
java.lang.Class |
getBaseClass()
Gets the class of objects that can represent this one in the domain. |
IXObject |
getBaseObject()
Gets the object that corresponds to this one in the domain. |
java.lang.Object |
getBaseReference()
Gets the Id that can be used to identify the base object in the domain. |
Domain |
getDomain()
Gets the base domain. |
UIDomain |
getUIDomain()
Gets the ui domain of which this object is part. |
boolean |
hasChanged()
Determines whether the object has changed since it was last saved to draft |
boolean |
hasChangedFromOriginal()
Determines whether the object has changed from its original. |
boolean |
hasOriginal()
Determines whether the object has an original in the base domain. |
boolean |
isEmpty()
Determines whether the object has any information in it. |
void |
loadFromDomain()
Loads the contents of this object from its corresponding domain object. |
void |
loadFromDomain(java.lang.Object domainObject)
Loads the contents of this object from the given object. |
void |
loadFromOriginal()
Loads the contents of this object from its original domain object. |
IXObject |
makeBaseObject()
Makes an empty object of the right class that can represent this UIObject in the domain. |
void |
moveToUIDomain(UIDomain uiDomain)
Move the object from its current UIDomain to the given one. |
boolean |
nameHasChanged(java.lang.Object nameThing)
Determines whether the object's identifying fields have changed |
void |
noteChange()
Get the UIDomain to note the change of this object. |
java.lang.String |
print()
|
void |
removeFromDomain(Domain domain)
Removes the object's corresponding base object from the domain. |
void |
saveToDomain()
Saves the contents of this object into its corresponding domain object. |
void |
saveToDomain(java.lang.Object domainObject)
Saves the contents of this object into the given object. |
void |
setBaseObject(IXObject object)
Sets the object that will represent this one in the domain. |
void |
setBaseReference(java.lang.Object id)
Sets the Id that can be used to identify the base object in the domain. |
void |
setName(java.lang.String name)
|
void |
updateInDomain(Domain domain)
Updates the base object in the domain with the contents of this object. |
| Methods inherited from interface ix.icore.domain.Named |
getName |
| Method Detail |
public Domain getDomain()
public UIDomain getUIDomain()
public boolean hasOriginal()
public boolean isEmpty()
public boolean hasChangedFromOriginal()
public boolean hasChanged()
public boolean nameHasChanged(java.lang.Object nameThing)
public java.lang.Object getBaseReference()
public void setBaseReference(java.lang.Object id)
public IXObject getBaseObject()
public IXObject makeBaseObject()
public void setBaseObject(IXObject object)
public java.lang.Class getBaseClass()
public void saveToDomain()
public void saveToDomain(java.lang.Object domainObject)
public void loadFromDomain()
public void loadFromDomain(java.lang.Object domainObject)
public void loadFromOriginal()
public void noteChange()
public void addToDomain(Domain domain)
public void updateInDomain(Domain domain)
public void removeFromDomain(Domain domain)
public void moveToUIDomain(UIDomain uiDomain)
public void setName(java.lang.String name)
public java.lang.String print()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||