Class AbstractReportGridCellHeader
- java.lang.Object
 - 
- com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
 - 
- com.microstrategy.web.app.transforms.AbstractReportGridCellHeader
 
 
 
- 
- All Implemented Interfaces:
 ReportGridCellHeader,ReportGridDisplayCell,java.lang.Cloneable
- Direct Known Subclasses:
 ReportGridCellColHeaderImpl,ReportGridCellRowHeaderImpl
public abstract class AbstractReportGridCellHeader extends AbstractReportGridDisplayCell implements ReportGridCellHeader
This class serves as base implementation for other classes such asReportGridCellColHeaderImplandReportGridCellRowHeaderImplwhich render Cell Header information of a Grid to be presented to the user.- Since:
 - MicroStrategy Web 8.0.1
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractReportGridCellHeader.AxisDepth- 
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 AbstractReportGridCellHeader() 
- 
Method Summary
All Methods Instance Methods Abstract 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 menus Map instance with the attribute context menu informationprotected voidaddToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)booleancanAddThresholds()Utility method for determining if the cell object is enabled for displaying the user the option to add threshold to itbooleancanDrill()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 itbooleancanEditControl()Utility methood for determining if the cell object is enabled for displaying the user the option to edit controlprotected booleancanExpandCollapse()protected booleancanFilter()booleancanFilterOn()Utility methood for determining if the cell object is enabled for displaying the user the option to filter on itbooleancanFilterOnSelection()booleancanFormat()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 hyperlinksprotected booleancanHyperlinkForCurrentHTMLMode()On the OOB implementation this will return true if isDHTML returns true, but subclasses might override it.booleancanMetricFilterOn()Utility method for determining if the cell object is enabled for displaying the user the option to apply a metric filter on itbooleancanModifyAttributeForm()Utility methood for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on itbooleancanOpenAlerts()booleancanQuickGroup()booleancanRemoveFromGrid()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 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 voidgenerateContent(MarkupOutput mo)ExtendsgenerateContentby adding a URL link to the cell's text.protected AnchorTaggenerateControlAnchor()protected AnchorTaggenerateDrillAnchor()Utility method for generating theAnchorTaginstance with all the drill information if available for the current cell being displayed by this instance.protected TaggenerateDrillCheckBoxTag()Generates the tag information for a check box for drilling, if all privileges and conditions required are metprotected AnchorTaggenerateElementAnchor()Utility method for generating theAnchorTaginstance for the element being rendered .protected TaggenerateFilterOnSelectionCheckBoxTag()Generates the tag information for a check box for filter on selection, if all privileges and conditions required are metprotected AnchorTaggenerateHyperLinkAnchor()protected voidgenerateRAPreContent(MarkupOutput mo)protected AnchorTaggenerateStaticHyperLinkAnchor()protected voidgenerateText(MarkupOutput mo)Generate the text of the cellprotected java.lang.StringgenerateTooltipContent()Generates the string with the tooltip information to be assigned to the TITLE attribute of the cell tag for this instanceprotected AbstractReportGridCellHeader.AxisDepthgetAxisDepth()Depth is 1-basedprotected voidgetCellAttributes(java.util.Map attributes)protected voidgetCellLevelAttributes(java.util.Map cell)CTY indicates the cell type UPT indicates the template unit that it belongs to, in the format of "axis,position"WebEventgetDerivedElementsEvent()protected java.lang.StringgetDrillParametersForDHTML(WebDrillPath dp)Returns parameters required for drilling when using javascript for cells that useWebHeaderas their underlyingSDKobject.WebDrillPathgetDrillPathWithHighImportance()generate drilling url parameters for DHTML modeWebEventgetFilterOnEvent()Get the event for filter on the cell header instanceWebEventgetInsertMetricPercentToTotalEvent(int axisBitMap)Get the event for inserting a new metric based on Percent to TotalWebEventgetInsertMetricPercentToTotalEvent(int axisBitMap, java.lang.String attributeID)Get the event for inserting a new metric based on Percent to TotalWebEventgetInsertMetricRankEvent(java.lang.String attributeID, int sortOrder)Get the event for inserting a new metric based on a rankWebEventgetInsertMetricTransformationEvent(java.lang.String transformationID, int formulaType)Get the event for inserting a new metric based on a transformationintgetKey()protected intgetMaxPosition()protected java.lang.StringgetMetricID()protected java.lang.StringgetOnClickAttForDrillPath(WebDrillPath drillPathWithHighImportance)Some subclases wont need the onclick attribute at all, overriding the method and returning null will help on that caseWebEventgetOpenFormatEditorEvent()Get the event for opening the format editor for the requested target.protected java.lang.StringgetParentElementIndex()protected java.lang.StringgetParentFormValueIndex()protected intgetPosition()WebEventgetRenameEvent()Get the event for renaming the current cellprotected WebEventgetSelectorEvent()get the selector Event to gnereate the anchor in HTML modeWebEventgetSetFormatEditorTargetEvent()Get the event for setting the current target of the format editor to be this cell instanceprotected java.lang.StringBuffergetURLBuffer()Deprecated.if the link information for drilling should be modified, please update thegenerateDrillAnchor()method.WebHeadergetWebHeader()Obtain theWebHeaderinstance associated with this classWebTemplateMetricgetWebTemplateMetric()Obtain theWebTemplateMetricinstance directly associated with this classWebTemplateMetricgetWebTemplateMetric(boolean retrieve)Obtain theWebTemplateMetricinstance associated with this classbooleanhasMetricFilterCondition()protected booleanhasRuntimeUnitLimit()voidinit(TransformContext context, WebTemplateMetric metric)This method is called to initialize the cell in design mode.voidinit(WebComponent wc, WebTemplateMetric metric, java.util.HashMap cachedObjects)Deprecated.use theinit(TransformContext, WebTemplateMetric)interface insteadbooleanisDerivedMetric()protected abstract booleanisDrillAvailable()protected abstract booleanisDrillPathAvailable(WebHeader header)Utility method to determine if the current header has drill information availableprotected booleanisHeaderMVJsonMovable()booleanisMetric()Indicates if the underlying object of a cell is a metric header.booleanisMetricDrillable(WebHeader header, WebDrillPath drillPath)return whether the header has a drillable metricbooleanisTemplateMetric(WebHeader header)protected booleanisTotal()booleanisTypeMetric()protected voidprocessHyperLinkNavigationInfo()voidreset()Reset all of the instance variables.protected voidsetWebHeader(WebHeader header)Define theWebHeaderinstance to be rendered.protected voidsetWebTemplateMetric(WebTemplateMetric metric)Define theWebTemplateMetricinstance to be rendered.protected booleanshouldHiliteOnServer()Indicate if it's necessary to hilight the selected element on server side.protected booleanshowPivotForLastAttrRowInCol()When 'Remove Extra Column' is cheched, and a Attribute is placed as last row in Column then its title is not visible.- 
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
addContextMenuAttributes, addDragAndDropAttributes, addExtraAttribute, addTooltipAttributes, addToStyle, appendContextMenuItems, buildGenericTooltipInformation, canDefineDerivedElements, canEditMetricFilter, canInsertShortcutMetric, canPivot, canPivot, canSort, canUse, clone, convertNonbreakingSpaceOnMV, decodeEuro, encodeMV, generateAnchor, generateContextMenu, generateDragAndDrop, generateDragAndDropAttributes, generateDrillCheckBox, generateDrillCheckBox, generateDrillCheckBox, generateDrillContextMenu, generateDrillOpenLink, generateDrillOpenLink, generateFilterOnSelectionCheckBox, generateFilterOnSelectionCheckBox, generateFilterOnSelectionCheckBox, generateHeaderDrillContextMenu, generateHeaderDrillContextMenu, generateHeaderSortContextMenu, generateHeaderSortContextMenu, generateInnerHTML, generateOutlineModeImage, generateOutlineSubTotalName, generateOutput, generatePivotButton, generatePivotButtons, generatePostContent, generatePreContent, generateRowValueDrillContextMenu, generateRowValueDrillContextMenu, generateSortButton, generateSortButton, generateSortContextMenu, generateThresholdSymbol, generateTitleDrillContextMenu, generateTitleDrillContextMenu, generateTitleSortContextMenu, generateTitleSortContextMenu, generateTooltip, generateTooltipForHeaders, generateTooltipForRowValue, generateTooltipForTitles, getAccessibilityInfo, getBaseBean, getCellColor, getCellID, getCellType, 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, getPostTextForMetricValue, getPostTextForNonMetricValue, getPreTextForMetricValue, getPreTextForNonMetricValue, getRenameEvent, getReportBean, getReportDesignMode, getReportGridTransform, getRowSpan, getRowValueDrillElements, getRowValueDrillParametersForDHTML, getRowValueDrillParametersForDHTML, getRowValueDrillPathWithHighImportance, getRowValueDrillPathWithHighImportance, getRowValueDrillURL, getRowValueDrillURL, getRWDDrillOutEvent, getShowDescriptionAsTooltip, getSortAscendingEvent, getSortDescendingEvent, getSortEvent, getSortEventByAxis, getSortEventByAxisBySortOrder, getSortID, getSortStatus, getStyle, getStyleForNonBuiltInFormat, getSubTitle, getSubtitleIndex, getTargetKeys, getText, getTitleDrillParametersForDHTML, getTitleDrillParametersForDHTML, getTitleDrillURL, getTitleDrillURL, getTooltip, getViewBean, getWidth, groupContextMenuDrillPathsByType, hasDrillPathsWithHighImportanceAvailable, hasWebObject, init, init, init, init, initCell, initDNDForDesignMode, initDNDForExecuteMode, initDragAndDrop, isAccessibilityMode, isContextMenuEnabled, isContextMenusEnabled, isDerivedMetric, isDesignMode, isDhtml, isDragAndDropEnabled, isFeatureAvailable, isFPTrue, isFPTrue, isHeaderNeedLink, isIframeEnabled, isIFrameEnabled, isIframeRequest, isIFrameRequest, isItemsAddedToContextMenu, isOutlineModeEnabled, isRemoveAvailable, isRowValueNeedLink, isRW, isSortAscending, isTitleNeedLink, newContext, newNamespaceEncoder, renderContextMenu, 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, 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.ReportGridCellHeader
init, init 
- 
Methods inherited from interface com.microstrategy.web.app.transforms.ReportGridDisplayCell
addExtraAttribute, canEditMetricFilter, canInsertShortcutMetric, canPivot, canPivot, canSort, generateOutput, getAccessibilityInfo, getCellID, getCellType, getColSpan, getControlElementSelectorEvent, getDrillEvent, getExtraInfo, getExtraStyle, getHeaderContent, getRowSpan, getStyle, getText, getTooltip, getWidth, init, init, 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
 
