org.nakedobjects.object.collection
Class InternalCollection
java.lang.Object
java.util.Observable
org.nakedobjects.object.AbstractNakedObject
org.nakedobjects.object.collection.AbstractNakedCollection
org.nakedobjects.object.collection.TypedCollection
org.nakedobjects.object.collection.InternalCollection
- All Implemented Interfaces:
- Aggregate, java.io.Externalizable, Naked, NakedCollection, NakedObject, java.io.Serializable
- public class InternalCollection
- extends TypedCollection
- implements Aggregate
- See Also:
- Serialized Form
| Methods inherited from class org.nakedobjects.object.collection.AbstractNakedCollection |
addAll, added, contains, displayElements, elements, extract, first, getDisplaySize, getMaxCacheSize, hasNext, hasPrevious, isEmpty, last, next, position, previous, removeAll, removed, reset, search, setDisplaySize, setMaxCacheSize, size |
| Methods inherited from class org.nakedobjects.object.AbstractNakedObject |
about, aboutExplorationActionClass, aboutExplorationActionClone, aboutExplorationActionMakePersistent, canClone, contextualTitle, copyObject, created, createInstance, createInstance, createTransientInstance, deleted, destroy, equals, explorationActionClass, explorationActionClone, explorationActionMakePersistent, getClassHelpText, getClassName, getCollectiveName, getFullClassName, getIconName, getIdString, getNakedClass, getObjectHelpText, getObjectStore, getOid, hashCode, iconImage, init, isFinder, isLookupElement, isPersistent, isResolved, isSameAs, isValid, makeFinder, makePersistent, objectChanged, readExternal, resolve, resolve, setChangedAndNotifyObservers, setOid, setResolved, summary, toString, writeExternal |
| 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.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 |
InternalCollection
public InternalCollection(java.lang.Class type,
NakedObject parent)
InternalCollection
public InternalCollection(java.lang.String typeName,
NakedObject parent)
add
public void add(NakedObject object)
- Description copied from interface:
NakedCollection
- adds
object to the collection and notifies all views that the collection has changed.
- Specified by:
add in interface NakedCollection- Overrides:
add in class AbstractNakedCollection
canAdd
public Permission canAdd(NakedObject object)
- Description copied from class:
TypedCollection
- Determines whether the specified object can be added to this collection. Object are allowed
if they: are of the type specified; and are not already part of the collection.
- Specified by:
canAdd in interface NakedCollection- Overrides:
canAdd in class TypedCollection
forParent
public NakedObject forParent()
- Description copied from interface:
Aggregate
- Return the parent of this Aggregate
- Specified by:
forParent in interface Aggregate
- Returns:
- NakedObject
remove
public void remove(NakedObject object)
- Description copied from interface:
NakedCollection
- removes
object from the collection and notifies all views that the collection has changed.
- Specified by:
remove in interface NakedCollection- Overrides:
remove in class AbstractNakedCollection
title
public Title title()
- Description copied from interface:
Naked
- Returns a Title object describing the object.
- Specified by:
title in interface Naked- Overrides:
title in class AbstractNakedCollection
firstElement
public NakedObject firstElement()