Package com.microstrategy.web.app.gui
Class CartElements
- java.lang.Object
 - 
- com.microstrategy.web.app.gui.CartElements
 
 
- 
public class CartElements extends java.lang.ObjectTitle: CartElements.
Description:
Copyright: Copyright (c) 2002
Company: Microstrategy, Inc.
- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CartElements() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(CartElement unit)Adds the givenCartElementobject to the collection.voidclear()Clears all objects from the collection.booleancontainsObject(CartElement object)Returns true if the collection contains the given object, false if it does not.java.util.Enumerationelements()Returns a java.util.Enumeration containing the objects in this collection.CartElementget(int index)Returns the cart element unit in the collection with the given index.booleanisEmpty()Returns whether the collection is empty.voidremove(CartElement unit)Removes the display unit from the collection.intsize()Returns the number of items in the collection. 
 - 
 
- 
- 
Method Detail
- 
get
public CartElement get(int index) throws java.lang.IndexOutOfBoundsException
Returns the cart element unit in the collection with the given index.- Parameters:
 index- The index of the object within the available cart element unit collection to return.- Returns:
 - The 
CartElementobject corresponding to the given index in the collection. - Throws:
 java.lang.IndexOutOfBoundsException- Thrown if the given index is invalid.
 
- 
isEmpty
public boolean isEmpty()
Returns whether the collection is empty.- Returns:
 - True if the collection is empty, false otherwise.
 
 
- 
size
public int size()
Returns the number of items in the collection.- Returns:
 - The size of the collection.
 
 
- 
elements
public java.util.Enumeration elements()
Returns a java.util.Enumeration containing the objects in this collection.- Returns:
 - An Enumeration containing the objects in this collection.
 
 
- 
containsObject
public boolean containsObject(CartElement object)
Returns true if the collection contains the given object, false if it does not.- Parameters:
 object- TheCartElementobject to search for in the folder.- Returns:
 - True if the collection contains the value, false if it does not.
 
 
- 
add
public void add(CartElement unit)
Adds the givenCartElementobject to the collection.- Parameters:
 unit- TheCartElementobject to add to the collection.- Throws:
 java.lang.UnsupportedOperationException- Thrown if the collection is read-only.
 
- 
remove
public void remove(CartElement unit) throws java.lang.IndexOutOfBoundsException
Removes the display unit from the collection.- Parameters:
 unit- TheCartElementobject to be removed from the collection.- Throws:
 java.lang.UnsupportedOperationException- Thrown if the collection is marked as read-only.java.lang.IndexOutOfBoundsException- Thrown if the given index is invalid.
 
- 
clear
public void clear() throws java.lang.UnsupportedOperationExceptionClears all objects from the collection.- Throws:
 java.lang.UnsupportedOperationException- Thrown in the case of a read-only collection.
 
 - 
 
 -