- 
getURLBuffer
protected java.lang.StringBuffer getURLBuffer()
Deprecated.if the link information for drilling should be modified, please update thegenerateDrillAnchor()method.Specify URL information to be used as drilling information for the header being rendered- Returns:
 StringBufferinstance
 
- 
setWebHeader
protected void setWebHeader(WebHeader header)
Define theWebHeaderinstance to be rendered.- Parameters:
 header-WebHeaderinstance from where the information to render by this class will be retrieved.
 
- 
getWebHeader
public WebHeader getWebHeader()
Obtain theWebHeaderinstance associated with this class- Specified by:
 getWebHeaderin interfaceReportGridCellHeader- Returns:
 WebHeaderinstance from where the information to be rendered by this class will be retrieved.
 
- 
getWebTemplateMetric
public WebTemplateMetric getWebTemplateMetric()
Obtain theWebTemplateMetricinstance directly associated with this class- Specified by:
 getWebTemplateMetricin interfaceReportGridCellHeader- Returns:
 WebTemplateMetricinstance from where the information to be rendered by this class will be retrieved.
 
- 
getWebTemplateMetric
public WebTemplateMetric getWebTemplateMetric(boolean retrieve)
Obtain theWebTemplateMetricinstance associated with this class- Specified by:
 getWebTemplateMetricin interfaceReportGridCellHeader- Parameters:
 retrieve- boolean flag that if true indicates it will search also on the header information and the template's metric collection for the metric represented here.- Returns:
 WebTemplateMetricinstance from where the information to be rendered by this class will be retrieved.
 
