Class AbstractReportGridTransform
- 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.AbstractReportGridTransform
-
- All Implemented Interfaces:
AppTransform,ReportDataTransform,LayoutTransform,Transform
- Direct Known Subclasses:
ReportGridTransformImpl,ReportPageByTransform
public abstract class AbstractReportGridTransform extends AbstractReportDataTransform
The AbstractReportGridTransform is an base class for those transform that generate a grid visualization of the data returned by a Report.
It serves two main purposes a)to hold an initialize common formal parameters, and b)as a factory forReportGridDisplayCellclasses.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected ContextMenuManager_contextMenuManagerprotected java.util.HashMap_gridCellClassesprotected java.lang.String_imgRemoveThe full image name for remove button.protected java.lang.String_imgShiftDownThe full image name for shift-to-down pivot button.protected java.lang.String_imgShiftLeftThe full image name for shift-to-left pivot button.protected java.lang.String_imgShiftLeftDownThe full image name for shift-left-down pivot button.protected java.lang.String_imgShiftRightThe full image name for shift-to-right pivot button.protected java.lang.String_imgShiftRightDownDeprecated.This parameter has been deprecated as it was only used by the ReportPageByTransform.protected java.lang.String_imgShiftRightUpThe full image name for shift-right-up pivot button.protected java.lang.String_imgShiftUpThe full image name for shift-to-up pivot button.protected java.lang.String_imgToPageByThe full image name for shift-to-pageby pivot button.protected ReportDisplayCellsFactory_rdcFactoryThis factory object is used to generate a cell instance for a particular type if necessary.protected boolean_reuseFlagThis flag is used to indicate reuse the cell instances from the above cell factory or not.protected FormalParameteraddNumberFormattingWhether to add the number formatting on metric values.protected java.lang.StringCOL_HEADERprotected java.lang.StringCOL_HEADER_CLASSprotected java.lang.StringCOL_TITLEprotected java.lang.StringCOL_TITLE_CLASSprotected FormalParametercontextMenuNameThis is the parameter to define the name of the context menu to use.protected java.lang.StringDISPLAY_CELLprotected java.lang.StringDISPLAY_CELL_CLASSprotected FormalParametergridClassesConfFileIt is used to indicate the name and location of the properties file containing the definition of the grid classes to use.protected FormalParameterimgRemoveThis is the image name for remove image used in the transform.protected FormalParameterimgShiftDownThis is the image name for shift down arrow used in the transform.protected FormalParameterimgShiftLeftThis is the image name for shift left arrow used in the transform.protected FormalParameterimgShiftLeftDownThis is the image name for shift left down arrow (pivot to row) used in the transform.protected FormalParameterimgShiftRightThis is the image name for shift right arrow used in the transform.protected FormalParameterimgShiftRightDownDeprecated.This parameter has been deprecated as it was only used by the ReportPageByTransform.protected FormalParameterimgShiftRightUpThis is the image name for shift right up arrow (pivot to column) used in the transform.protected FormalParameterimgShiftUpThis is the image name for shift up arrow used in the transform.protected FormalParameterimgToPageByThis is the image name for to-page-by image used in the transform.protected FormalParameterisContextMenuEnabledDeprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusprotected FormalParameterisDragAndDropEnabledThis is the flag used in the transform to specify whether to enable drag and drop functionality.protected java.lang.StringMETRIC_VALUEprotected java.lang.StringMETRIC_VALUE_CLASSprotected FormalParameterpostTextForMetricValueThis is the post text for the metric value cell content.protected FormalParameterpostTextForNonMetricValueThis is the post text for the non-metric value cell content.protected FormalParameterpreTextForMetricValueThis is the pre text for the metric value cell content.protected FormalParameterpreTextForNonMetricValueThis is the pre text for the non-metric value cell content.protected FormalParameterreportDesignModeParaThis is the report mode flag used in the transform.protected FormalParameterreturnReplacementThis is the substring that when found in the cell will be replaced by a break (<br>) tag.protected java.lang.StringREUSE_FLAGNote: for the purpose of cell reuse.protected java.lang.StringROW_HEADERprotected java.lang.StringROW_HEADER_CLASSprotected java.lang.StringROW_TITLEprotected java.lang.StringROW_TITLE_CLASSprotected FormalParametershowContextMenusDeprecated.use isContextMenuEnabled instead.protected FormalParametershowDescriptionAsTooltipIt is used in the transform to specify whether to show the descriptions in the tooltip for the row or column titles.protected FormalParametershowExtraRemoveRMCThis is the flag used in the transform to specify whether to show a second Right Mouse Click menu for removing option.protected FormalParametershowFormattingRMCThis is the flag used in the transform to specify whether to show Right Mouse Click menu for formatting.protected FormalParametershowGridInFullWidthDeprecated.Previously used only in design mode of the report.protected FormalParametershowPivotParaThis is the flag used in the transform to specify whether to show pivot buttons.protected FormalParametershowPivotRMCThis is the flag used in the transform to specify whether to show Right Mouse Click menu for pivoting.protected FormalParametershowRemoveParaThis is the flag used in the transform to specify whether to show remove buttons.protected FormalParametershowRemoveRMCThis is the flag used in the transform to specify whether to show Right Mouse Click menu for removing.protected FormalParametershowRenameRMCThis is the flag used in the transform to specify whether to show Right Mouse Click menu for renaming.-
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 AbstractReportGridTransform()default no-args constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidgenerateJavaScriptForDragAndDrop(MarkupOutput out, ReportBean rb)Deprecated.This method has been deprecated and will be removed in future versions of the product.protected java.lang.StringgetCssPrefix()Get the prefix for the css class name.protected intgetDesignMode()Deprecated.- use isDesignMode insteadprotected ReportGridDisplayCellgetGridCell(java.lang.String className)Get the cell instance for the given cell class name.protected ReportGridCellColHeadergetGridCellColHeader()protected ReportGridCellColTitlegetGridCellColTitle()protected ReportGridCellMetricValuegetGridCellMetricValue()protected ReportGridCellRowHeadergetGridCellRowHeader()protected ReportGridCellRowTitlegetGridCellRowTitle()protected ReportGridCellgetGridGenericCell()protected voidinitGridCellClasses()Deprecated.This method is deprecated and will be removed in future versions of the product.
It's not invoked anymore by the Transform, and calling it has no effect.protected voidinitializeCellClasses()Reads the configuration with the cell classes and caches its content, then it callssetGridCellClassfor each different cell type.voidinitializeImages()initialize the images for the transform.voidinitializeProperties()ExtendsinitializePropertiesby invokinginitializeTranformContextvoidinitializeTransform(Transformable data)ExtendsinitializeTransformby initiliazing the grid cell classes by callinginitializeCellClassesprotected booleanisContextMenuEnabled()Deprecated.Please query directly theisContextMenuEnabledformal parameter insteadprotected booleanisDragAndDropEnabled()Deprecated.Please query directly theisDragAndDropEnabledformal parameter insteadprotected booleanisGraphTransform()protected booleanisGridTransform()protected voidsetGridCellClass(java.lang.String classKey, java.lang.String className)This method initializes the classes used to render headers, titles and metric values.protected voidsetGridCellClass(java.util.Properties properties, java.lang.String classKey, java.lang.String defaultClassName)This method initializes the classes used to render headers, titles and metric values by using a property file.protected booleanshowFormattingRMC()Deprecated.Please query directly theshowFormattingRMCformal parameter insteadprotected booleanshowPivot()Deprecated.Please query directly theshowPivotParaformal parameter insteadprotected booleanshowPivotRMC()Deprecated.Please query directly theshowPivotRMCformal parameter insteadprotected booleanshowRemove()Deprecated.Please query directly theshowRemoveParaformal parameter insteadprotected booleanshowRemoveRMC()Deprecated.Please query directly theshowRemoveRMCformal parameter insteadprotected booleanshowRenameRMC()Deprecated.Please query directly theshowRenameRMCformal parameter instead-
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, hasCenter, hasLeft, hasRight, hasTop, initializeCss, initializeTranformContext, initializeWebComponent, isCalledFromPrinting, isGridEmpty, isQuickSwitchEnabled, isRWBean, renderBottom, renderContent, renderIncreFetchOnColumnLeftPart, renderIncreFetchOnColumnRightPart, renderIncreFetchOnRow, renderJavascript, renderLeft, renderRight, renderRowsIncrementalFetch, renderTop, setBoneProperties, shouldRenderGridInfo, showSubtitle, showSubtitle, showSubTitleOnly, supports, supports, transformForRequestSuccessful
-
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, 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, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, 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.app.transforms.ReportDataTransform
renderCenter, renderData, renderEmptyCase, renderLayout
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getDescription, getFormalParams, getPreview, getSupportedBeanType, isPreviewAvailable, isResolved, transform
-
-
-
-
Field Detail
-
reportDesignModePara
protected FormalParameter reportDesignModePara
This is the report mode flag used in the transform.
not needed any more because we have two seperate transforms for execute mode and design mode: ReportGridTransformImpl and ReportDesignModeTransformImpl
Allowed Values: integer values from enumeration EnumReportViewModes.
-
isDragAndDropEnabled
protected FormalParameter isDragAndDropEnabled
This is the flag used in the transform to specify whether to enable drag and drop functionality.
Allowed Values: TRUE/FALSE.
-
isContextMenuEnabled
protected FormalParameter isContextMenuEnabled
Deprecated.To customize context-menus use the xml-definition specified byAbstractAppTransform.contextMenusThis is the flag used in the transform to specify whether to enable context menu functionality.
Allowed Values: TRUE/FALSE.
-
showPivotPara
protected FormalParameter showPivotPara
This is the flag used in the transform to specify whether to show pivot buttons.
Allowed Values: TRUE/FALSE.
-
showRemovePara
protected FormalParameter showRemovePara
This is the flag used in the transform to specify whether to show remove buttons.
Allowed Values: TRUE/FALSE.
-
showPivotRMC
protected FormalParameter showPivotRMC
This is the flag used in the transform to specify whether to show Right Mouse Click menu for pivoting.
Allowed Values: TRUE/FALSE.
-
showRemoveRMC
protected FormalParameter showRemoveRMC
This is the flag used in the transform to specify whether to show Right Mouse Click menu for removing.
Allowed Values: TRUE/FALSE.
-
showExtraRemoveRMC
protected FormalParameter showExtraRemoveRMC
This is the flag used in the transform to specify whether to show a second Right Mouse Click menu for removing option.
This second option will allow the Remove From Report manipulation only if Remove From Grid is granted to the user andshowRemoveRMCis enabled. Allowed Values: TRUE/FALSE.- Since:
- MicroStrategy Web 8.0.0
-
showFormattingRMC
protected FormalParameter showFormattingRMC
This is the flag used in the transform to specify whether to show Right Mouse Click menu for formatting.
Allowed Values: TRUE/FALSE.
-
showRenameRMC
protected FormalParameter showRenameRMC
This is the flag used in the transform to specify whether to show Right Mouse Click menu for renaming.
Allowed Values: TRUE/FALSE.
-
contextMenuName
protected FormalParameter contextMenuName
This is the parameter to define the name of the context menu to use.
Allowed Values: String values.
-
showContextMenus
protected FormalParameter showContextMenus
Deprecated.use isContextMenuEnabled instead.It is used in the transform to specify whether to enable context menu functionality.
Allowed Values: TRUE/FALSE.
-
preTextForMetricValue
protected FormalParameter preTextForMetricValue
This is the pre text for the metric value cell content. Most likely used with exporting feature.
Allowed Values: String values.
-
returnReplacement
protected FormalParameter returnReplacement
This is the substring that when found in the cell will be replaced by a break (<br>) tag.
Allowed Values: String values.- Since:
- MicroStrategy Web 8.0.0
-
postTextForMetricValue
protected FormalParameter postTextForMetricValue
This is the post text for the metric value cell content. Most likely used with exporting feature.
Allowed Values: String values.
-
preTextForNonMetricValue
protected FormalParameter preTextForNonMetricValue
This is the pre text for the non-metric value cell content. Most likely used with exporting feature.
Allowed Values: String values.
-
postTextForNonMetricValue
protected FormalParameter postTextForNonMetricValue
This is the post text for the non-metric value cell content. Most likely used with exporting feature.
Allowed Values: String values.
-
showDescriptionAsTooltip
protected FormalParameter showDescriptionAsTooltip
It is used in the transform to specify whether to show the descriptions in the tooltip for the row or column titles.
It should be of BOOLEAN type.
Allowed Values: "1" means TRUE, "0" means FALSE.
-
imgShiftLeft
protected FormalParameter imgShiftLeft
This is the image name for shift left arrow used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgShiftRight
protected FormalParameter imgShiftRight
This is the image name for shift right arrow used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgShiftUp
protected FormalParameter imgShiftUp
This is the image name for shift up arrow used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgShiftDown
protected FormalParameter imgShiftDown
This is the image name for shift down arrow used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgShiftRightUp
protected FormalParameter imgShiftRightUp
This is the image name for shift right up arrow (pivot to column) used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgShiftLeftDown
protected FormalParameter imgShiftLeftDown
This is the image name for shift left down arrow (pivot to row) used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgShiftRightDown
protected FormalParameter imgShiftRightDown
Deprecated.This parameter has been deprecated as it was only used by the ReportPageByTransform.This is the image name for pivot-to-cols image used in the transform.
Allowed values: a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgToPageBy
protected FormalParameter imgToPageBy
This is the image name for to-page-by image used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
imgRemove
protected FormalParameter imgRemove
This is the image name for remove image used in the transform.
Allowed Values: The value to indicate should be a valid image file name, with any necessary path information not included already on theresourcesFolderImageapplication configuration parameter.
-
showGridInFullWidth
protected FormalParameter showGridInFullWidth
Deprecated.Previously used only in design mode of the report. Deprecated because now the layout of the grid will be dictated by the column width setting, i.e. whether it is set to Fit to Contents or Fit to Window.It is used in the transform to specify whether to show the grid in full width.
If TRUE, the grid will expand to the complete browser window; If FALSE, the grid will fit to the content in each cell. Allowed Values: TRUE/FALSE.
-
gridClassesConfFile
protected FormalParameter gridClassesConfFile
It is used to indicate the name and location of the properties file containing the definition of the grid classes to use.- Since:
- MicroStrategy Web 7.5.1
-
addNumberFormatting
protected FormalParameter addNumberFormatting
Whether to add the number formatting on metric values.- Since:
- MicroStrategy Web 8.0.2
-
_imgShiftLeft
protected java.lang.String _imgShiftLeft
The full image name for shift-to-left pivot button.
It includeds the image folder path.
-
_imgShiftRight
protected java.lang.String _imgShiftRight
The full image name for shift-to-right pivot button.
It includeds the image folder path.
-
_imgShiftUp
protected java.lang.String _imgShiftUp
The full image name for shift-to-up pivot button.
It includeds the image folder path.
-
_imgShiftDown
protected java.lang.String _imgShiftDown
The full image name for shift-to-down pivot button.
It includeds the image folder path.
-
_imgShiftRightUp
protected java.lang.String _imgShiftRightUp
The full image name for shift-right-up pivot button.
It's for pivot from row axis to column axis.
It includeds the image folder path.
-
_imgShiftLeftDown
protected java.lang.String _imgShiftLeftDown
The full image name for shift-left-down pivot button.
It's for pivot from column axis to row axis, and for pivot from page axis to row axis.
It includeds the image folder path.
-
_imgShiftRightDown
protected java.lang.String _imgShiftRightDown
Deprecated.This parameter has been deprecated as it was only used by the ReportPageByTransform.The full image name for shift-to-left pivot button.
It's for pivot from page axis to row axis.
It includeds the image folder path.
-
_imgToPageBy
protected java.lang.String _imgToPageBy
The full image name for shift-to-pageby pivot button.
It includeds the image folder path.
-
_imgRemove
protected java.lang.String _imgRemove
The full image name for remove button.
It includeds the image folder path.
-
_contextMenuManager
protected ContextMenuManager _contextMenuManager
-
_gridCellClasses
protected java.util.HashMap _gridCellClasses
- Since:
- MicroStrategy Web 7.5.1
-
COL_HEADER
protected final java.lang.String COL_HEADER
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
ROW_HEADER
protected final java.lang.String ROW_HEADER
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
COL_TITLE
protected final java.lang.String COL_TITLE
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
ROW_TITLE
protected final java.lang.String ROW_TITLE
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
METRIC_VALUE
protected final java.lang.String METRIC_VALUE
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
DISPLAY_CELL
protected final java.lang.String DISPLAY_CELL
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
COL_HEADER_CLASS
protected final java.lang.String COL_HEADER_CLASS
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
ROW_HEADER_CLASS
protected final java.lang.String ROW_HEADER_CLASS
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
COL_TITLE_CLASS
protected final java.lang.String COL_TITLE_CLASS
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
ROW_TITLE_CLASS
protected final java.lang.String ROW_TITLE_CLASS
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
METRIC_VALUE_CLASS
protected final java.lang.String METRIC_VALUE_CLASS
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
DISPLAY_CELL_CLASS
protected final java.lang.String DISPLAY_CELL_CLASS
- Since:
- MicroStrategy Web 7.5.1
- See Also:
- Constant Field Values
-
REUSE_FLAG
protected final java.lang.String REUSE_FLAG
Note: for the purpose of cell reuse.- Since:
- MicroStrategy Web 9.0.1
- See Also:
- Constant Field Values
-
_rdcFactory
protected ReportDisplayCellsFactory _rdcFactory
This factory object is used to generate a cell instance for a particular type if necessary. One cell class has only one cell instance. Note: for the purpose of cell reuse.- Since:
- MicroStrategy Web 9.0.1
-
_reuseFlag
protected boolean _reuseFlag
This flag is used to indicate reuse the cell instances from the above cell factory or not. By default, it is set to true. Or, it can be read from the property file defined by #gridClassesConfFile. NOte: for the purpose of cell reuse.- Since:
- MicroStrategy Web 9.0.1
-
-
Method Detail
-
setGridCellClass
protected void setGridCellClass(java.util.Properties properties, java.lang.String classKey, java.lang.String defaultClassName)This method initializes the classes used to render headers, titles and metric values by using a property file. These classes are defined under WEB-INF\classes\resources\gridClasses.properties By default, this file contains the following values:colHeader=com.microstrategy.web.app.transforms.ReportGridCellColHeaderImpl rowHeader=com.microstrategy.web.app.transforms.ReportGridCellRowHeaderImpl colTitle=com.microstrategy.web.app.transforms.ReportGridCellColTitleImpl rowTitle=com.microstrategy.web.app.transforms.ReportGridCellRowTitleImpl metricValue=com.microstrategy.web.app.transforms.ReportGridCellMetricValueImpl displayCell=com.microstrategy.web.app.transforms.ReportGridDisplayCellImpl- Since:
- MicroStrategy Web 7.5.1
-
setGridCellClass
protected void setGridCellClass(java.lang.String classKey, java.lang.String className)This method initializes the classes used to render headers, titles and metric values.
These classes are defined under WEB-INF\classes\resources\gridClasses.properties By default, this file contains the following values:colHeader=com.microstrategy.web.app.transforms.ReportGridCellColHeaderImpl rowHeader=com.microstrategy.web.app.transforms.ReportGridCellRowHeaderImpl colTitle=com.microstrategy.web.app.transforms.ReportGridCellColTitleImpl rowTitle=com.microstrategy.web.app.transforms.ReportGridCellRowTitleImpl metricValue=com.microstrategy.web.app.transforms.ReportGridCellMetricValueImpl displayCell=com.microstrategy.web.app.transforms.ReportGridDisplayCellImpl
This method is used as shown below:setGridCellClass(properties, COL_HEADER, COL_HEADER_CLASS);whereCOL_HEADERis a constant that defines a column header andCOL_HEADER_CLASSdefines the actual name of the implementation class (com.microstrategy.web.app.transforms.ReportGridCellColHeaderImpl) Developers can use this method to set their own implementation classes. For example://Initialize the HashMap with the name of the classes. initGridCellClasses(); //Set the class to be used for the different elements of a grid setGridCellClass(COL_HEADER, "com.microstrategy.web.app.transforms.MyReportGridCellColHeaderImpl"); setGridCellClass(ROW_HEADER, "com.microstrategy.web.app.transforms.MyReportGridCellRowHeaderImpl"); setGridCellClass(COL_TITLE, "com.microstrategy.web.app.transforms.MyReportGridCellColTitleImpl"); setGridCellClass(ROW_TITLE, "com.microstrategy.web.app.transforms.MyReportGridCellRowTitleImpl"); setGridCellClass(METRIC_VALUE, "com.microstrategy.web.app.transforms.MyReportGridCellMetricValueImpl"); setGridCellClass(DISPLAY_CELL, "com.microstrategy.web.app.transforms.MyReportGridCellDisplayCellImpl");- Parameters:
classKey- one of the following:- COL_HEADER
- ROW_HEADER
- COL_TITLE
- ROW_TITLE
- METRIC_VALUE
- DISPLAY_CELL
className- a fully qualified class name.- Since:
- MicroStrategy Web 7.5.1
-
initializeTransform
public void initializeTransform(Transformable data)
ExtendsinitializeTransformby initiliazing the grid cell classes by callinginitializeCellClasses- Specified by:
initializeTransformin interfaceAppTransform- Overrides:
initializeTransformin classAbstractReportDataTransform- Parameters:
data-- Since:
- MicroStrategy Web 7.5.1
-
initGridCellClasses
protected void initGridCellClasses()
Deprecated.This method is deprecated and will be removed in future versions of the product.
It's not invoked anymore by the Transform, and calling it has no effect.- Since:
- MicroStrategy Web 7.5.1
-
initializeCellClasses
protected void initializeCellClasses()
Reads the configuration with the cell classes and caches its content, then it callssetGridCellClassfor each different cell type.- Since:
- MicroStrategy Web 7.5.1
-
initializeImages
public void initializeImages()
Description copied from class:AbstractReportTransforminitialize the images for the transform.- Overrides:
initializeImagesin classAbstractReportDataTransform
-
initializeProperties
public void initializeProperties()
Description copied from class:AbstractReportDataTransformExtendsinitializePropertiesby invokinginitializeTranformContext- Overrides:
initializePropertiesin classAbstractReportDataTransform
-
isDragAndDropEnabled
protected boolean isDragAndDropEnabled()
Deprecated.Please query directly theisDragAndDropEnabledformal parameter insteadwhether drag and drop feature is enabled.- Returns:
- whether drag and drop feature is enabled
-
isContextMenuEnabled
protected boolean isContextMenuEnabled()
Deprecated.Please query directly theisContextMenuEnabledformal parameter insteadwhether context menu feature is enabled.- Returns:
- whether context menu feature is enabled
-
showPivot
protected boolean showPivot()
Deprecated.Please query directly theshowPivotParaformal parameter insteadwhether to display the pivot buttons.- Returns:
- whether to display the pivot buttons
-
getDesignMode
protected int getDesignMode()
Deprecated.- use isDesignMode insteadget the design mode of the report.- Returns:
EnumReportViewModesvalue
-
showRemove
protected boolean showRemove()
Deprecated.Please query directly theshowRemoveParaformal parameter insteadwhether to display the remove buttons.- Returns:
- whether to display the remove buttons
-
showRemoveRMC
protected boolean showRemoveRMC()
Deprecated.Please query directly theshowRemoveRMCformal parameter insteadwhether to display the remove RMC (right mouse click context menu).- Returns:
- whether to display the remove RMC (right mouse click context menu)
-
showRenameRMC
protected boolean showRenameRMC()
Deprecated.Please query directly theshowRenameRMCformal parameter insteadwhether to display the rename RMC (right mouse click context menu).- Returns:
- whether to display the rename RMC (right mouse click context menu)
-
showFormattingRMC
protected boolean showFormattingRMC()
Deprecated.Please query directly theshowFormattingRMCformal parameter insteadwhether to display the formatting RMC (right mouse click context menu).- Returns:
- whether to display the formatting RMC (right mouse click context menu)
-
showPivotRMC
protected boolean showPivotRMC()
Deprecated.Please query directly theshowPivotRMCformal parameter insteadwhether to display the pivot RMC (right mouse click context menu).- Returns:
- whether to display the pivot RMC (right mouse click context menu)
-
getCssPrefix
protected java.lang.String getCssPrefix()
Get the prefix for the css class name.- Overrides:
getCssPrefixin classAbstractAppTransform- Returns:
- the prefix for the css class name
-
generateJavaScriptForDragAndDrop
protected void generateJavaScriptForDragAndDrop(MarkupOutput out, ReportBean rb)
Deprecated.This method has been deprecated and will be removed in future versions of the product.Generates the javascript used to initialize the drilling when using incremental fetch.- Parameters:
out- MarkupOutput to generate the HTML.rb- ReportBean being transformed (ignored, always uses the bean passed to theinitializeTransformmethod).
-
getGridCell
protected ReportGridDisplayCell getGridCell(java.lang.String className)
Get the cell instance for the given cell class name. Note: This method has been refactored since 9.0.1 for the purpose of cell reuse.- Since:
- MicroStrategy Web 7.5.1
-
getGridGenericCell
protected ReportGridCell getGridGenericCell()
- Since:
- MicroStrategy Web 7.5.2
-
getGridCellColHeader
protected ReportGridCellColHeader getGridCellColHeader()
- Since:
- MicroStrategy Web 7.5.1
-
getGridCellRowHeader
protected ReportGridCellRowHeader getGridCellRowHeader()
- Since:
- MicroStrategy Web 7.5.1
-
getGridCellColTitle
protected ReportGridCellColTitle getGridCellColTitle()
- Since:
- MicroStrategy Web 7.5.1
-
getGridCellRowTitle
protected ReportGridCellRowTitle getGridCellRowTitle()
- Since:
- MicroStrategy Web 7.5.1
-
getGridCellMetricValue
protected ReportGridCellMetricValue getGridCellMetricValue()
- Since:
- MicroStrategy Web 7.5.1
-
isGridTransform
protected boolean isGridTransform()
- Specified by:
isGridTransformin classAbstractReportDataTransform- Since:
- MicroStrategy Web 8.1.0
-
isGraphTransform
protected boolean isGraphTransform()
- Specified by:
isGraphTransformin classAbstractReportDataTransform- Since:
- MicroStrategy Web 8.1.0
-
-