Class MojoXtabTransformImpl
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractWebBeanTransform
-
- com.microstrategy.web.app.transforms.AbstractReportTransform
-
- com.microstrategy.web.app.transforms.AbstractReportDataTransform
-
- com.microstrategy.web.app.transforms.MojoTemplateTransformImpl
-
- com.microstrategy.web.app.transforms.MojoXtabTransformImpl
-
- All Implemented Interfaces:
AppTransform
,ReportDataTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
MojoServerJsonVisualizationDataTransform
,MojoVisualizationDataTransform
public class MojoXtabTransformImpl extends MojoTemplateTransformImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.MojoTemplateTransformImpl
contentTypeParam
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportDataTransform
_blankImage, _cssBottom, _cssCenter, _cssLeft, _cssRight, _cssTop, _ifLeftArrowImage, _ifRightArrowImage, advancedDrillingContextMenuDisplay, BLANK_SUBSET_REPORT_ID, cssBottom, cssCenter, cssLeft, cssRight, cssTop, customJavaScriptFeatures, drillRetainThresholds, drillWithinBehavior, gridGraphUnitKeyContext, groupContextMenuDrillPathsByType, hasIncreFetchForColumnOnLeft, hasIncreFetchForColumnOnRight, id, ifLeftArrowImage, ifRightArrowImage, incrementalFetchStyleForRow, quickSwitch, quickSwitchCurrent, rwbViewerID, showDrillPathSetNamesSubMenuAtTopLevel, showIncreFetchForColumn, showIncreFetchForRowOnBottom, showIncreFetchForRowOnTop, showSubtitlePara, sortSetNamesAndDrillPaths, transformContext, uniqueReportId
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
BLANK_XDA_REPORT_ID, cssErrorMessage, cssErrorTitle, cssUseFileContent, generateJSForDrillCheckBoxesForIncFetch, iFramePara, imgError, showScroller, useBuiltInFormatPara
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description MojoXtabTransformImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BlockList
createCellFillColorList()
protected BlockList
createCellFillColorList(java.util.LinkedHashMap<java.lang.String,java.lang.Integer> colormap)
protected Block
createGridDataModelBlock()
protected Block
createGridHeadersModelBlock()
protected Block
createGridModelBlock()
protected Block
createGridTitlesModelBlock()
protected Block
createHeader(WebHeader headerSrc, boolean useTitle)
protected BlockList
createThresholdList()
protected boolean
forceIncludeMetricRawValue(WebRowValue rowValue)
long
getActions(WebHeader header)
long
getActions(WebRowValue rowValue)
long
getActions(WebTitleUnit element)
protected static WebAttribute
getAttribute(WebTitleUnit tu)
int
getColSpan(WebHeader header)
protected WebCSSHelper
getCssHelper()
java.lang.String
getDescription()
Returns a textual description of the transform.BlockList
getDrillPathBlock(WebTitleUnit element)
BlockList
getElementsBlock(WebTitleUnit titleUnit, long actions, IntWrapper intWrp)
java.lang.String
getFormID(WebTitleUnit titleUnit)
int
getFormType(WebTitleUnit titleUnit)
java.util.List<? extends WebTitleUnit>
getGridTitles(int axis)
java.util.List<WebHeader>
getHeaders(WebHeaders headers)
java.util.List<WebHeaders>
getHeadersList(int axis)
java.util.List<WebColumn>
getHeaderWidths()
BlockList
getLinkMapBlock(WebTitleUnit element)
int
getLockHeadersValue()
int
getMergeHeaderValue()
java.lang.Integer
getMetricIndex(WebHeader header)
java.lang.String
getName(WebTitleUnit element)
java.lang.Integer
getParentCellIndex(WebHeader header)
Block
getParentIndex(WebHeader header, long headerActionType)
java.lang.Integer
getParentRowIndex(WebHeader header)
java.lang.String
getRowHeight()
returns empty string, if the height is not fixed.protected java.lang.Integer
getRowHeightVal()
Block
getSelectorBlock(WebTitleUnit element)
java.lang.Boolean
getSortOrder(WebHeader header)
java.lang.Boolean
getSortOrder(WebTitleUnit titleUnit)
int
getSpan(WebTitleUnit titleUnit)
int
getSubtotalsPosition(int axis)
java.util.List<java.lang.String>
getTitleFormIDs(WebTitleUnit titleUnit)
int
getTitleUnitIndex(WebHeader header)
java.util.List<WebColumn>
getTitleWidths()
int
getUnitIndex(WebHeader header)
java.lang.String
getValue(WebHeader header)
java.lang.String
getValue(WebRowValue rowValue)
Block
getValueBlock(WebRowValue rowValue)
protected HashList<java.lang.String,java.lang.String>
getVisProps()
int
getWebElementIndex(WebHeader header)
boolean
isClipOverflowSet()
boolean
isComplex(WebHeader header)
boolean
isDhtml()
Determine if the environment where this transform instance is being used is DHTML or notboolean
isTemplateMetric(WebHeader header)
boolean
isVisible(int zoneID)
protected void
prepareToTransform(MarkupOutput out)
boolean
removeExtraColumn()
protected void
renderRegisterBone(MarkupOutput out)
If a scriptClass is specified, this method registers the corresponding javascript bone for this component.void
renderShell(MarkupOutput out)
Generates the shell for this Transform.void
transformForRequestSuccessful(MarkupOutput out)
Transform when the status is "Successful".-
Methods inherited from class com.microstrategy.web.app.transforms.MojoTemplateTransformImpl
addGridStructureBlock, getThresholdsBlockList, hasCenter, isGraphTransform, isGridTransform, renderCenter, renderData, renderEmptyCase, renderLayout
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportDataTransform
createBlockEditorProperties, createBlockEditorProperties, generatePageHistoryItems, getAttributesShellDiv, getBeanPath, getBoneId, getDisplayMode, getFrameBean, getGridData, getGridScriptClass, getGridWidths, getID, getMetricAxisName, getReportSetting, getTransformContext, getViewBean, getWebTemplate, hasBottom, hasLeft, hasRight, hasTop, initializeCss, initializeImages, initializeProperties, initializeTranformContext, initializeTransform, initializeWebComponent, isCalledFromPrinting, isGridEmpty, isQuickSwitchEnabled, isRWBean, renderBottom, renderContent, renderIncreFetchOnColumnLeftPart, renderIncreFetchOnColumnRightPart, renderIncreFetchOnRow, renderJavascript, renderLeft, renderRight, renderRowsIncrementalFetch, renderTop, setBoneProperties, shouldRenderGridInfo, showSubtitle, showSubtitle, showSubTitleOnly, supports, supports
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportTransform
canTransform, generateAnchor, generateErrorForIframe, generateErrorForIframe, generateIncFetchAnchor, generateIncFetchOpenAnchor, getCancelEvent, getContinueEvent, getErrorMessage, getErrorTitle, getHistoryListEvent, getInboxSource, getJobExpiredMessage, getNextColumnsEvent, getPreviousColumnsEvent, getReexecuteButtonDescription, getReportBean, getReportStatus, getReportStatusDescriptorKey, getRepromptEvent, getSupportedBeanType, getViewDetailsEvent, getWebReexecuteEvent, isCubeReport, isDatamart, isDesignMode, isIFrameEnabled, isIncRefreshReport, isNonViewableReport, renderColumnsIncrementalFetch, renderColumnsIncrementalFetchNext, renderColumnsIncrementalFetchPrevious, renderContinueFormForRequestInError, renderErrorButtons, renderErrorInfo, renderHistoryListButton, renderImage, renderJobExpiredSection, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoDetails, renderViewDetailsButton, setWebReexecuteEventArguments, transformForRequestInError, transformForRequestNotInited, useBuiltInFormat
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractWebBeanTransform
getReexcuteEventFromBean, getTaskProcessorBaseURL
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getClientSideHelper, getContainerServices, getContext, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, is508, isBlockMode, isContextMenusEnabled, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderSelf, renderSubBlock, renderUserHelpAnchor, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestProcessing, transformForRequestWaitingForUserInput
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, getEvents, getFormalParams, 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
canTransform, getFormalParams, getPreview, getSupportedBeanType, isPreviewAvailable, isResolved, transform
-
-
-
-
Field Detail
-
PROPERTY_RAW_VALUE
protected static final java.lang.String PROPERTY_RAW_VALUE
- See Also:
- Constant Field Values
-
BLOCK_ELEMENT_MODEL
protected static final java.lang.String BLOCK_ELEMENT_MODEL
- See Also:
- Constant Field Values
-
PROPERTY_ID
protected static final java.lang.String PROPERTY_ID
- See Also:
- Constant Field Values
-
PROPERTY_COLUMN_WIDTHS
public static final java.lang.String PROPERTY_COLUMN_WIDTHS
- See Also:
- Constant Field Values
-
PROPERTY_METRIC_INDEX
public static final java.lang.String PROPERTY_METRIC_INDEX
- See Also:
- Constant Field Values
-
PROPERTY_SELECTOR_OPTIONS
public static final java.lang.String PROPERTY_SELECTOR_OPTIONS
- See Also:
- Constant Field Values
-
LOCK_COL
protected static final int LOCK_COL
- See Also:
- Constant Field Values
-
DEFAULT_PADDING_TOP
protected static final int DEFAULT_PADDING_TOP
- See Also:
- Constant Field Values
-
DEFAULT_PADDING_RIGHT
protected static final int DEFAULT_PADDING_RIGHT
- See Also:
- Constant Field Values
-
DEFAULT_PADDING_BOTTOM
protected static final int DEFAULT_PADDING_BOTTOM
- See Also:
- Constant Field Values
-
DEFAULT_PADDING_LEFT
protected static final int DEFAULT_PADDING_LEFT
- See Also:
- Constant Field Values
-
DEFAULT_BORDER_WIDTH
protected static final int DEFAULT_BORDER_WIDTH
- See Also:
- Constant Field Values
-
forceShowAttributeFormParam
protected FormalParameter forceShowAttributeFormParam
-
includeElementIDParam
protected FormalParameter includeElementIDParam
-
includeThresholdParam
protected FormalParameter includeThresholdParam
-
includeCSSParam
protected FormalParameter includeCSSParam
-
useRawValuesParam
protected FormalParameter useRawValuesParam
-
includeColWidthsParam
protected FormalParameter includeColWidthsParam
-
useReducedElementIDParam
protected FormalParameter useReducedElementIDParam
-
includeCSSStringForDocument
protected FormalParameter includeCSSStringForDocument
-
includeCellFillColorParam
protected FormalParameter includeCellFillColorParam
-
includeGridSelectorCurrentElementsParam
protected FormalParameter includeGridSelectorCurrentElementsParam
-
includeCSSOnlyParam
protected FormalParameter includeCSSOnlyParam
-
useAbsoluteURLsParam
protected FormalParameter useAbsoluteURLsParam
-
encodeElementNameParam
protected FormalParameter encodeElementNameParam
-
includeDataBlockParam
protected FormalParameter includeDataBlockParam
-
includeBlockIndicesPropertiesParam
protected FormalParameter includeBlockIndicesPropertiesParam
-
returnReplacementParam
protected FormalParameter returnReplacementParam
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:Transform
Returns a textual description of the transform.- Specified by:
getDescription
in interfaceTransform
- Overrides:
getDescription
in classMojoTemplateTransformImpl
- Returns:
- The textual description of the transform.
-
renderShell
public void renderShell(MarkupOutput out)
Description copied from class:AbstractAppTransform
Generates the shell for this Transform.
The shell is a
The attributes to append to this<div>
tag that automatically surrounds the content generated by the Transform. It's used among other things by the javascript to identify the HTML associated with a bone, and by the iFrame update technology to identify a component in the page.<div>
are obtained from thegetAttributesShellDiv
method; the style from thegetStyleShellDiv
method.
This method callsrenderCssLink
andcheckStatus
to generate the Transform's content.- Overrides:
renderShell
in classAbstractAppTransform
- Parameters:
out
- output by this transform
-
renderRegisterBone
protected void renderRegisterBone(MarkupOutput out)
Description copied from class:AbstractAppTransform
If a scriptClass is specified, this method registers the corresponding javascript bone for this component.- Overrides:
renderRegisterBone
in classAbstractAppTransform
- Parameters:
out
- MarkupOutput whether the output should be rendered.- See Also:
AbstractAppTransform.getScriptClass()
-
getGridTitles
public java.util.List<? extends WebTitleUnit> getGridTitles(int axis)
-
removeExtraColumn
public boolean removeExtraColumn()
-
getMergeHeaderValue
public int getMergeHeaderValue()
-
getLockHeadersValue
public int getLockHeadersValue()
-
isComplex
public boolean isComplex(WebHeader header)
-
getValue
public java.lang.String getValue(WebHeader header)
-
getRowHeight
public java.lang.String getRowHeight()
returns empty string, if the height is not fixed.- Returns:
-
getRowHeightVal
protected java.lang.Integer getRowHeightVal()
-
isClipOverflowSet
public boolean isClipOverflowSet()
-
isVisible
public boolean isVisible(int zoneID)
-
getTitleWidths
public java.util.List<WebColumn> getTitleWidths()
-
getHeaderWidths
public java.util.List<WebColumn> getHeaderWidths()
-
getCssHelper
protected WebCSSHelper getCssHelper() throws MSTRCheckedException
- Throws:
MSTRCheckedException
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Description copied from class:AbstractReportDataTransform
Transform when the status is "Successful". This is the main entry point of the Transform. It will check if a layout-xml has been specified and use it, otherwise it callsrenderContent
.
After the content has been generated it callsrenderJavascript
to generate any necessary client-side information.- Overrides:
transformForRequestSuccessful
in classMojoTemplateTransformImpl
- Parameters:
out
- MarkupOutput to generate the HTML.- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
prepareToTransform
protected void prepareToTransform(MarkupOutput out)
- Overrides:
prepareToTransform
in classMojoTemplateTransformImpl
-
createGridModelBlock
protected Block createGridModelBlock() throws java.lang.Exception
- Overrides:
createGridModelBlock
in classMojoTemplateTransformImpl
- Throws:
java.lang.Exception
-
getVisProps
protected HashList<java.lang.String,java.lang.String> getVisProps()
-
createGridDataModelBlock
protected Block createGridDataModelBlock() throws java.lang.Exception
- Throws:
java.lang.Exception
-
createGridHeadersModelBlock
protected Block createGridHeadersModelBlock() throws java.lang.Exception
- Throws:
java.lang.Exception
-
createHeader
protected Block createHeader(WebHeader headerSrc, boolean useTitle) throws java.lang.Exception
- Parameters:
useTitle
- whether title can be referenced in the block model- Throws:
java.lang.Exception
-
createGridTitlesModelBlock
protected Block createGridTitlesModelBlock() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSortOrder
public java.lang.Boolean getSortOrder(WebTitleUnit titleUnit)
-
getSortOrder
public java.lang.Boolean getSortOrder(WebHeader header)
-
getMetricIndex
public java.lang.Integer getMetricIndex(WebHeader header)
-
getAttribute
protected static WebAttribute getAttribute(WebTitleUnit tu) throws WebObjectsException
- Throws:
WebObjectsException
-
getFormID
public java.lang.String getFormID(WebTitleUnit titleUnit)
-
getTitleFormIDs
public java.util.List<java.lang.String> getTitleFormIDs(WebTitleUnit titleUnit)
-
getFormType
public int getFormType(WebTitleUnit titleUnit)
-
createCellFillColorList
protected BlockList createCellFillColorList(java.util.LinkedHashMap<java.lang.String,java.lang.Integer> colormap)
-
createCellFillColorList
protected BlockList createCellFillColorList()
-
createThresholdList
protected BlockList createThresholdList()
-
getElementsBlock
public BlockList getElementsBlock(WebTitleUnit titleUnit, long actions, IntWrapper intWrp)
-
isDhtml
public boolean isDhtml()
Description copied from class:AbstractAppTransform
Determine if the environment where this transform instance is being used is DHTML or not- Overrides:
isDhtml
in classAbstractAppTransform
- Returns:
- boolean value indicating the environment is DHTML or not.
-
getHeadersList
public java.util.List<WebHeaders> getHeadersList(int axis)
-
getValueBlock
public Block getValueBlock(WebRowValue rowValue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
forceIncludeMetricRawValue
protected boolean forceIncludeMetricRawValue(WebRowValue rowValue)
-
getValue
public java.lang.String getValue(WebRowValue rowValue)
-
getHeaders
public java.util.List<WebHeader> getHeaders(WebHeaders headers)
-
getWebElementIndex
public int getWebElementIndex(WebHeader header)
-
getSpan
public int getSpan(WebTitleUnit titleUnit)
-
getUnitIndex
public int getUnitIndex(WebHeader header)
-
getTitleUnitIndex
public int getTitleUnitIndex(WebHeader header)
-
getParentIndex
public Block getParentIndex(WebHeader header, long headerActionType) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getParentRowIndex
public java.lang.Integer getParentRowIndex(WebHeader header)
-
getParentCellIndex
public java.lang.Integer getParentCellIndex(WebHeader header)
-
getColSpan
public int getColSpan(WebHeader header)
-
getDrillPathBlock
public BlockList getDrillPathBlock(WebTitleUnit element)
-
getSelectorBlock
public Block getSelectorBlock(WebTitleUnit element)
-
getLinkMapBlock
public BlockList getLinkMapBlock(WebTitleUnit element)
-
getName
public java.lang.String getName(WebTitleUnit element) throws WebObjectsException
- Throws:
WebObjectsException
-
getActions
public long getActions(WebRowValue rowValue)
-
getActions
public long getActions(WebHeader header)
-
getSubtotalsPosition
public int getSubtotalsPosition(int axis)
-
getActions
public long getActions(WebTitleUnit element)
-
isTemplateMetric
public boolean isTemplateMetric(WebHeader header)
-
-