- 
setWebTemplateMetric
protected void setWebTemplateMetric(WebTemplateMetric metric)
Define theWebTemplateMetricinstance to be rendered.- Parameters:
 metric-WebTemplateMetricinstance from where the information to render by this class will be retrieved.
 
- 
init
public void init(TransformContext context, WebTemplateMetric metric)
Description copied from interface:ReportGridCellHeaderThis method is called to initialize the cell in design mode. It receives aWebTemplateMetricas the underlying SDK object.- Specified by:
 initin interfaceReportGridCellHeader- Parameters:
 context-TransformContextinstance initialized with the grid's transform information.metric-WebTemplateMetricinstance corresponding to the cell to be displayed.
 
- 
init
public void init(WebComponent wc, WebTemplateMetric metric, java.util.HashMap cachedObjects)
Deprecated.use theinit(TransformContext, WebTemplateMetric)interface insteadInitialize this class with the cell information to consider for HTML generation- Specified by:
 initin interfaceReportGridCellHeader- Parameters:
 wc-WebComponentbase instancemetric-WebTemplateMetricinstance related with the cell to be renderedcachedObjects- HashMap instance with information relevant to this instance for HTML generation.
 
- 
generateText
protected void generateText(MarkupOutput mo)
Generate the text of the cell- Overrides:
 generateTextin classAbstractReportGridDisplayCell- Parameters:
 mo-MarkupOutputinstance where the HTML contents generated will be saved
 
