| java.lang.Object org.millstone.base.data.util.ContainerOrderedWrapper
ContainerOrderedWrapper | public ContainerOrderedWrapper(Container toBeWrapped)(Code) | | Constructs a new ordered wrapper for an existing Container. Works
even if the to-be-wrapped container already implements the
Container.Ordered interface.
Parameters: toBeWrapped - the container whose contents need to be ordered |
addContainerProperty | public boolean addContainerProperty(Object propertyId, Class type, Object defaultValue) throws UnsupportedOperationException(Code) | | Adds a new Property to all Items in the Container.
Parameters: propertyId - ID of the new Property Parameters: type - Data type of the new Property Parameters: defaultValue - The value all created Properties areinitialized to true if the operation succeeded,false if not |
addItem | public Object addItem() throws UnsupportedOperationException(Code) | | Creates a new Item into the Container, assigns it an
automatic ID, and adds it to the ordering.
the autogenerated ID of the new Item or null if the operation failed |
removeAllItems | public boolean removeAllItems() throws UnsupportedOperationException(Code) | | Removes all items from the underlying container and from the
ordering.
true if the operation succeeded,false if not |
removeContainerProperty | public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException(Code) | | Removes the specified Property from the underlying container and
from the ordering. Note that the Property will be removed from all
Items in the Container.
Parameters: propertyId - ID of the Property to remove true if the operation succeeded,false if not |
removeItem | public boolean removeItem(Object itemId) throws UnsupportedOperationException(Code) | | Removes an Item specified by itemId from the underlying
container and from the ordering.
true if the operation succeeded,false if not |
updateOrderWrapper | public void updateOrderWrapper()(Code) | | Updates the wrapper's internal ordering information to include all
Items in the underlying container. If the contents of the wrapped
container change without the wrapper's knowledge, this method needs
to be called to update the ordering information of the Items.
|
|
|