|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Definition of an naked reference object.
A basic implementation is defined in AbstractNakedObject and its subclass, NakedObject.
A naked reference object must do the following
An expressive object should be java.lang.Observable object so it can notified others of changes to itself. This interface therefore defines the Observable methods to ensure [how does it do this?] this happens.
NakedObject,
AbstractNakedObject| Method Summary | |
void |
addObserver(java.util.Observer o)
Deprecated. |
java.lang.String |
contextualTitle()
Returns a label identifying the object along with a label detailing the context of an object |
int |
countObservers()
Deprecated. |
void |
created()
Called when the object is first created to intialised the object. |
void |
deleted()
Called when the object is delete, after it is removed from the object store. |
void |
deleteObserver(java.util.Observer o)
Deprecated. |
void |
destroy()
Called when a the system destoys an object - permenantly removes it from the object store. |
java.lang.String |
getCollectiveName()
Returns the name a collection of these NakedInterfaces should be given |
java.lang.String |
getIdString()
The objects descriptive id for dislaying to a user. |
NakedClass |
getNakedClass()
Returns the NakedClass that represents this object. |
NakedObjectStore |
getObjectStore()
|
java.lang.Object |
getOid()
The objects unique id. |
boolean |
hasChanged()
|
java.awt.Image |
iconImage(int size)
Returns an Image to use as icon when displaying an object of this type. |
boolean |
isFinder()
Returns true if the object is used for finding objects. |
boolean |
isLookupElement(java.lang.String arg)
returns true if the current object is a valid lookup element. |
boolean |
isPersistent()
returns true if the object is being held by the object store. |
boolean |
isResolved()
returns true when the object has been completely read into memory and all it attributes can be accessed. |
void |
makeFinder()
|
void |
makePersistent()
|
void |
objectChanged()
When the state of this object changes, e.g., an attribute is set, then this method should be called so that it is persisted and a message is propogated to the users of this object within the system. |
void |
resolve()
Resolves the current object ensuring all its attributes are available in memory. |
void |
setChangedAndNotifyObservers()
Deprecated. |
void |
setOid(java.lang.Object oid)
Sets the OID for this object. |
void |
setResolved()
sets the object's resolved state to true |
| Methods inherited from interface org.nakedobjects.object.Naked |
about, copyObject, getClassName, getFullClassName, getObjectHelpText, isEmpty, isSameAs, isValid, summary, title |
| Method Detail |
public void addObserver(java.util.Observer o)
public java.lang.String contextualTitle()
public int countObservers()
public void created()
public void deleted()
public void deleteObserver(java.util.Observer o)
addObserver(java.util.Observer)
public void destroy()
throws ObjectStoreException
ObjectStoreExceptionpublic java.lang.String getCollectiveName()
public java.lang.String getIdString()
public NakedClass getNakedClass()
public NakedObjectStore getObjectStore()
public java.lang.Object getOid()
public boolean hasChanged()
public java.awt.Image iconImage(int size)
size - the image should be, in pixelspublic boolean isFinder()
public boolean isLookupElement(java.lang.String arg)
public boolean isPersistent()
public boolean isResolved()
public void objectChanged()
public void makeFinder()
public void makePersistent()
throws ObjectStoreException
ObjectStoreExceptionpublic void resolve()
public void setChangedAndNotifyObservers()
public void setOid(java.lang.Object oid)
public void setResolved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||