- 
isDrillPathAvailable
protected abstract boolean isDrillPathAvailable(WebHeader header)
Utility method to determine if the current header has drill information available- Parameters:
 header-WebHeaderinstance to analyze- Returns:
 - boolean value indicating if there is drill path information available or not, for the specified header.
 
 
- 
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
 
- 
getOnClickAttForDrillPath
protected java.lang.String getOnClickAttForDrillPath(WebDrillPath drillPathWithHighImportance)
Some subclases wont need the onclick attribute at all, overriding the method and returning null will help on that case- Parameters:
 drillPathWithHighImportance-- Returns:
 - the js call to the drill method
 
 
- 
generateElementAnchor
protected AnchorTag generateElementAnchor()
Utility method for generating theAnchorTaginstance for the element being rendered .- Returns:
 AnchorTaginstance initialized with the drill details. If neither dashboarding controls nor drilling is supported given the information provided, it will returnnull- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
generateStaticHyperLinkAnchor
protected AnchorTag generateStaticHyperLinkAnchor()
- Since:
 - MicroStrategy Web 8.1.2
 
 
- 
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
 
 
- 
canHyperlinkForCurrentHTMLMode
protected boolean canHyperlinkForCurrentHTMLMode()
On the OOB implementation this will return true if isDHTML returns true, but subclasses might override it.- Returns:
 - true if it can hyperlink for the current HTML mode.
 
 
- 
processHyperLinkNavigationInfo
protected void processHyperLinkNavigationInfo()
- Since:
 - MicroStrategy Web 8.1.2
 
 
- 
getParentFormValueIndex
protected java.lang.String getParentFormValueIndex()
 
