public class

CartElements

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.gui.CartElements

Class Overview

Title: CartElements.

Description:

Copyright: Copyright (c) 2002

Company: Microstrategy, Inc.

Summary

Public Constructors
CartElements()
Public Methods
void add(CartElement unit)
Adds the given CartElement 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.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CartElements ()

Public Methods

public void add (CartElement unit)

Adds the given CartElement object to the collection.

Parameters
unit The CartElement object to add to the collection.
Throws
UnsupportedOperationException Thrown if the collection is read-only.

public void clear ()

Clears all objects from the collection.

Throws
UnsupportedOperationException Thrown in the case of a read-only collection.

public boolean containsObject (CartElement object)

Returns true if the collection contains the given object, false if it does not.

Parameters
object The CartElement object to search for in the folder.
Returns
  • True if the collection contains the value, false if it does not.

public Enumeration elements ()

Returns a java.util.Enumeration containing the objects in this collection.

Returns
  • An Enumeration containing the objects in this collection.

public CartElement get (int index)

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
IndexOutOfBoundsException Thrown if the given index is invalid.

public boolean isEmpty ()

Returns whether the collection is empty.

Returns
  • True if the collection is empty, false otherwise.

public void remove (CartElement unit)

Removes the display unit from the collection.

Parameters
unit The CartElement object to be removed from the collection.
Throws
UnsupportedOperationException Thrown if the collection is marked as read-only.
IndexOutOfBoundsException Thrown if the given index is invalid.

public int size ()

Returns the number of items in the collection.

Returns
  • The size of the collection.