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 | |||||
↳ | com.microstrategy.web.app.transforms.PromptObjectBrowsingXHTMLTransform |
Renders prompt content in a "shopping cart" style with a browseable folder path.
It extends PromptCartTransform by adding a folder path above the prompt question and by
allowing end-user to navigate to available subfolders. Also, it will only display
objects that are defined in prompt definition; this means that if only templates are to be
displayed then any instance will be displayed if found under given subfolder.
Tag
instances to render HTML output.
See reference to TagsFactory
.
The output of this Transform generates well-formed XHTML, supports layout-xml,
and it's designed to use
external css files for all formatting.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public FormalParameter | cssItemName | Formal parameter of the prefix to append to all css class names. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PromptObjectBrowsingXHTMLTransform()
Default no-args constructor, initialize all the formal parameters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
canTransform(Transformable data)
Indicates whether or not this component can be transformed.
| ||||||||||
String |
getDescription()
Indicates the description for this Transform.
| ||||||||||
void |
initializeCss()
Initialize the css information to be used by this transform.
| ||||||||||
void |
initializePromptContent()
Initializes prompt content information.
| ||||||||||
boolean |
isSearchAvailable()
Indicates whether or not
Cart instance has 'search' area enabled or displayed. | ||||||||||
boolean |
isThereAnyFolderToRender()
Determines whether there's a root folder as default point for browsing.
| ||||||||||
boolean |
isUpAndDownAvailable()
Indicates whether or not
Cart instance has up/down arrows enabled. | ||||||||||
void |
renderBackParentButton(MarkupOutput out)
Renders 'Back' button.
| ||||||||||
void |
renderCart(MarkupOutput out)
Renders a shopping cart output.
| ||||||||||
void |
renderFoldersPath(MarkupOutput out)
Renders folders formatted path text.
| ||||||||||
void |
renderLabel(MarkupOutput out, String labelName)
Renders an HTML label.
| ||||||||||
void |
renderParentPromptContent(MarkupOutput out)
Renders prompt content defined in parent class.
| ||||||||||
void |
renderPromptContent(MarkupOutput out)
Renders the prompt question layout content.
| ||||||||||
void |
renderSubFolderPullDown(MarkupOutput out)
Renders subfolders pull down menu.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Enumeration |
getAvailableItems()
Returns an enumeration of all available items.
| ||||||||||
void |
updateIncrementalFetchCartProperties()
Updates incremental fetch properties in Cart object.
| ||||||||||
void |
writeAncestors(MarkupOutput out, SimpleList ancestors, int currentAncestor)
Recursevily renders folder anscestors names.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Default no-args constructor, initialize all the formal parameters.
Indicates whether or not this component can be transformed.
Extends canTransform() by returning true only if the prompt is of type EnumWebPromptType.WebPromptTypeObjects
data | object (PromptObject) to transform |
---|
Indicates the description for this Transform.
String
with the description for the transform.
Initialize the css information to be used by this transform.
It invokes parent method so all shared CSS are also initialized.
Initializes prompt content information.
Extends initializePromptContent() by calling processIncrementalFetch and processSelectedItems.
It also initialize the Cart object associated.
WebObjectsException | if something goes wrong when processing Available items. |
---|
Indicates whether or not Cart
instance has 'search' area enabled or displayed.
Determines whether there's a root folder as default point for browsing.
This is determined only if there are folder objects in available units.
Indicates whether or not Cart
instance has up/down arrows enabled.
Renders 'Back' button.
THis button will enable end-user to navigate the different folders available to
the parent one.
out | MarkupOutput instance where the output HTML will be stored.
|
---|
Renders a shopping cart output.
This is accomplished by calling different methods that will render the individual sections
of the prompt layout. The output is organized with a series of DIV
HTML tags created.
The methods used for the cart output are listed below, where out
is a MarkupOutput
instance where the HTML generated by these calls is saved.
out | MarkupOutput instance where the output HTML will be stored.
|
---|
Renders folders formatted path text.
The output is organized with a series of DIV
HTML tags created.
The methods used for the cart output are listed below, where out
is a MarkupOutput
instance where the HTML generated by these calls is saved.
out | MarkupOutput instance where the output HTML will be stored.
|
---|
Renders an HTML label.
out | MarkupOutput instance where the output HTML will be stored. |
---|---|
labelName | string of label to be displayed. |
Renders prompt content defined in parent class.
It delegates responsability of rendering prompt's content to parent method renderCart().
out | MarkupOutput where to write output.
|
---|
Renders the prompt question layout content.
This is accomplished by calling the renderCart()
method. If there are no folders to render then
it will simply call the parent's renderPromptContent
method.
out | MarkupOutput instance where the output HTML will be stored.
|
---|
Renders subfolders pull down menu.
out | MarkupOutput instance where the output HTML will be stored.
|
---|
Returns an enumeration of all available items.
It gets all available display units and creates an Enumeration
instance which is returned.
Updates incremental fetch properties in Cart object.
Mostly, the total of units is calculated after processing available units, hence, we
need to reflect this in Cart incremental fetch properties only if Incremental fetch
is enabled (isIncrementalFetchAvailable() is invoked).
Incremental Fetch object is obtained from Prompt's cart infrastructure.
This function updates its Block Count, Block Begin and Total count properties.
Recursevily renders folder anscestors names.
out | MarkupOutput where to write the output of the method. |
---|---|
ancestors | SimpleList list of folder ancestors |
currentAncestor | int current ancestor being rendered. |