Class PromptCartXHTMLTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
-
- com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
-
- com.microstrategy.web.app.transforms.PromptCartXHTMLTransform
-
- All Implemented Interfaces:
EnumPromptsBeanEvents
,LayoutTransform
,Transform
- Direct Known Subclasses:
PromptExpressionCartXHTMLTransform
,PromptObjectBrowsingXHTMLTransform
public class PromptCartXHTMLTransform extends AbstractPromptExpressionTransform implements LayoutTransform
Renders prompt content in a "shopping cart" style. It provides of minimun settings for creating simplest prompt cart style.
This class is extended by different types of prompts specializing current behavior for meeting prompt specific needs.
The output of this Transform generates well-formed XHTML, supports layout-xml, and it's designed to use external css files for all formatting.- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_imgBlank
Reference to a transparent image to use for display purposesFormalParameter
availableSize
The number of elements that the Available list box displays.FormalParameter
matchCase
Specifies whether the match case checkbox is displayed or not next to a search section.FormalParameter
searchAvailable
Specifies whether the transform should display a search section.FormalParameter
selectedSize
The number of elements that the Selected list box displays.-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
attrFormTypeInAvailableList, defaultOperatorId, editMetricQualificationOutputLevel, inputFromTextFile
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
_blockCount, _calendar, _cssPrefix, _dataTypeForCalendar, _globalCss, _imagesFolder, cssPrefix, imgBackToTop, imgCalendar, imgError, isDhtmlMode, levelFlag, showRequired
-
Fields inherited from interface com.microstrategy.web.beans.EnumPromptsBeanEvents
ANSWER_SEPARATOR, EXPRESSION_SEPARATOR, ITEM_SEPARATOR, ITEM_SPECIAL_SEPARATOR, PROMPTS_EVENT_ADD_UNITS, PROMPTS_EVENT_ANSWER_ALL_PROMPTS, PROMPTS_EVENT_ANSWER_ANY_PROMPTS, PROMPTS_EVENT_ANSWER_CONSTANT_PROMPT, PROMPTS_EVENT_ANSWER_DIMTY_PROMPT, PROMPTS_EVENT_ANSWER_ELEMENTS_PROMPT, PROMPTS_EVENT_ANSWER_EXPRESSION_PROMPT, PROMPTS_EVENT_ANSWER_OBJECTS_PROMPT, PROMPTS_EVENT_ANSWER_PROMPTS_IN_ADVANCE, PROMPTS_EVENT_ARGUMENT_ACTION_ADD_UNITS, PROMPTS_EVENT_ARGUMENT_ACTION_ANSWER_PROMPT, PROMPTS_EVENT_ARGUMENT_ACTION_BROWSE_CHILD_FOLDER, PROMPTS_EVENT_ARGUMENT_ACTION_BROWSE_ELEMENT, PROMPTS_EVENT_ARGUMENT_ACTION_BROWSE_PARENT_FOLDER, PROMPTS_EVENT_ARGUMENT_ACTION_CANCEL_PROMPT, PROMPTS_EVENT_ARGUMENT_ACTION_CLEAR_EXISTING_AND_ADD_UNITS, PROMPTS_EVENT_ARGUMENT_ACTION_DRILL_WITHIN_HIERARCHY, PROMPTS_EVENT_ARGUMENT_ACTION_HIGHLIGHT_DIMENSION, PROMPTS_EVENT_ARGUMENT_ACTION_HIGHLIGHT_DIMENSION_ATTRIBUTE, PROMPTS_EVENT_ARGUMENT_ACTION_INCREMENTAL_FETCH, PROMPTS_EVENT_ARGUMENT_ACTION_REMOVE_UNITS, PROMPTS_EVENT_ARGUMENT_ACTION_SEARCH_BY_NAME, PROMPTS_EVENT_ARGUMENT_ACTION_SHOW_SUMMARY, PROMPTS_EVENT_ARGUMENT_ANSWER, PROMPTS_EVENT_ARGUMENT_ANSWER_FORMAT, PROMPTS_EVENT_ARGUMENT_ANSWER_MODE_OPTION, PROMPTS_EVENT_ARGUMENT_ANSWER_OPTIONS, PROMPTS_EVENT_ARGUMENT_ATTRIBUTE_ID, PROMPTS_EVENT_ARGUMENT_ATTRIBUTE_ID_AND_FORM_ID, PROMPTS_EVENT_ARGUMENT_BLOCK_BEGIN, PROMPTS_EVENT_ARGUMENT_BLOCK_COUNT, PROMPTS_EVENT_ARGUMENT_BROWSE_PATH, PROMPTS_EVENT_ARGUMENT_CALENDAR_BUTTON, PROMPTS_EVENT_ARGUMENT_CHILD_FOLDER_ID, PROMPTS_EVENT_ARGUMENT_DIMENSION_ID, PROMPTS_EVENT_ARGUMENT_DO_NOT_AUTO_REPROMPT, PROMPTS_EVENT_ARGUMENT_DRILL_TO_ATTRIBUTE_ID, PROMPTS_EVENT_ARGUMENT_EXEC_FLAGS, PROMPTS_EVENT_ARGUMENT_FILTER_STRING, PROMPTS_EVENT_ARGUMENT_FUNCTION, PROMPTS_EVENT_ARGUMENT_HIDDEN_ATTRIBUTE_ID, PROMPTS_EVENT_ARGUMENT_HIDDEN_DIMENSION_ID, PROMPTS_EVENT_ARGUMENT_INCREMENTAL_FETCH_GOTO_PAGE, PROMPTS_EVENT_ARGUMENT_LINK_ANSWERS, PROMPTS_EVENT_ARGUMENT_MATCH_CASE, PROMPTS_EVENT_ARGUMENT_MESSAGE_ALIAS, PROMPTS_EVENT_ARGUMENT_METRIC_ID, PROMPTS_EVENT_ARGUMENT_NAVIGATION, PROMPTS_EVENT_ARGUMENT_OBJECT_TYPE, PROMPTS_EVENT_ARGUMENT_ORIGIN_MESSAGE_ID, PROMPTS_EVENT_ARGUMENT_ORIGIN_SHORT_ANSWER_XML, PROMPTS_EVENT_ARGUMENT_PARENT_FOLDER_ID, PROMPTS_EVENT_ARGUMENT_PLAIN_ELEMENT_PROMPT_ANSWER, PROMPTS_EVENT_ARGUMENT_PLAIN_OBJECT_PROMPT_ANSWER, PROMPTS_EVENT_ARGUMENT_PLAIN_VALUE_PROMPT_ANSWER, PROMPTS_EVENT_ARGUMENT_PROMPT_POSITION, PROMPTS_EVENT_ARGUMENT_REOPEN_PROMPT, PROMPTS_EVENT_ARGUMENT_SAP_VARIABLE_EXCLUDE, PROMPTS_EVENT_ARGUMENT_SEARCH_NAME, PROMPTS_EVENT_ARGUMENT_SEARCH_ROOT, PROMPTS_EVENT_ARGUMENT_SRC_ANSWERS, PROMPTS_EVENT_ARGUMENT_SUB_ROOT_OPERATOR, PROMPTS_EVENT_ARGUMENT_SUBMIT_ANSWER, PROMPTS_EVENT_ARGUMENT_UNITS_TO_ADD, PROMPTS_EVENT_ARGUMENT_UNITS_TO_REMOVE, PROMPTS_EVENT_ARGUMENT_USE_SET_ANSWERS, PROMPTS_EVENT_ARGUMENT_USER_SEPARATOR, PROMPTS_EVENT_BROWSE_DIMENSION_ATTRIBUTE_ELEMENTS, PROMPTS_EVENT_BROWSE_ELEMENTS, PROMPTS_EVENT_BROWSE_HIERARCHICAL_CHILD_FOLDER, PROMPTS_EVENT_BROWSE_HIERARCHICAL_PARENT_FOLDER, PROMPTS_EVENT_CANCEL_ALL_PROMPTS, PROMPTS_EVENT_CANCEL_ANY_PROMPTS, PROMPTS_EVENT_CLEAR_EXISTING_AND_ADD_UNITS, PROMPTS_EVENT_CLEAR_HIERARCHICAL_SEARCH_EXPRESSION, PROMPTS_EVENT_DRILL_WITHIN_HIERARCHY, PROMPTS_EVENT_HIGHLIGHT_DIMENSION, PROMPTS_EVENT_HIGHLIGHT_DIMENSION_ATTRIBUTE, PROMPTS_EVENT_INCREMENTAL_FETCH, PROMPTS_EVENT_NAVIGATE_PROMPTS_BEAN, PROMPTS_EVENT_PROCESS_ALL_PROMPTS, PROMPTS_EVENT_PROCESS_ANY_PROMPTS, PROMPTS_EVENT_REMOVE_UNITS, PROMPTS_EVENT_SEARCH_BY_NAME, PROMPTS_EVENT_SHOW_ALL_PROMPTS_SUMMARY, PROMPTS_EVENT_SHOW_ANY_PROMPTS_SUMMARY, SIMPLE_SEPARATOR_CARET, SIMPLE_SEPARATOR_COMMA, SIMPLE_SEPARATOR_SEMICOLON, UNIT_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description PromptCartXHTMLTransform()
Default no-args constructor, initialize all the formal parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areThereAvailableSelections()
Validates size of available selections is greater than zero.boolean
canTransform(Transformable data)
Indicates if the prompt is of typeEnumWebPromptType.WebPromptTypeObjects
EnumWebPromptType.WebPromptTypeDimty
orEnumWebPromptType.WebPromptTypeElements
.protected Cart
createCart()
Create a new instance of GUI Element Cart using the GUIElementFactory.protected java.util.Enumeration
getAvailableItems()
Indicates collection consisted of all available items.protected Cart
getCart()
Indicates an active Cart instance.java.lang.String
getDescription()
Indicates the description for this Transform.protected java.lang.String
getErrorMessage(WebBeanError promptError)
Specifies a localized error message.protected java.lang.String
getSearchPattern()
Specifies the pattern text from thePromptObject
instance.protected java.util.Enumeration
getSelectedItems()
Indicates collection consisted of all selected items.void
initializeCart()
Initializes this transform'sCart
instance properties to the default values required.void
initializeCss()
Initializes the CSS information to be used by this transform.void
initializeFormalParameters()
Initialize formal parameters.void
initializeImages()
Initialize the images for this transform.void
initializePromptContent()
Initializes prompt content.boolean
isAnswerComplex()
Indicates if the answer can be rendered in the GUI.protected boolean
isIncrementalFetchAvailable()
Indicates whether incremental fetch feature is available.protected boolean
isSearchActive()
Indicates whether a search pattern was entered.boolean
isSearchAvailable()
Indicates whether or not search area is displayable.protected boolean
isSearchPossible(WebDisplayUnit unit)
Indicates whether it's possible to filter elements based on the display unit.boolean
isUpDownArrowsAvailable()
Indicates whether or not UP and DOWN arrows are displayable.protected void
onBeforeApplyDefaultDisplaySettings()
protected void
processSelectedItems()
Initializes selected items list for this cart transform.void
renderAdd(MarkupOutput out)
Renders the add button information for the cart.void
renderAddAll(MarkupOutput out)
Renders the add all button information for the cart.void
renderAvailable(MarkupOutput out)
Renders the available list of elements on the cart.void
renderCart(MarkupOutput out)
Renders a shopping cart output by calling different methods that will render the individual sections of the prompt layout.void
renderDown(MarkupOutput out)
Render the down button information for the cart.void
renderIncrementalFetch(MarkupOutput out)
Renders the incremental fetch information for the cart available list.void
renderLabel(MarkupOutput out, int descriptorId, java.lang.String name)
Renders an HTML label tag.void
renderLabel(MarkupOutput out, java.lang.String descriptor, java.lang.String name)
Renders an HTML label tag.void
renderPromptContent(MarkupOutput out)
Renders the prompt question.void
renderRemove(MarkupOutput out)
Renders the remove button information for the cart.void
renderRemoveAll(MarkupOutput out)
Renders the remove all button information for the cart.void
renderSearch(MarkupOutput out)
Renders the search section of the cart.void
renderSelected(MarkupOutput out)
Renders the selected list information of the cart.void
renderUp(MarkupOutput out)
Render the up button information for the cart.protected void
setExtraArguments()
Sets extra arguments for this prompt.boolean
supports(Transformable data)
Indicates whether or not this object is supported.boolean
supports(java.lang.Class c)
Indicates whether given Class is supported.protected void
updateIncrementalFetchCartProperties()
Updates incremental fetch properties in the Cart object.-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractPromptExpressionTransform
getDimtyAsString, getDimtyAttributesAsString, getOutputLevel, isBrowserIE6, isCart, isMQLevelEditingSupported, isNodeComplex, isNodeDimtyEmpty, renderHiddenInputsForMQEditor, renderOutputLevelLabel, renderPromptHiddenInputs, setMetricQualOutputLevelAndDimty
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractPromptObjectTransform
addFormalParameter, arePromptsLoadedFirstTime, checkLevel, getAnswerEvent, getArgumentName, getAttrElemBlockCount, getAvailableDisplayUnits, getCalendar, getContainerServices, getDescriptor, getDescriptor, getDescriptor, getDimensionAttribute, getDisplayHelper, getIntValue, getLocale, getMatchCaseSensitivity, getMultipleEvent, getMultipleEventArgumentString, getObjectsBlockCount, getPrompt, getPromptsAppContext, getPromptsBean, getPromptsList, getRequestKeys, getShowRequired, getStringValue, getSupportedBeanType, getTagsFactory, hasAnswer, initializePromptObject, isBackToTopAnchorEnabled, isDhtmlMode, isDimensionalPrompt, isForDefinition, isIFrameRequest, isItemKeptInCartAvailable, isLocked, isLockedForSearch, isPromptObjectInitialized, isPromptRequired, isPromptSummaryEnabled, isTrue, isXDA_CustomSQL_Report, isXDA_MDX_Report, isXDAReport, newHiddenInputBuilder, newNamespaceEncoder, processAvailableItems, processIncrementalFetch, renderLayout, renderMinMaxHiddenValues, renderPromptAnswerMeaning, renderPromptBackToTopAnchor, renderPromptDefaultAnswer, renderPromptErrorMessage, renderPromptIFrameRequest, renderPromptMeaning, renderPromptNoSelectionsAvailable, renderPromptNotAnswered, renderPromptQuestion, renderPromptRestrictions, renderPromptSummary, renderPromptSummaryAnswer, renderPromptSummaryTitle, renderPromptTitle, setArgumentValue, setAttrElemBlockCount, setEnableBackToTopAnchor, setIsItemKeptInCartAvailable, setLevelFlag, setLocale, setMatchCaseSensitivity, setObjectsBlockCount, setPromptSummary, setShowRequired, transform
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutContext, getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
getFormalParams, getID, getPreview, getSupportedBeanType, isPreviewAvailable, isResolved, transform
-
-
-
-
Field Detail
-
searchAvailable
public FormalParameter searchAvailable
Specifies whether the transform should display a search section.
Not all prompt types support searching for elements, so even if this parameter is true, the search box might not be available.
This flag is used as a boolean value.
-
availableSize
public FormalParameter availableSize
The number of elements that the Available list box displays.
This flag is used as an int value.
-
selectedSize
public FormalParameter selectedSize
The number of elements that the Selected list box displays.
This flag is used as an int value.
-
matchCase
public FormalParameter matchCase
Specifies whether the match case checkbox is displayed or not next to a search section.
Indicates whether or not to show match case checkbox next to search section. Not all prompt types support searching for elements, so even if this parameter is true, the search box might not be available.
This flag is used as a boolean value.
-
_imgBlank
protected java.lang.String _imgBlank
Reference to a transparent image to use for display purposes
-
-
Method Detail
-
initializeFormalParameters
public void initializeFormalParameters()
Initialize formal parameters.
-
initializeCss
public void initializeCss()
Initializes the CSS information to be used by this transform.
It invokes parent function in order to initialize all shared CSS classes.- Overrides:
initializeCss
in classAbstractPromptObjectTransform
-
initializeImages
public void initializeImages()
Initialize the images for this transform.
Extends parent method which is also invoked in order to get all shared images initialized as well.- Overrides:
initializeImages
in classAbstractPromptObjectTransform
-
initializePromptContent
public void initializePromptContent() throws WebObjectsException
Initializes prompt content.
ExtendsinitializePromptContent
by callingprocessSelectedItems
and it's owninitializeCart
.- Overrides:
initializePromptContent
in classAbstractPromptObjectTransform
- Throws:
WebObjectsException
- if an error happens while the prompt is initialized.
-
initializeCart
public void initializeCart()
Initializes this transform'sCart
instance properties to the default values required.
Cart instance is obtained by calling function getCart()
-
processSelectedItems
protected void processSelectedItems() throws WebObjectsException
Initializes selected items list for this cart transform.
Which supportsWebElementsPrompt
,WebObjectsPrompt
andWebDimtyPrompt
lists. Any other type will leave the list asnull
.- Throws:
WebObjectsException
- if an error happens while processing the information.
-
updateIncrementalFetchCartProperties
protected void updateIncrementalFetchCartProperties()
Updates incremental fetch properties in the Cart object.
The total of units is calculated after processing available units, hence, we need to reflect this in Cart incremental fetch properties.
-
isAnswerComplex
public boolean isAnswerComplex()
Indicates if the answer can be rendered in the GUI.- Specified by:
isAnswerComplex
in classAbstractPromptObjectTransform
- Returns:
- boolean
True
if answer is complex.
-
canTransform
public boolean canTransform(Transformable data)
Indicates if the prompt is of typeEnumWebPromptType.WebPromptTypeObjects
EnumWebPromptType.WebPromptTypeDimty
orEnumWebPromptType.WebPromptTypeElements
.- Specified by:
canTransform
in interfaceTransform
- Overrides:
canTransform
in classAbstractTransform
- Parameters:
data
- objectTransformable
instance withPromptObject
to transform- Returns:
- boolean
True
if the data is a transformable by this class.
-
supports
public boolean supports(java.lang.Class c)
Indicates whether given Class is supported.- Specified by:
supports
in interfaceTransform
- Overrides:
supports
in classAbstractTransform
- Parameters:
c
- Class to be checked- Returns:
- boolean true if supported.
- Since:
- MicroStrategy Web 9.0.0
-
supports
public boolean supports(Transformable data)
Indicates whether or not this object is supported.- Specified by:
supports
in interfaceTransform
- Overrides:
supports
in classAbstractTransform
- Parameters:
data
- Transformable to be checked- Returns:
- boolean true if supported
- Since:
- MicroStrategy Web 9.0.0
- See Also:
Transform.canTransform(com.microstrategy.web.beans.Transformable)
-
isIncrementalFetchAvailable
protected boolean isIncrementalFetchAvailable()
Indicates whether incremental fetch feature is available.
If there's already a predefined list of answers, then incremental fetch gets disabled.- Returns:
- boolean true incremental fetch is available.
-
isSearchPossible
protected boolean isSearchPossible(WebDisplayUnit unit)
Indicates whether it's possible to filter elements based on the display unit.- Parameters:
unit
- the display unit for which we want to check:- Returns:
- true if it's possible to search (filter) elements of the given type.
-
isSearchActive
protected boolean isSearchActive()
Indicates whether a search pattern was entered.
It looks at thegetSearchPattern
method and if it isn'tnull
then we determine user has entered a search pattern.- Returns:
- boolean true if search is active.
-
getSearchPattern
protected java.lang.String getSearchPattern()
Specifies the pattern text from thePromptObject
instance.
This is accomplished by asking the user search pattern.- Returns:
- String search pattern.
-
getErrorMessage
protected java.lang.String getErrorMessage(WebBeanError promptError)
Specifies a localized error message.
Error message is associated to promptError code.- Overrides:
getErrorMessage
in classAbstractPromptObjectTransform
- Parameters:
promptError
- instance ofWebBeanError
, most likely an validation error thrown in process prompt phase.- Returns:
- error message as
String
. Text is localized to active language.
-
setExtraArguments
protected void setExtraArguments()
Sets extra arguments for this prompt.
These arguments will be render later as hidden inputs.- Overrides:
setExtraArguments
in classAbstractPromptExpressionTransform
-
createCart
protected Cart createCart()
Create a new instance of GUI Element Cart using the GUIElementFactory.- Returns:
- a new instance of the Cart
- Since:
- MicroStrategy Web 8.0.1
-
getAvailableItems
protected java.util.Enumeration getAvailableItems()
Indicates collection consisted of all available items.
Get all available display units and create anEnumeration
instance with them.- Returns:
Enumeration
instance of allWebDisplayUnits
available items.
-
getSelectedItems
protected java.util.Enumeration getSelectedItems()
Indicates collection consisted of all selected items.
Get all selected display units and create anEnumeration
instance with them. For Level prompt: the values from the enumeration are instances ofWebDimtyUnit
For objects/elements prompt: In DHTML mode, the values are instances ofWebDisplayUnits
. In HTML mode, the values are instances ofWebDisplayUnitEntry
.- Returns:
Enumeration
instance of all selected items.
-
getDescription
public java.lang.String getDescription()
Indicates the description for this Transform.- Specified by:
getDescription
in interfaceTransform
- Returns:
String
with the description for the transform.
-
areThereAvailableSelections
public boolean areThereAvailableSelections()
Validates size of available selections is greater than zero.- Overrides:
areThereAvailableSelections
in classAbstractPromptObjectTransform
- Returns:
- boolean
True
if available selection is greater than zero. ReturnsFalse
otherwise.
-
renderPromptContent
public void renderPromptContent(MarkupOutput out)
Renders the prompt question.
It renders given prompt layout content by calling therenderCart()
method.- Overrides:
renderPromptContent
in classAbstractPromptObjectTransform
- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderCart
public void renderCart(MarkupOutput out)
Renders a shopping cart output by calling different methods that will render the individual sections of the prompt layout. The output is organized with a series ofDIV
HTML tags created.
The methods used for the cart output are listed below, whereout
is aMarkupOutput
instance where the HTML generated by these calls is saved.- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
isUpDownArrowsAvailable
public boolean isUpDownArrowsAvailable()
Indicates whether or not UP and DOWN arrows are displayable.
It readsCart
propertyEnumCartProperties.UP_AND_DOWN_AVAILABLE
which indicates whether or not these arrows can be displayed.- Returns:
- boolean true if cart property is set to display arrows.
-
isSearchAvailable
public boolean isSearchAvailable()
Indicates whether or not search area is displayable.
It readsCart
propertyEnumCartProperties.SEARCH_AVAILABLE
which indicates whether or not search area can be displayed.- Returns:
- boolean true if cart property is set to display search area.
-
renderLabel
public void renderLabel(MarkupOutput out, int descriptorId, java.lang.String name)
Renders an HTML label tag.
Utility method for rendering a label tag on the HTML output to generate. Internally calls theCart
instance to render the label using itsrenderLabel
method.- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.descriptorId
-int
identifier of the descriptor to display as labelname
-String
value to assign to thefor
attribute of theLABEL
HTML tag to display.
-
renderLabel
public void renderLabel(MarkupOutput out, java.lang.String descriptor, java.lang.String name)
Renders an HTML label tag.
Utility method for rendering a label tag on the HTML output to generate. Internally calls theCart
instance to render the label using itsrenderLabel
method.- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.descriptor
-String
with the descriptor to display as labelname
-String
value to assign to thefor
attribute of theLABEL
HTML tag to display.
-
renderIncrementalFetch
public void renderIncrementalFetch(MarkupOutput out)
Renders the incremental fetch information for the cart available list.
It updates the incremental fetch information before rendering it.- Parameters:
out
-MarkupOutput
instance where the output HTML will be stored.
-
renderAvailable
public void renderAvailable(MarkupOutput out)
Renders the available list of elements on the cart. Sample code for this method would be defined as follows:- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderSearch
public void renderSearch(MarkupOutput out)
Renders the search section of the cart.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderAdd
public void renderAdd(MarkupOutput out)
Renders the add button information for the cart. Sample code for this method would be defined as follows:- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderAddAll
public void renderAddAll(MarkupOutput out)
Renders the add all button information for the cart.
Generates JavaScript information to be associated with the button if it's to be rendered on a DHTML environment.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderRemoveAll
public void renderRemoveAll(MarkupOutput out)
Renders the remove all button information for the cart. Generates JavaScript information to be associated with the button if it's to be rendered on a DHTML environment.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderRemove
public void renderRemove(MarkupOutput out)
Renders the remove button information for the cart.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderSelected
public void renderSelected(MarkupOutput out)
Renders the selected list information of the cart.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderUp
public void renderUp(MarkupOutput out)
Render the up button information for the cart.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
renderDown
public void renderDown(MarkupOutput out)
Render the down button information for the cart.- Parameters:
out
-MarkupOutput
instance where the HTML content generated by this method will be saved
-
onBeforeApplyDefaultDisplaySettings
protected void onBeforeApplyDefaultDisplaySettings() throws WebObjectsException
- Overrides:
onBeforeApplyDefaultDisplaySettings
in classAbstractPromptObjectTransform
- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 8.0.1
-
-