|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.nakedobjects.object.AbstractNakedObject
org.nakedobjects.object.collection.AbstractNakedCollection
org.nakedobjects.object.collection.ArbitraryCollection
| Constructor Summary | |
ArbitraryCollection()
|
|
ArbitraryCollection(java.lang.String name)
Constructs collection and sets the name. |
|
| Method Summary | |
Permission |
canAdd(NakedObject object)
Vetos the addition to this collection if the object being added requests it. |
Permission |
canRemove(NakedObject object)
Vetos the removal from this collection if the object being removed requests it. |
TextString |
getName()
returns name of the collection. |
void |
setName(java.lang.String name)
Sets the name of the collection, by changing the value held in the name field. |
Title |
title()
by default returns the collections name and its number of elements |
| Methods inherited from class org.nakedobjects.object.collection.AbstractNakedCollection |
add, addAll, added, contains, displayElements, elements, extract, first, getDisplaySize, getMaxCacheSize, hasNext, hasPrevious, isEmpty, last, next, position, previous, remove, removeAll, removed, reset, search, setDisplaySize, setMaxCacheSize, size |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.object.NakedCollection |
copyObject |
| Methods inherited from interface org.nakedobjects.object.NakedObject |
addObserver, contextualTitle, countObservers, created, deleted, deleteObserver, destroy, getCollectiveName, getIdString, getNakedClass, getObjectStore, getOid, hasChanged, iconImage, isFinder, isLookupElement, isPersistent, isResolved, makeFinder, makePersistent, objectChanged, resolve, setChangedAndNotifyObservers, setOid, setResolved |
| Methods inherited from interface org.nakedobjects.object.Naked |
about, getClassName, getFullClassName, getObjectHelpText, isSameAs, isValid, summary |
| Constructor Detail |
public ArbitraryCollection()
public ArbitraryCollection(java.lang.String name)
setName(String)| Method Detail |
public void setName(java.lang.String name)
name field.
getName()public TextString getName()
setName(String)public Permission canAdd(NakedObject object)
NakedCollectioncanAddTo() called on the object reference. Also disallows the addition of itself.
By default a collection can be added to another collection (but not to itself). Any type of object
which wishes to restrict its placement in a collection should override this method.
canAdd in interface NakedCollectioncanAdd in class AbstractNakedCollectionpublic Permission canRemove(NakedObject object)
NakedCollectioncanRemoveFrom() called on the object reference.
canRemove in interface NakedCollectioncanRemove in class AbstractNakedCollectionpublic Title title()
NakedCollection
title in interface NakedCollectiontitle in class AbstractNakedCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||