- 
getParentElementIndex
protected java.lang.String getParentElementIndex()
- Returns:
 - the parent element index based on the WebHeader, null if 
canHyperLink()returns false 
 
- 
generateHyperLinkAnchor
protected AnchorTag generateHyperLinkAnchor()
- Since:
 - MicroStrategy Web 8.1.2
 
 
- 
generateControlAnchor
protected AnchorTag generateControlAnchor()
- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getSelectorEvent
protected WebEvent getSelectorEvent()
Description copied from class:AbstractReportGridDisplayCellget the selector Event to gnereate the anchor in HTML mode- Overrides:
 getSelectorEventin classAbstractReportGridDisplayCell- Returns:
 
 
- 
isDrillAvailable
protected abstract boolean isDrillAvailable()
 
- 
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 Map instance with the attribute context menu information- Overrides:
 addContextMenuAttributesin classAbstractReportGridDisplayCell- Parameters:
 atts-Mapwhere attributes will be appended.- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
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 UPT indicates the template unit that it belongs to, in the format of "axis,position"- Overrides:
 getCellLevelAttributesin classAbstractReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
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.
 
 
- 
getMetricID
protected java.lang.String getMetricID()
 
- 
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.
 
- 
getDerivedElementsEvent
public WebEvent getDerivedElementsEvent()
- Specified by:
 getDerivedElementsEventin interfaceReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getInsertMetricPercentToTotalEvent
public WebEvent getInsertMetricPercentToTotalEvent(int axisBitMap)
Description copied from interface:ReportGridCellHeaderGet the event for inserting a new metric based on Percent to Total- Specified by:
 getInsertMetricPercentToTotalEventin interfaceReportGridCellHeader- Parameters:
 axisBitMap- identifier of the axis to be used for calculating the metric information. Values expected come from theEnumDSSXMLAxesBitMapenumeration.- Returns:
 WebEventinitialized with the event information for inserting a new metric.
 
- 
getInsertMetricPercentToTotalEvent
public WebEvent getInsertMetricPercentToTotalEvent(int axisBitMap, java.lang.String attributeID)
Description copied from interface:ReportGridCellHeaderGet the event for inserting a new metric based on Percent to Total- Specified by:
 getInsertMetricPercentToTotalEventin interfaceReportGridCellHeader- Parameters:
 axisBitMap- identifier of the axis to be used for calculating the metric information. Values expected come from theEnumDSSXMLAxesBitMapenumeration.attributeID- identifier of the attribute at which the metric will be calculated- Returns:
 WebEventinitialized with the event information for inserting a new metric.
 
- 
getInsertMetricTransformationEvent
public WebEvent getInsertMetricTransformationEvent(java.lang.String transformationID, int formulaType)
Description copied from interface:ReportGridCellHeaderGet the event for inserting a new metric based on a transformation- Specified by:
 getInsertMetricTransformationEventin interfaceReportGridCellHeader- Parameters:
 transformationID- identifier of the role of the transformation to be usedformulaType- identifier of the type of formula to be used. Values expected come from theEnumDSSXMLMetricFormulaTypeenumeration- Returns:
 WebEventinitialized with the event information for inserting a new metric.
 
- 
getInsertMetricRankEvent
public WebEvent getInsertMetricRankEvent(java.lang.String attributeID, int sortOrder)
Description copied from interface:ReportGridCellHeaderGet the event for inserting a new metric based on a rank- Specified by:
 getInsertMetricRankEventin interfaceReportGridCellHeader- Parameters:
 attributeID- identifier of the attribute at which the metric will be calculatedsortOrder- int with the sort order to be used on the new rank metric. Values expected includeEnumViewBeanEvents.SORT_ORDER_ASCENDINGandEnumViewBeanEvents.SORT_ORDER_DESCENDING- Returns:
 WebEventinitialized with the event information for inserting a new metric.
 
