Package com.microstrategy.web.app.gui
Class CartElementGeneric
- java.lang.Object
-
- com.microstrategy.web.app.gui.CartElementGeneric
-
- All Implemented Interfaces:
CartElement
public class CartElementGeneric extends java.lang.Object implements CartElement
A generic Cart Element implementation. This class provides a basic cart element with a display name, a value and the selected property. It is used by the GUI elementCartto display individual elements in the available and selected lists.- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description CartElementGeneric(java.lang.String displayName, java.lang.String value, boolean selected)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Get display name to be used in HTML field.java.lang.StringgetValue()Gets formatted text for value field.booleanisSelected()Indicates whether given Cart element is selected or not.voidsetSelected(boolean flag)Specifies whether this element has been selected.
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Description copied from interface:CartElementGets formatted text for value field.- Specified by:
getValuein interfaceCartElement- Returns:
- String
- See Also:
CartElement.getValue()
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:CartElementGet display name to be used in HTML field.- Specified by:
getDisplayNamein interfaceCartElement- Returns:
- String
- See Also:
CartElement.getDisplayName()
-
isSelected
public boolean isSelected()
Description copied from interface:CartElementIndicates whether given Cart element is selected or not.- Specified by:
isSelectedin interfaceCartElement- Returns:
- boolean value
- See Also:
CartElement.isSelected()
-
setSelected
public void setSelected(boolean flag)
Description copied from interface:CartElementSpecifies whether this element has been selected.- Specified by:
setSelectedin interfaceCartElement- Parameters:
flag- boolean value- See Also:
CartElement.setSelected(boolean)
-
-