Package com.microstrategy.web.app.gui
Interface Cart
-
- All Superinterfaces:
GuiElement
- All Known Subinterfaces:
CartElementPicker
,CartExpression
,CartFontStyles
,CartObjectBrowser
,ContactsCart
,TreeCart
,TreeCartExpression
- All Known Implementing Classes:
CartAttFormsImpl
,CartDualAxisDistribution
,CartElementPickerImpl
,CartExpressionImpl
,CartFontStylesImpl
,CartImpl
,CartObjectBrowserImpl
,DivBasedCartImpl
,TreeCartExpressionImpl
,TreeCartImpl
,UserEntitiesTreeCartImpl
public interface Cart extends GuiElement
Cart interface that defines minimum contract all cart must implement.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getProperty(java.lang.String key)
Function for getting Cart propertiesEnumCartProperties
current values.void
initializeCart()
InitializeCart, for initializing all Cart properties to default values.void
renderActionImage(MarkupOutput out, java.lang.String[] jsFunction, java.lang.String name, java.lang.String imageClass, java.lang.String title)
Dsiplays an image that the user will be enabled to click on and submit a request.void
renderAdd(MarkupOutput out)
Displays add HTML image arrow button.void
renderAddAll(MarkupOutput out)
Displays add all HTML image arrow button.void
renderAvailable(MarkupOutput out, CartElements items)
This function will display available list of units defined inCartElements
collection.void
renderAvailable(MarkupOutput out, java.util.Enumeration items)
This function will display available list of units for a given prompt question.void
renderCart(MarkupOutput out, CartElements availableItems, CartElements selectedItems)
Function that abstracts standard Cart output.void
renderCart(MarkupOutput out, java.util.Enumeration availableItems, java.util.Enumeration selectedItems)
Function that abstracts standard Cart output.void
renderDown(MarkupOutput out)
Displays move down HTML image arrow button.void
renderIncrementalFetch(MarkupOutput out)
Function that renders incremental fetch abstraction.void
renderLabel(MarkupOutput out, java.lang.String labelName)
Function for displaying HTML labels.void
renderLabel(MarkupOutput out, java.lang.String labelName, java.lang.String forValue)
Function for displaying HTML labels.void
renderMatchCase(MarkupOutput out)
Function that outputs AND / OR match output HTML radio button.void
renderRemove(MarkupOutput out)
Displays remove HTML image arrow button.void
renderRemoveAll(MarkupOutput out)
Displays remove all HTML image arrow button.void
renderSearch(MarkupOutput out)
Function that renders search HTML output.void
renderSearchButton(MarkupOutput out)
Function called by renderSeach function.void
renderSearchField(MarkupOutput out)
Function called by renderSearch function.void
renderSelected(MarkupOutput out, CartElements items)
This function will display selected list of units defined inCartElements
collection.void
renderSelected(MarkupOutput out, java.util.Enumeration items)
This function will display selected list of units for a given prompt question.void
renderUp(MarkupOutput out)
Displays move up HTML image arrow button.void
setEnabled(boolean flag)
Function for enabling or disabling the interaction scripts on the cart rendering.void
setHideWaitPageFlag(boolean flag)
Function for making sure javascript code for hiding wait page is appended to add/remove image buttonsvoid
setProperty(java.lang.String key, java.lang.Object obj)
Function for initializing individual Cart propertiesEnumCartProperties
to given values.-
Methods inherited from interface com.microstrategy.web.app.gui.GuiElement
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeatures, getMessages, getName, getUseIFrame, getWebComponent, renderElement, renderElement, setAppContext, setExtraInput, setExtraUrl, setName, setUseIFrame, setWebComponent
-
-
-
-
Method Detail
-
renderCart
void renderCart(MarkupOutput out, java.util.Enumeration availableItems, java.util.Enumeration selectedItems)
Function that abstracts standard Cart output.- Parameters:
out
- where to write the output of the method.availableItems
- enumeration of all available itemsselectedItems
- enumeration of all selected items
-
renderCart
void renderCart(MarkupOutput out, CartElements availableItems, CartElements selectedItems)
Function that abstracts standard Cart output.- Parameters:
out
- where to write the output of the method.availableItems
- CartElements collection of all available itemsselectedItems
- CartElements collection of all selected items- Since:
- MicroStrategy Web 8.0.0
-
initializeCart
void initializeCart()
InitializeCart, for initializing all Cart properties to default values.
-
renderAvailable
void renderAvailable(MarkupOutput out, java.util.Enumeration items)
This function will display available list of units for a given prompt question. It'll abstract what format to be used for rendering available list.- Parameters:
out
- where to write the output of the method.items
- list of units to be displayed in available list.
-
renderSelected
void renderSelected(MarkupOutput out, java.util.Enumeration items)
This function will display selected list of units for a given prompt question. It'll abstract what format to be used for rendering selected list.- Parameters:
out
- where to write the output of the method.items
- list of units to be displayed.
-
renderAvailable
void renderAvailable(MarkupOutput out, CartElements items)
This function will display available list of units defined inCartElements
collection. It'll abstract what format to be used for rendering available list.- Parameters:
out
- where to write the output of the method.items
- collection of CartElements to be displayed in available list.- Since:
- MicroStrategy Web 8.0.0
-
renderSelected
void renderSelected(MarkupOutput out, CartElements items)
This function will display selected list of units defined inCartElements
collection. It'll abstract what format to be used for rendering selected list.- Parameters:
out
- where to write the output of the method.items
- collection of CartElements to be displayed.- Since:
- MicroStrategy Web 8.0.0
-
renderLabel
void renderLabel(MarkupOutput out, java.lang.String labelName)
Function for displaying HTML labels.- Parameters:
out
- where to write the output of the method.labelName
- string of label to be displayed.- Since:
- MicroStrategy Web 8.0.0
-
renderLabel
void renderLabel(MarkupOutput out, java.lang.String labelName, java.lang.String forValue)
Function for displaying HTML labels.- Parameters:
out
- where to write the output of the method.labelName
- string of label to be displayed.forValue
- string value for theFOR
attribute of theLABEL
HTML tag.- Since:
- MicroStrategy Web 8.0.0
-
renderActionImage
void renderActionImage(MarkupOutput out, java.lang.String[] jsFunction, java.lang.String name, java.lang.String imageClass, java.lang.String title)
Dsiplays an image that the user will be enabled to click on and submit a request.- Parameters:
out
- where to write the output of the methodjsFunction
- array ofString
with the JavaScript information to trigger when the user clicks on the image. If none is provided or the current output mode of the cart is does not support DHTML then the information will not be used.imageClass
- full css class the image to create will havetitle
- tooltip to associate with the image to rendername
- identifier for the image tag to create.- Since:
- MicroStrategy Web 8.0.0
-
renderAdd
void renderAdd(MarkupOutput out)
Displays add HTML image arrow button.- Parameters:
out
- where to write the output of the method.
-
renderAddAll
void renderAddAll(MarkupOutput out)
Displays add all HTML image arrow button.- Parameters:
out
- where to write the output of the method.- Since:
- MicroStrategy Web 8.1.1
-
renderRemoveAll
void renderRemoveAll(MarkupOutput out)
Displays remove all HTML image arrow button.- Parameters:
out
- where to write the output of the method.- Since:
- MicroStrategy Web 8.1.1
-
renderRemove
void renderRemove(MarkupOutput out)
Displays remove HTML image arrow button.- Parameters:
out
- where to write the output of the method.
-
renderUp
void renderUp(MarkupOutput out)
Displays move up HTML image arrow button.- Parameters:
out
- where to write the output of the method.- Since:
- MicroStrategy Web 8.0.0
-
renderDown
void renderDown(MarkupOutput out)
Displays move down HTML image arrow button.- Parameters:
out
- where to write the output of the method.- Since:
- MicroStrategy Web 8.0.0
-
setProperty
void setProperty(java.lang.String key, java.lang.Object obj)
Function for initializing individual Cart propertiesEnumCartProperties
to given values. This function is exposed for allowing Cart customization.- Parameters:
key
- index or key property to be set, which value comes from theEnumCartProperties
enumeration.obj
-Object
instance with the value to associate with key index.
-
getProperty
java.lang.Object getProperty(java.lang.String key)
Function for getting Cart propertiesEnumCartProperties
current values.- Parameters:
key
- index or key property to be retrieved, which value comes from theEnumCartProperties
enumeration.- Returns:
Object
instance that was associated with that key.
-
renderSearch
void renderSearch(MarkupOutput out)
Function that renders search HTML output. Most likely an HTML textfield along with an image button for submitting search pattern.- Parameters:
out
- where to write the output of the method.
-
renderSearchField
void renderSearchField(MarkupOutput out)
Function called by renderSearch function. It abstracts search textfield to be rendered. Search patttern is entered in this HTML component.- Parameters:
out
- where to write the output of the method.
-
renderSearchButton
void renderSearchButton(MarkupOutput out)
Function called by renderSeach function. It abstracts image button used for submitting search pattern.- Parameters:
out
- where to write the output of the method.
-
renderIncrementalFetch
void renderIncrementalFetch(MarkupOutput out)
Function that renders incremental fetch abstraction. Most likely, it'll be rendered below available list and will be used for page this list based on blocks.- Parameters:
out
- where to write the output of the method.
-
renderMatchCase
void renderMatchCase(MarkupOutput out)
Function that outputs AND / OR match output HTML radio button. This is a global operator that groups all qualifications made by the user.- Parameters:
out
- where to write the output of the method.
-
setHideWaitPageFlag
void setHideWaitPageFlag(boolean flag)
Function for making sure javascript code for hiding wait page is appended to add/remove image buttons- Parameters:
flag
- true if extra code is appended.
-
setEnabled
void setEnabled(boolean flag)
Function for enabling or disabling the interaction scripts on the cart rendering.- Parameters:
flag
- true- Since:
- MicroStrategy Web 9.0.1
-
-