- 
getDrillParametersForDHTML
protected java.lang.String getDrillParametersForDHTML(WebDrillPath dp)
Returns parameters required for drilling when using javascript for cells that useWebHeaderas their underlyingSDKobject.- Parameters:
 dp- the drill path- Returns:
 - String with the drill html information for the element
 
 
- 
generateDrillCheckBoxTag
protected Tag generateDrillCheckBoxTag()
Description copied from class:AbstractReportGridDisplayCellGenerates the tag information for a check box for drilling, if all privileges and conditions required are met- Overrides:
 generateDrillCheckBoxTagin classAbstractReportGridDisplayCell- Returns:
 Taginstance initialized with the information of a check box for requesting drill manipulations. If not enabled or available, returnsnull
 
- 
isMetricDrillable
public boolean isMetricDrillable(WebHeader header, WebDrillPath drillPath)
Description copied from class:AbstractReportGridDisplayCellreturn whether the header has a drillable metric- Specified by:
 isMetricDrillablein interfaceReportGridCellHeader- Overrides:
 isMetricDrillablein classAbstractReportGridDisplayCell- Parameters:
 header- the header objectdrillPath- the drill path- Returns:
 - whether the header has a drillable metric
 
 
- 
getDrillPathWithHighImportance
public WebDrillPath getDrillPathWithHighImportance()
generate drilling url parameters for DHTML mode- Specified by:
 getDrillPathWithHighImportancein interfaceReportGridDisplayCell- Overrides:
 getDrillPathWithHighImportancein classAbstractReportGridDisplayCell- Returns:
 - The drill path with high importance
 
 
- 
generateFilterOnSelectionCheckBoxTag
protected Tag generateFilterOnSelectionCheckBoxTag()
Description copied from class:AbstractReportGridDisplayCellGenerates the tag information for a check box for filter on selection, if all privileges and conditions required are met- Overrides:
 generateFilterOnSelectionCheckBoxTagin classAbstractReportGridDisplayCell- Returns:
 Taginstance initialized with the information of a check box for requesting a filter on selection manipulations. If not enabled or available, returnsnull
 
- 
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.
 
 
- 
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
 
 
- 
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
 
 
- 
canFilter
protected boolean canFilter()
 
- 
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
 
- 
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- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
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
 
 
- 
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
 
 
- 
isDerivedMetric
public boolean isDerivedMetric()
 
- 
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
 
 
- 
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
 
 
- 
canAddThresholds
public boolean canAddThresholds()
Utility method for determining if the cell object is enabled for displaying the user the option to add threshold to it- Specified by:
 canAddThresholdsin interfaceReportGridDisplayCell- Overrides:
 canAddThresholdsin classAbstractReportGridDisplayCell- Returns:
 - boolean value indicating if the manipulation should be enabled
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
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
 
 
- 
canHaveDerivedElements
public boolean canHaveDerivedElements()
- Specified by:
 canHaveDerivedElementsin interfaceReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
canQuickGroup
public boolean canQuickGroup()
- Specified by:
 canQuickGroupin interfaceReportGridDisplayCell- Overrides:
 canQuickGroupin classAbstractReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
canOpenAlerts
public boolean canOpenAlerts()
- Specified by:
 canOpenAlertsin interfaceReportGridDisplayCell- Overrides:
 canOpenAlertsin classAbstractReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getOpenFormatEditorEvent
public WebEvent getOpenFormatEditorEvent()
Description copied from class:AbstractReportGridDisplayCellGet the event for opening the format editor for the requested target.- Specified by:
 getOpenFormatEditorEventin interfaceReportGridDisplayCell- Overrides:
 getOpenFormatEditorEventin classAbstractReportGridDisplayCell- Returns:
 WebEventinitialized instance. If it could not be generated, it will returnnull
 
