|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
add(NakedObject object)
adds object to the collection and notifies all views that the collection has changed. |
void |
added(NakedObject object)
|
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. |
boolean |
contains(NakedObject object)
Returns true if the logical collection contains the specified object. |
void |
copyObject(Naked objectToCopy)
Copies the attributes from the specified instance to the current instance. |
java.util.Enumeration |
displayElements()
Return cache to be viewed on current page |
java.util.Enumeration |
elements()
Return all elements in this collection |
void |
first()
Position cursor at first element |
int |
getDisplaySize()
|
boolean |
hasNext()
If true there is a next page to display, and 'next' and 'last' options are valid |
boolean |
hasPrevious()
|
void |
last()
Position cursor at last |
void |
next()
Position cursor at beginning of next page |
int |
position()
|
void |
previous()
Position cursor at beginning of previous page |
void |
remove(NakedObject object)
removes object from the collection and notifies all views that the collection has changed. |
void |
removed(NakedObject element)
|
void |
reset()
|
int |
size()
Return a NakedCollection of objects which match the specified pattern from within the current collection |
Title |
title()
by default returns the collections name and its number of elements |
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, isEmpty, isSameAs, isValid, summary |
Method Detail |
public int getDisplaySize()
public int position()
public void add(NakedObject object)
object
to the collection and notifies all views that the collection has changed.
public void added(NakedObject object)
public Permission canAdd(NakedObject object)
canAddTo()
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.
public Permission canRemove(NakedObject object)
canRemoveFrom()
called on the object reference.
public boolean contains(NakedObject object)
public void copyObject(Naked objectToCopy)
copyObject
in interface Naked
public java.util.Enumeration displayElements()
public java.util.Enumeration elements()
public void first()
public boolean hasNext()
public boolean hasPrevious()
public void last()
public void next()
public void previous()
public void remove(NakedObject object)
object
from the collection and notifies all views that the collection has changed.
public void removed(NakedObject element)
public void reset()
public int size()
public Title title()
title
in interface Naked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |