Package com.microstrategy.web.app.beans
Class CartElementWebElement
- java.lang.Object
-
- com.microstrategy.web.app.beans.CartElementWebElement
-
- All Implemented Interfaces:
CartElement
public class CartElementWebElement extends java.lang.Object implements CartElement
This class represents an instance ofWebElement
as part of the Cart. This provides the default values for name and value for the element in the cart.- Since:
- MicroStrategy Web 8.0.1
-
-
Constructor Summary
Constructors Constructor Description CartElementWebElement(WebElement element)
Constructor which creates an instance based on theWebElement
being passed in.
-
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.void
setValue(java.lang.String text)
Sets formatted text for value field.
-
-
-
Constructor Detail
-
CartElementWebElement
public CartElementWebElement(WebElement element)
Constructor which creates an instance based on theWebElement
being passed in.- Parameters:
element
- - theWebElement
being referred to by this class.
-
-
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()
-
setValue
public void setValue(java.lang.String text)
Sets formatted text for value field.- Parameters:
text
- String
-
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)
-
-