- 
getSetFormatEditorTargetEvent
public WebEvent getSetFormatEditorTargetEvent()
Description copied from interface:ReportGridDisplayCellGet the event for setting the current target of the format editor to be this cell instance- Specified by:
 getSetFormatEditorTargetEventin interfaceReportGridDisplayCell- Overrides:
 getSetFormatEditorTargetEventin classAbstractReportGridDisplayCell- Returns:
 WebEventinstance initialized for setting the target of the format editor to be the current cell instance.
 
- 
getMaxPosition
protected int getMaxPosition()
 
- 
getPosition
protected int getPosition()
 
- 
getKey
public int getKey()
- Specified by:
 getKeyin interfaceReportGridDisplayCell- Returns:
 - int value with the key information about the cell being analyzed.
 
 
- 
isTypeMetric
public boolean isTypeMetric()
- Since:
 - MicroStrategy Web 8.1.2
 
 
- 
isMetric
public boolean isMetric()
Description copied from class:AbstractReportGridDisplayCellIndicates if the underlying object of a cell is a metric header.- Specified by:
 isMetricin interfaceReportGridCellHeader- Overrides:
 isMetricin classAbstractReportGridDisplayCell- Returns:
 - whether the cell is containing a metric
 
 
- 
isTemplateMetric
public boolean isTemplateMetric(WebHeader header)
 
- 
canMetricFilterOn
public boolean canMetricFilterOn()
Description copied from class:AbstractReportGridDisplayCellUtility method for determining if the cell object is enabled for displaying the user the option to apply a metric filter on it- Specified by:
 canMetricFilterOnin interfaceReportGridDisplayCell- Overrides:
 canMetricFilterOnin classAbstractReportGridDisplayCell- Returns:
 - boolean value indicating if the manipulation should be enabled
 - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
hasMetricFilterCondition
public boolean hasMetricFilterCondition()
- Overrides:
 hasMetricFilterConditionin classAbstractReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
canEditControl
public boolean canEditControl()
Description copied from interface:ReportGridDisplayCellUtility methood for determining if the cell object is enabled for displaying the user the option to edit control- Specified by:
 canEditControlin interfaceReportGridDisplayCell- Overrides:
 canEditControlin classAbstractReportGridDisplayCell- Returns:
 - boolean value indicating if the manipulation should be enabled
 - Since:
 - MicroStrategy Web 8.1.0
 
 
- 
isTotal
protected boolean isTotal()
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getCellAttributes
protected void getCellAttributes(java.util.Map attributes)
- Overrides:
 getCellAttributesin classAbstractReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
canDrill
public boolean canDrill()
Description copied from class:AbstractReportGridDisplayCellUtility 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 9.0.0
 
 
- 
canExpandCollapse
protected boolean canExpandCollapse()
 
- 
canFilterOnSelection
public boolean canFilterOnSelection()
- Specified by:
 canFilterOnSelectionin interfaceReportGridDisplayCell- Overrides:
 canFilterOnSelectionin classAbstractReportGridDisplayCell- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getAxisDepth
protected AbstractReportGridCellHeader.AxisDepth getAxisDepth()
Depth is 1-based 
- 
showPivotForLastAttrRowInCol
protected boolean showPivotForLastAttrRowInCol()
When 'Remove Extra Column' is cheched, and a Attribute is placed as last row in Column then its title is not visible. Therefore if the Attribute Elements is the last row in Column headers, we need show pivot buttons for each attribute element.- Returns:
 - boolean
 
 
- 
shouldHiliteOnServer
protected boolean shouldHiliteOnServer()
Description copied from class:AbstractReportGridDisplayCellIndicate if it's necessary to hilight the selected element on server side.- Overrides:
 shouldHiliteOnServerin classAbstractReportGridDisplayCell- Returns:
 
 
- 
hasRuntimeUnitLimit
protected boolean hasRuntimeUnitLimit()
 
- 
generateRAPreContent
protected void generateRAPreContent(MarkupOutput mo)
 
 - 
 
 -