Package com.microstrategy.web.app.gui
Class CartElements
- java.lang.Object
-
- com.microstrategy.web.app.gui.CartElements
-
public class CartElements extends java.lang.Object
Title: 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 void
add(CartElement unit)
Adds the givenCartElement
object to the collection.void
clear()
Clears all objects from the collection.boolean
containsObject(CartElement object)
Returns true if the collection contains the given object, false if it does not.java.util.Enumeration
elements()
Returns a java.util.Enumeration containing the objects in this collection.CartElement
get(int index)
Returns the cart element unit in the collection with the given index.boolean
isEmpty()
Returns whether the collection is empty.void
remove(CartElement unit)
Removes the display unit from the collection.int
size()
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
CartElement
object 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
- TheCartElement
object 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 givenCartElement
object to the collection.- Parameters:
unit
- TheCartElement
object 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
- TheCartElement
object 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.UnsupportedOperationException
Clears all objects from the collection.- Throws:
java.lang.UnsupportedOperationException
- Thrown in the case of a read-only collection.
-
-