Class ReportGridCellMetricValueImpl
- java.lang.Object
-
- com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
-
- com.microstrategy.web.app.transforms.ReportGridCellMetricValueImpl
-
- All Implemented Interfaces:
ReportGridCellMetricValue,ReportGridDisplayCell,java.lang.Cloneable
- Direct Known Subclasses:
IPhoneReportGridCellMetricValueImpl,ReportGridExcelCellMetricValueImpl
public class ReportGridCellMetricValueImpl extends AbstractReportGridDisplayCell implements ReportGridCellMetricValue
The
ReportGridCellMetricValueis used to generate the HTML of a cell value of the report data.It uses a
WebRowValueas the underlyingSDKobjects to retrieve the information from.The
ReportGridCellColTitleImplextends theAbstractReportGridDisplayCellwhich controls the exeuction flow.Users who intend to programatically modify the HTML generated for a metric value should extend this class. Using this technique developers could define their own rules of the text to display based on the
The following is an example of a class that extends theWebTitlecontent.generateText(com.microstrategy.web.beans.MarkupOutput)method of this class based on the title's template unit type:public class CustomMetricValueextends ReportGridCellMetricValueImpl { public void generateText(MarkupOutput mo) { WebRowValue rowValue = getWebRowValue(); if (rowValue != null) { String spanPrefix = ""; String spanPostfix = ""; switch (rowValue.getSemantics()) { case EnumDSSXMLBaseFormType.DssXmlBaseFormPicture: case EnumDSSXMLBaseFormType.DssXmlBaseFormUrl: //For threshold images Tag imgTag = TagsFactory.getInstance().newTag("img"); imgTag.setAttribute(EnumHTMLTags.ATT_SRC, rowValue.getValue()); imgTag.render(mo); break; case EnumDSSXMLBaseFormType.DssXmlBaseFormSymbol: //For thresholds quick symbols generateThresholdSymbol(mo, Integer.parseInt(rowValue.getValue())); break; case EnumDSSXMLBaseFormType.DssXmlBaseFormHTMLTag: mo.append(HTMLHelper.decode(rowValue.getValue())); break; default: super.generateText(mo); } } else { super.generateText(mo); }- Since:
- MicroStrategy Web 7.5.1
- See Also:
ReportGridDisplayCell,ReportGridTransformImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
AbstractReportGridDisplayCell.Context, AbstractReportGridDisplayCell.PivotButtonInfo
-
Nested classes/interfaces inherited from interface com.microstrategy.web.app.transforms.ReportGridDisplayCell
ReportGridDisplayCell.Context
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
_advDrillEditorProcessEvent, _advdrillEvent, _appliedColSorts, _appliedSorts, _blankDrillAnchorTag, _cachedObjects, _drillEditorName, _drillEditorProcessEvent, _drillEvent, _drillFilterOnSelectionProcessEvent, _imgBasePath, _isIFrameRequest, _isNetscape, _isWrapHeaderText, _itemsAddedToContextMenu, _maxColHeaderDepth, _pivotImgHeight, _pivotImgWidth, _sharedCellProperties, _sortEvent, _sortImgHeight, _sortImgWidth, _sortSubtotalColPosition, _sortSubtotalPosition, _sortSubtotalPostion, _specifyIDForCell, _specifyWidthForCell, _text, _typicalURLBeanState, DISPLAY_CELL_CLASS, formalParas, NO, rb, RETAIN_PARENT_FORMAL_PARAMETER, RETAIN_THRESHOLDS_FORMAL_PARAMETER, YES
-
Fields inherited from interface com.microstrategy.web.app.transforms.ReportGridDisplayCell
PIVOT_DECREASE_POSITION, PIVOT_INCREASE_POSITION, PIVOT_REMOVE, PIVOT_SWITCH_AXIS, PIVOT_TO_PAGE_BY
-
-
Constructor Summary
Constructors Constructor Description ReportGridCellMetricValueImpl()Constructor used for creating a generic display cell.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddContextMenuAttributes(java.util.Map atts)Obtain the tag attributes that should be added to the cell's definition for processing context menusprotected voidaddToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)protected voidappendContextMenuItems(ContextMenu rhMenu)Deprecated.Please use the new approach for generating context menus, seeReportCellRemoveFromGrid,ReportCellMove, etcbooleancanDrill()Utility methood for determining if the cell object is enabled for displaying the user the option to drill on itbooleancanDrillAdvanced()Utility methood for determining if the cell object is enabled for displaying the user the option for advanced drilling on itbooleancanFilterOn()Utility methood for determining if the cell object is enabled for displaying the user the option to filter on itbooleancanFormat()Utility methood for determining if the cell object is enabled for displaying the user the option to format itbooleancanHaveDerivedElements()booleancanHyperLink()Utility method for determining if the cell object is enabled for displaying the user the option to navigate to custom hyperlinksbooleancanInsertShortcutMetric()Utility methood for determining if the cell object is enabled for displaying the user the option to insert shortcut metrics based on itbooleancanModifyAttributeForm()Utility methood for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on itbooleancanPivot()Utility methood for determining if the cell object is enabled for displaying the user the option to pivot itbooleancanRemoveFromGrid()Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the grid.booleancanRemoveFromReport()Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the reportbooleancanRename()Utility methood for determining if the cell object is enabled for displaying the user the option to rename itbooleancanSort()Utility methood for determining if the cell object is enabled for displaying the user the option to sort itprotected booleancellNeedsLink()Utility method for determining if the current cell being displayed needs to be a link or not, for example, in case of drilling available.protected booleanencodeMetricValue()Whether to HTML-encode metric values (based on the preference value)protected voidgenerateContent(MarkupOutput mo)ExtendsgenerateContentby adding a URL link to the cell's text.protected AnchorTaggenerateDrillAnchor()Utility method for generating theAnchorTaginstance with all the drill information if available for the current cell being displayed by this instance.protected AnchorTaggenerateHyperLinkAnchor()protected TaggeneratePivotButton(int type)voidgenerateText(MarkupOutput mo)Generates the text of the cell.protected voidgenerateThresholdSymbol(MarkupOutput out, int thresholdValue)Generates the HTML when the metric value is a "quick symbol" threshold.protected java.lang.StringgenerateTooltipContent()Generates the string with the tooltip information to be assigned to the TITLE attribute of the cell tag for this instanceprotected voidgetCellAttributes(java.util.Map attributes)protected voidgetCellLevelAttributes(java.util.Map cell)CTY indicates the cell type UTP indicates the template unit that it belongs to, in the format of "axis,position"intgetCellType()Returns the cell type, a value from theEnumReportGridDisplayCellTypesenumeration.WebEventgetDerivedElementsEvent()WebDrillPathgetDrillPathWithHighImportance()generate drilling url parameters for row value in DHTML modeWebEventgetFilterOnEvent()Get the event for filter on the cell header instanceintgetKey()protected java.lang.StringgetParentElementIndex()protected java.lang.StringgetParentFormValueIndex()WebEventgetRenameEvent()Get the event for renaming the current cellprotected java.lang.StringgetRowValueForURL()Returns the value of the current row.protected java.lang.StringgetSortID()This method return the ID to use for sorting this cell.java.lang.StringgetStyle()Returns the css class name associated with the cell as registered by the Transform.WebRowValuegetWebRowValue()Returns the underlyingSDKobject associated with this cell.WebTemplateMetricgetWebTemplateMetric()return the WebTemplateMetric object associated with this cellprotected booleanhasWebObject()This method allows the abstract class to identify whether the cell has been initialized with a valid WebObject.voidinit(TransformContext context, WebRowValue rowValue)This method is called to initialize the cell with the correspondingWebRowValueas the underlying SDK objectvoidinit(WebComponent wc, WebRowValue rowValue, java.util.HashMap cachedObjects)Deprecated.please use the interface that receivesTransformContextinstance instead.voidinit(WebComponent wc, WebTemplateMetric metric, FormalParameters formalParas)Deprecated.please use the interface that receivesTransformContextinstance instead.voidinit(WebComponent wc, FormalParameters formalParas)Deprecated.This method is not used by the Transform anymore.voidinit(FormalParameters formalParas)Deprecated.This method is not used by the Transform anymore.protected voidinitCell()Initialize the cell title informationprotected voidinitDNDForDesignMode(DragAndDropItem item)This method initializes properties used in javascript for drag and drop in design mode.protected voidinitDNDForExecuteMode(DragAndDropItem item)This method initializes properties used in javascript for drag and drop in view mode.protected voidinitRowValueInformation(WebRowValue rowValue)protected booleanisDrillPathAvailable(WebRowValue rowValue)Utility method to determine if the current row value has drill information availableprotected booleanisHeaderMVJsonMovable()protected voidrenderContextMenu(MarkupOutput mo)Deprecated.voidreset()Reset all of the instance variables.-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
addContextMenuAttributes, addDragAndDropAttributes, addExtraAttribute, addTooltipAttributes, addToStyle, buildGenericTooltipInformation, canAddThresholds, canDefineDerivedElements, canEditControl, canEditMetricFilter, canFilterOnSelection, canMetricFilterOn, canOpenAlerts, canPivot, canQuickGroup, canUse, checkOwnerAndPrivilgeForHTMLExecution, clone, convertNonbreakingSpaceOnMV, decodeEuro, encodeMV, generateAnchor, generateContextMenu, generateDragAndDrop, generateDragAndDropAttributes, generateDrillCheckBox, generateDrillCheckBox, generateDrillCheckBox, generateDrillCheckBoxTag, generateDrillContextMenu, generateDrillOpenLink, generateDrillOpenLink, generateFilterOnSelectionCheckBox, generateFilterOnSelectionCheckBox, generateFilterOnSelectionCheckBox, generateFilterOnSelectionCheckBoxTag, generateHeaderDrillContextMenu, generateHeaderDrillContextMenu, generateHeaderSortContextMenu, generateHeaderSortContextMenu, generateInnerHTML, generateOutlineModeImage, generateOutlineSubTotalName, generateOutput, generatePivotButtons, generatePostContent, generatePreContent, generateRowValueDrillContextMenu, generateRowValueDrillContextMenu, generateSortButton, generateSortButton, generateSortContextMenu, generateThresholdSymbol, generateTitleDrillContextMenu, generateTitleDrillContextMenu, generateTitleSortContextMenu, generateTitleSortContextMenu, generateTooltip, generateTooltipForHeaders, generateTooltipForRowValue, generateTooltipForTitles, getAccessibilityInfo, getBaseBean, getCellColor, getCellID, getColHeaderWebMetric, getColSpan, getContext, getContext, getContextMenu, getContextMenu, getContextMenuAttributes, getContextMenuAttributes, getContextMenuManager, getControlElementSelectorEvent, getCssPrefix, getDefaultAdvancedDrillEvent, getDefaultAdvancedDrillProcessEvent, getDefaultDrillEditorProcessEvent, getDefaultDrillEvent, getDefaultDrillEvent, getDefaultDrillFilterOnSelectionEvent, getDefaultSortEvent, getDerivedElementsEvent, getDescription, getDescriptor, getDescriptor, getDrillEvent, getDrillKey, getDrillParametersForDHTML, getDrillPath, getDrillpathKey, getDrillPathKey, getDrillpathKeyInOldFormat, getEventManager, getExtraInfo, getExtraStyle, getExtraUrl, getFilterOnEvent, getFPIntValue, getFPStringValue, getGridCell, getHeaderContent, getHeaderDrillParametersForDHTML, getHeaderDrillParametersForDHTML, getHeaderDrillPathWithHighImportance, getHeaderDrillPathWithHighImportance, getHeaderDrillURL, getHeaderDrillURL, getImgName, getMaxColHeaderDepth, getMaxSortAllowed, getNearestNonMetricRowHeader, getOpenFormatEditorEvent, getPostTextForMetricValue, getPostTextForNonMetricValue, getPreTextForMetricValue, getPreTextForNonMetricValue, getRenameEvent, getReportBean, getReportDesignMode, getReportGridTransform, getRowSpan, getRowValueDrillElements, getRowValueDrillParametersForDHTML, getRowValueDrillParametersForDHTML, getRowValueDrillPathWithHighImportance, getRowValueDrillPathWithHighImportance, getRowValueDrillURL, getRowValueDrillURL, getRWDDrillOutEvent, getSelectorEvent, getSetFormatEditorTargetEvent, getShowDescriptionAsTooltip, getSortAscendingEvent, getSortDescendingEvent, getSortEvent, getSortEventByAxis, getSortEventByAxisBySortOrder, getSortStatus, getStyleForNonBuiltInFormat, getSubTitle, getSubtitleIndex, getTargetKeys, getText, getTitleDrillParametersForDHTML, getTitleDrillParametersForDHTML, getTitleDrillURL, getTitleDrillURL, getTooltip, getViewBean, getWidth, groupContextMenuDrillPathsByType, hasDrillPathsWithHighImportanceAvailable, hasMetricFilterCondition, init, init, initDragAndDrop, isAccessibilityMode, isContextMenuEnabled, isContextMenusEnabled, isDerivedMetric, isDesignMode, isDhtml, isDragAndDropEnabled, isFeatureAvailable, isFPTrue, isFPTrue, isHeaderNeedLink, isHTMLExecutionAllowed, isIframeEnabled, isIFrameEnabled, isIframeRequest, isIFrameRequest, isItemsAddedToContextMenu, isMetric, isMetricDrillable, isOutlineModeEnabled, isRemoveAvailable, isRowValueNeedLink, isRW, isSortAscending, isTitleNeedLink, newContext, newNamespaceEncoder, renderPivotButtons, setAccessibilityInfo, setArgumentFromFormalParameter, setCellColor, setCellID, setCellType, setColSpan, setContent, setContextMenu, setDescription, setDrillPath, setExtraInfo, setExtraStyle, setExtraStyle, setExtraUrl, setHTML, setInnerHTML, setPostContent, setPreContent, setRowSpan, setStyle, setStyleForNonBuiltInFormat, setSubTitle, setSubTitleIndex, setText, setTooltip, setWidth, shouldHiliteOnServer, showAdvancedDrillingOptionsInContextMenu, showBanding, showDrillAdvanced, showDrillCheckBox, showDrillDownOnly, showDrillHyperlink, showDrillHyperlinkMetric, showDrillMetric, showDrillPathSetNamesSubMenuAtTopLevel, showDrillRMC, showDrillRMCMetric, showExtraRemoveRMC, showFilterOnSelectionCheckBox, showFormattingRMC, showPivot, showPivotRMC, showRemove, showRemoveFromReport, showRemoveFromReport, showRemoveRMC, showRenameRMC, showSortButtonsForAttributes, showSortButtonsForMetrics, showSortRMCForAttributes, showSortRMCForMetrics, showSubtitle, showSubTitle, sortSetNamesAndDrillPaths, useBuiltInFormat
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.app.transforms.ReportGridDisplayCell
addExtraAttribute, canAddThresholds, canEditControl, canEditMetricFilter, canFilterOnSelection, canMetricFilterOn, canOpenAlerts, canPivot, canQuickGroup, generateOutput, getAccessibilityInfo, getCellID, getColSpan, getControlElementSelectorEvent, getDrillEvent, getExtraInfo, getExtraStyle, getHeaderContent, getOpenFormatEditorEvent, getRowSpan, getSetFormatEditorTargetEvent, getText, getTooltip, getWidth, init, init, isRW, setAccessibilityInfo, setCellID, setColSpan, setContent, setContextMenu, setExtraInfo, setExtraStyle, setExtraStyle, setHTML, setInnerHTML, setPostContent, setPreContent, setRowSpan, setStyle, setText, setTooltip, setWidth
-
-
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:ReportGridDisplayCellReset all of the instance variables. This method is very important when improve the memory performance: we create only one instance for a particular cell type and reuse it instead of creating a new instance for each concrete grid cell. Therefore, it saves a lot of memory. For implementation of this method, please follow the workflow of how all the instance variables are initialized in the class hierarchy when a new instance is created: superclass instance variables are initialized first, subclass instance variables are initialized second. Note: for the purpose of cell reuse.- Specified by:
resetin interfaceReportGridDisplayCell- Overrides:
resetin classAbstractReportGridDisplayCell
-
getCellType
public int getCellType()
Description copied from class:AbstractReportGridDisplayCellReturns the cell type, a value from theEnumReportGridDisplayCellTypesenumeration.- Specified by:
getCellTypein interfaceReportGridDisplayCell- Overrides:
getCellTypein classAbstractReportGridDisplayCell
-
getWebRowValue
public WebRowValue getWebRowValue()
Description copied from interface:ReportGridCellMetricValueReturns the underlyingSDKobject associated with this cell. It should always returnnullif the instance represents an empty cell.- Specified by:
getWebRowValuein interfaceReportGridCellMetricValue- Returns:
- The underlying SDK object.
- Since:
- MicroStrategy Web 8.0.0
-
initCell
protected void initCell()
Description copied from class:AbstractReportGridDisplayCellInitialize the cell title information- Overrides:
initCellin classAbstractReportGridDisplayCell
-
init
@Deprecated public void init(FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore. To initialize empty cells it now usesAbstractReportGridDisplayCell.init(TransformContext).Description copied from interface:ReportGridDisplayCellInitializes anReportGridDisplayCell. This is used to initialize empty cells that have no underlyingWebObject.- Specified by:
initin interfaceReportGridDisplayCell- Overrides:
initin classAbstractReportGridDisplayCell- Parameters:
formalParas- all the formal parameters from the report transform. Used to control some output generation.
-
init
@Deprecated public void init(WebComponent wc, FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore. To initialize empty cells it now usesAbstractReportGridDisplayCell.init(TransformContext).Description copied from interface:ReportGridDisplayCellInitializes anReportGridDisplayCell. This is used to initialize empty cells that have no underlyingWebObject.- Specified by:
initin interfaceReportGridDisplayCell- Overrides:
initin classAbstractReportGridDisplayCell- Parameters:
wc- associated web componentformalParas- all the formal parameters from the report transform. Used to control some output generation.- Since:
- MicroStrategy Web 8.0.0
-
init
@Deprecated public void init(WebComponent wc, WebTemplateMetric metric, FormalParameters formalParas)
Deprecated.please use the interface that receivesTransformContextinstance instead.- Specified by:
initin interfaceReportGridCellMetricValue- Since:
- MicroStrategy Web 7.5.2
-
init
public void init(TransformContext context, WebRowValue rowValue)
Description copied from interface:ReportGridCellMetricValueThis method is called to initialize the cell with the correspondingWebRowValueas the underlying SDK object- Specified by:
initin interfaceReportGridCellMetricValue- Parameters:
context-TransformContextinstance initialized with the grid's transform information.rowValue-WebRowValueinstance corresponding to the cell to be displayed.- Since:
- MicroStrategy Web 8.0.1
-
encodeMetricValue
protected boolean encodeMetricValue()
Whether to HTML-encode metric values (based on the preference value)- Returns:
- Whether to HTML-encode metric values.
- Since:
- MicroStrategy Web 9.0.0
-
initRowValueInformation
protected void initRowValueInformation(WebRowValue rowValue)
- Since:
- MicroStrategy Web 8.0.1
-
getParentElementIndex
protected java.lang.String getParentElementIndex()
- Returns:
- the parent element index based on the WebHeader, null if
canHyperLink()returns false
-
getParentFormValueIndex
protected java.lang.String getParentFormValueIndex()
- Returns:
- the parent element index based on the WebHeader, null if
canHyperLink()returns false
-
canHyperLink
public boolean canHyperLink()
Description copied from interface:ReportGridDisplayCellUtility method for determining if the cell object is enabled for displaying the user the option to navigate to custom hyperlinks- Specified by:
canHyperLinkin interfaceReportGridDisplayCell- Overrides:
canHyperLinkin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.1.2
-
init
@Deprecated public void init(WebComponent wc, WebRowValue rowValue, java.util.HashMap cachedObjects)
Deprecated.please use the interface that receivesTransformContextinstance instead.Description copied from interface:ReportGridCellMetricValueThis method is called to initialize the cell with the correspondingWebRowValueas the underlying SDK object.- Specified by:
initin interfaceReportGridCellMetricValue- Parameters:
wc- The bean being transformed.rowValue- TheWebRowValuecorresponding to this cell.cachedObjects- AHashMappopulated by the transform and used to store information shared across multiple cells.- Since:
- MicroStrategy Web 7.5.2
-
generateContent
protected void generateContent(MarkupOutput mo)
ExtendsgenerateContentby adding a URL link to the cell's text.Developers can either use the
AbstractReportGridDisplayCell.setContent(java.lang.String)method to set any text they want to display as the cell's contents or override this method to inherit its functionality and build on top of it.As an example, the following code could be used to extend this method to add a <BR> tag after cell's content:
public void generateContent(MarkupOutput mo) { super.generateContent(mo); mo.append("<br>"); }- Overrides:
generateContentin classAbstractReportGridDisplayCell- Parameters:
mo- the output object
-
getWebTemplateMetric
public WebTemplateMetric getWebTemplateMetric()
Description copied from interface:ReportGridCellMetricValuereturn the WebTemplateMetric object associated with this cell- Specified by:
getWebTemplateMetricin interfaceReportGridCellMetricValue- Returns:
- the WebTemplateMetric object
-
generateHyperLinkAnchor
protected AnchorTag generateHyperLinkAnchor()
- Since:
- MicroStrategy Web 8.1.2
-
generateDrillAnchor
protected AnchorTag generateDrillAnchor()
Utility method for generating theAnchorTaginstance with all the drill information if available for the current cell being displayed by this instance.- Returns:
AnchorTaginstance initialized with the drill details. If drilling is not supported given the information provided, it will returnnull- Since:
- MicroStrategy Web 8.0.1
-
getStyle
public java.lang.String getStyle()
Description copied from class:AbstractReportGridDisplayCellReturns the css class name associated with the cell as registered by the Transform.
If set, this is the one assigned to theCLASSattribute of theTDtag to control its formatting.- Specified by:
getStylein interfaceReportGridDisplayCell- Overrides:
getStylein classAbstractReportGridDisplayCell- Returns:
- The css class name as registered by the Transform.
- Since:
- MicroStrategy Web 8.1.1
-
getRowValueForURL
protected java.lang.String getRowValueForURL()
Returns the value of the current row.- Returns:
- String
-
generateText
public void generateText(MarkupOutput mo)
Description copied from class:AbstractReportGridDisplayCellGenerates the text of the cell. This is the the text that gets displayed by the browser.
Developers can either use the
For example, the following code could be used to extend this method to render a hyphen if the cell content is empty:AbstractReportGridDisplayCell.setText(java.lang.String)method to set any text they want to display for the cell or override this method to inherit its functionality and build on top of it.
public void generateText(MarkupOutput mo) { String text = getText(); if ("".equals(text) || " ".equals(text)) { mo.append("-"); } else { super.generateText(mo); } }- Overrides:
generateTextin classAbstractReportGridDisplayCell- Parameters:
mo- the output object
-
generateTooltipContent
protected java.lang.String generateTooltipContent()
Generates the string with the tooltip information to be assigned to the TITLE attribute of the cell tag for this instance- Overrides:
generateTooltipContentin classAbstractReportGridDisplayCell- Returns:
- String with the information about the tooltip to render for the current cell.
- Since:
- MicroStrategy Web 8.0.1
-
initDNDForDesignMode
protected void initDNDForDesignMode(DragAndDropItem item)
Description copied from class:AbstractReportGridDisplayCellThis method initializes properties used in javascript for drag and drop in design mode.- Overrides:
initDNDForDesignModein classAbstractReportGridDisplayCell- Parameters:
item- DragAndDropItem
-
initDNDForExecuteMode
protected void initDNDForExecuteMode(DragAndDropItem item)
Description copied from class:AbstractReportGridDisplayCellThis method initializes properties used in javascript for drag and drop in view mode.- Overrides:
initDNDForExecuteModein classAbstractReportGridDisplayCell- Parameters:
item- DragAndDropItem
-
generateThresholdSymbol
protected void generateThresholdSymbol(MarkupOutput out, int thresholdValue)
Generates the HTML when the metric value is a "quick symbol" threshold.- Parameters:
out- the output objectthresholdValue- the threshold id. A value fromEnumDSSXMLSymbol.
-
canDrillAdvanced
public boolean canDrillAdvanced()
Utility methood for determining if the cell object is enabled for displaying the user the option for advanced drilling on it- Specified by:
canDrillAdvancedin interfaceReportGridDisplayCell- Overrides:
canDrillAdvancedin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
appendContextMenuItems
@Deprecated protected void appendContextMenuItems(ContextMenu rhMenu)
Deprecated.Please use the new approach for generating context menus, seeReportCellRemoveFromGrid,ReportCellMove, etc- Overrides:
appendContextMenuItemsin classAbstractReportGridDisplayCell- Since:
- MicroStrategy Web 8.0.0
- See Also:
AbstractAppTransform.contextMenus
-
addContextMenuAttributes
protected void addContextMenuAttributes(java.util.Map atts)
Obtain the tag attributes that should be added to the cell's definition for processing context menus- Overrides:
addContextMenuAttributesin classAbstractReportGridDisplayCell- Parameters:
atts-Mapwhere attributes will be appended.- Since:
- MicroStrategy Web 8.1.0
-
getCellAttributes
protected void getCellAttributes(java.util.Map attributes)
- Overrides:
getCellAttributesin classAbstractReportGridDisplayCell
-
isHeaderMVJsonMovable
protected boolean isHeaderMVJsonMovable()
- Overrides:
isHeaderMVJsonMovablein classAbstractReportGridDisplayCell
-
addToHeaderMetricValueJsonMap
protected void addToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)- Overrides:
addToHeaderMetricValueJsonMapin classAbstractReportGridDisplayCell
-
getCellLevelAttributes
protected void getCellLevelAttributes(java.util.Map cell)
CTY indicates the cell type UTP indicates the template unit that it belongs to, in the format of "axis,position"- Overrides:
getCellLevelAttributesin classAbstractReportGridDisplayCell- Since:
- MicroStrategy Web 9.0.0
-
renderContextMenu
@Deprecated protected void renderContextMenu(MarkupOutput mo)
Deprecated.Description copied from class:AbstractReportGridDisplayCellRender the context menu's trigger for this cell.- Overrides:
renderContextMenuin classAbstractReportGridDisplayCell- Parameters:
mo- the output object- Since:
- MicroStrategy Web 8.0.0
-
isDrillPathAvailable
protected boolean isDrillPathAvailable(WebRowValue rowValue)
Utility method to determine if the current row value has drill information available- Parameters:
rowValue- valueWebRowValueinstance to analyze- Returns:
- boolean value indicating if there is drill path information available or not, for the specified title.
-
cellNeedsLink
protected boolean cellNeedsLink()
Description copied from class:AbstractReportGridDisplayCellUtility method for determining if the current cell being displayed needs to be a link or not, for example, in case of drilling available.- Overrides:
cellNeedsLinkin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the current cell should be displayed as a link.
- Since:
- MicroStrategy Web 8.0.1
-
getSortID
protected java.lang.String getSortID()
Description copied from class:AbstractReportGridDisplayCellThis method return the ID to use for sorting this cell.- Specified by:
getSortIDin classAbstractReportGridDisplayCell- Returns:
- The ID to use for sorting this cell.
- Since:
- MicroStrategy Web 8.0.0
-
hasWebObject
protected boolean hasWebObject()
Description copied from class:AbstractReportGridDisplayCellThis method allows the abstract class to identify whether the cell has been initialized with a valid WebObject. Some cells are created empty (with no underlying web object), they usually represent empty cells (like the ones used in design mode for metric values or row headers); in these cases some functionality needs to be disabled (liek context-menus or dnd), this method allow us to identify these cells.- Specified by:
hasWebObjectin classAbstractReportGridDisplayCell- Returns:
- true if the cell has underlying
WebObject. - Since:
- MicroStrategy Web 8.0.0
-
getDrillPathWithHighImportance
public WebDrillPath getDrillPathWithHighImportance()
generate drilling url parameters for row value in DHTML mode- Specified by:
getDrillPathWithHighImportancein interfaceReportGridDisplayCell- Overrides:
getDrillPathWithHighImportancein classAbstractReportGridDisplayCell- Returns:
- The drill path with high importance
- Since:
- MicroStrategy Web 8.0.1
-
canRemoveFromGrid
public boolean canRemoveFromGrid()
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the grid.- Specified by:
canRemoveFromGridin interfaceReportGridDisplayCell- Overrides:
canRemoveFromGridin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canRemoveFromReport
public boolean canRemoveFromReport()
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the report- Specified by:
canRemoveFromReportin interfaceReportGridDisplayCell- Overrides:
canRemoveFromReportin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canRename
public boolean canRename()
Utility methood for determining if the cell object is enabled for displaying the user the option to rename it- Specified by:
canRenamein interfaceReportGridDisplayCell- Overrides:
canRenamein classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canFilterOn
public boolean canFilterOn()
Utility methood for determining if the cell object is enabled for displaying the user the option to filter on it- Specified by:
canFilterOnin interfaceReportGridDisplayCell- Overrides:
canFilterOnin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canFormat
public boolean canFormat()
Utility methood for determining if the cell object is enabled for displaying the user the option to format it- Specified by:
canFormatin interfaceReportGridDisplayCell- Overrides:
canFormatin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canHaveDerivedElements
public boolean canHaveDerivedElements()
- Specified by:
canHaveDerivedElementsin interfaceReportGridDisplayCell- Since:
- MicroStrategy Web 9.0.0
-
canSort
public boolean canSort()
Utility methood for determining if the cell object is enabled for displaying the user the option to sort it- Specified by:
canSortin interfaceReportGridDisplayCell- Overrides:
canSortin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canDrill
public boolean canDrill()
Utility methood for determining if the cell object is enabled for displaying the user the option to drill on it- Specified by:
canDrillin interfaceReportGridDisplayCell- Overrides:
canDrillin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canInsertShortcutMetric
public boolean canInsertShortcutMetric()
Utility methood for determining if the cell object is enabled for displaying the user the option to insert shortcut metrics based on it- Specified by:
canInsertShortcutMetricin interfaceReportGridDisplayCell- Overrides:
canInsertShortcutMetricin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canPivot
public boolean canPivot()
Utility methood for determining if the cell object is enabled for displaying the user the option to pivot it- Specified by:
canPivotin interfaceReportGridDisplayCell- Overrides:
canPivotin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canModifyAttributeForm
public boolean canModifyAttributeForm()
Utility methood for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on it- Specified by:
canModifyAttributeFormin interfaceReportGridDisplayCell- Overrides:
canModifyAttributeFormin classAbstractReportGridDisplayCell- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
getDerivedElementsEvent
public WebEvent getDerivedElementsEvent()
- Specified by:
getDerivedElementsEventin interfaceReportGridDisplayCell- Since:
- MicroStrategy Web 9.0.0
-
getFilterOnEvent
public WebEvent getFilterOnEvent()
Description copied from interface:ReportGridDisplayCellGet the event for filter on the cell header instance- Specified by:
getFilterOnEventin interfaceReportGridDisplayCell- Returns:
WebEventinstance initialized for filtering on the information of this cell- Since:
- MicroStrategy Web 9.0.0
-
getKey
public int getKey()
- Specified by:
getKeyin interfaceReportGridDisplayCell- Returns:
- int value with the key information about the cell being analyzed.
- Since:
- MicroStrategy Web 9.0.0
-
getRenameEvent
public WebEvent getRenameEvent()
Description copied from interface:ReportGridDisplayCellGet the event for renaming the current cell- Specified by:
getRenameEventin interfaceReportGridDisplayCell- Returns:
WebEventinstance initialized with the information for renaming the current cell.- Since:
- MicroStrategy Web 9.0.0
-
generatePivotButton
protected Tag generatePivotButton(int type)
- Specified by:
generatePivotButtonin classAbstractReportGridDisplayCell
-
-