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 elementCart
to 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.String
getDisplayName()
Get display name to be used in HTML field.java.lang.String
getValue()
Gets formatted text for value field.boolean
isSelected()
Indicates whether given Cart element is selected or not.void
setSelected(boolean flag)
Specifies whether this element has been selected.
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Description copied from interface:CartElement
Gets formatted text for value field.- Specified by:
getValue
in interfaceCartElement
- Returns:
- String
- See Also:
CartElement.getValue()
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:CartElement
Get display name to be used in HTML field.- Specified by:
getDisplayName
in interfaceCartElement
- Returns:
- String
- See Also:
CartElement.getDisplayName()
-
isSelected
public boolean isSelected()
Description copied from interface:CartElement
Indicates whether given Cart element is selected or not.- Specified by:
isSelected
in interfaceCartElement
- Returns:
- boolean value
- See Also:
CartElement.isSelected()
-
setSelected
public void setSelected(boolean flag)
Description copied from interface:CartElement
Specifies whether this element has been selected.- Specified by:
setSelected
in interfaceCartElement
- Parameters:
flag
- boolean value- See Also:
CartElement.setSelected(boolean)
-
-