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 asReportGridCellColHeaderImpl
andReportGridCellRowHeaderImpl
which 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 class
AbstractReportGridCellHeader.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 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 informationprotected void
addToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)
boolean
canAddThresholds()
Utility method for determining if the cell object is enabled for displaying the user the option to add threshold to itboolean
canDrill()
Utility methood for determining if the cell object is enabled for displaying the user the option to drill on itboolean
canDrillAdvanced()
Utility methood for determining if the cell object is enabled for displaying the user the option for advanced drilling on itboolean
canEditControl()
Utility methood for determining if the cell object is enabled for displaying the user the option to edit controlprotected boolean
canExpandCollapse()
protected boolean
canFilter()
boolean
canFilterOn()
Utility methood for determining if the cell object is enabled for displaying the user the option to filter on itboolean
canFilterOnSelection()
boolean
canFormat()
Utility methood for determining if the cell object is enabled for displaying the user the option to format itboolean
canHaveDerivedElements()
boolean
canHyperLink()
Utility method for determining if the cell object is enabled for displaying the user the option to navigate to custom hyperlinksprotected boolean
canHyperlinkForCurrentHTMLMode()
On the OOB implementation this will return true if isDHTML returns true, but subclasses might override it.boolean
canMetricFilterOn()
Utility method for determining if the cell object is enabled for displaying the user the option to apply a metric filter on itboolean
canModifyAttributeForm()
Utility methood for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on itboolean
canOpenAlerts()
boolean
canQuickGroup()
boolean
canRemoveFromGrid()
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the grid.boolean
canRemoveFromReport()
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the reportboolean
canRename()
Utility methood for determining if the cell object is enabled for displaying the user the option to rename itprotected boolean
cellNeedsLink()
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 void
generateContent(MarkupOutput mo)
ExtendsgenerateContent
by adding a URL link to the cell's text.protected AnchorTag
generateControlAnchor()
protected AnchorTag
generateDrillAnchor()
Utility method for generating theAnchorTag
instance with all the drill information if available for the current cell being displayed by this instance.protected Tag
generateDrillCheckBoxTag()
Generates the tag information for a check box for drilling, if all privileges and conditions required are metprotected AnchorTag
generateElementAnchor()
Utility method for generating theAnchorTag
instance for the element being rendered .protected Tag
generateFilterOnSelectionCheckBoxTag()
Generates the tag information for a check box for filter on selection, if all privileges and conditions required are metprotected AnchorTag
generateHyperLinkAnchor()
protected void
generateRAPreContent(MarkupOutput mo)
protected AnchorTag
generateStaticHyperLinkAnchor()
protected void
generateText(MarkupOutput mo)
Generate the text of the cellprotected java.lang.String
generateTooltipContent()
Generates the string with the tooltip information to be assigned to the TITLE attribute of the cell tag for this instanceprotected AbstractReportGridCellHeader.AxisDepth
getAxisDepth()
Depth is 1-basedprotected void
getCellAttributes(java.util.Map attributes)
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"WebEvent
getDerivedElementsEvent()
protected java.lang.String
getDrillParametersForDHTML(WebDrillPath dp)
Returns parameters required for drilling when using javascript for cells that useWebHeader
as their underlyingSDK
object.WebDrillPath
getDrillPathWithHighImportance()
generate drilling url parameters for DHTML modeWebEvent
getFilterOnEvent()
Get the event for filter on the cell header instanceWebEvent
getInsertMetricPercentToTotalEvent(int axisBitMap)
Get the event for inserting a new metric based on Percent to TotalWebEvent
getInsertMetricPercentToTotalEvent(int axisBitMap, java.lang.String attributeID)
Get the event for inserting a new metric based on Percent to TotalWebEvent
getInsertMetricRankEvent(java.lang.String attributeID, int sortOrder)
Get the event for inserting a new metric based on a rankWebEvent
getInsertMetricTransformationEvent(java.lang.String transformationID, int formulaType)
Get the event for inserting a new metric based on a transformationint
getKey()
protected int
getMaxPosition()
protected java.lang.String
getMetricID()
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 caseWebEvent
getOpenFormatEditorEvent()
Get the event for opening the format editor for the requested target.protected java.lang.String
getParentElementIndex()
protected java.lang.String
getParentFormValueIndex()
protected int
getPosition()
WebEvent
getRenameEvent()
Get the event for renaming the current cellprotected WebEvent
getSelectorEvent()
get the selector Event to gnereate the anchor in HTML modeWebEvent
getSetFormatEditorTargetEvent()
Get the event for setting the current target of the format editor to be this cell instanceprotected java.lang.StringBuffer
getURLBuffer()
Deprecated.if the link information for drilling should be modified, please update thegenerateDrillAnchor()
method.WebHeader
getWebHeader()
Obtain theWebHeader
instance associated with this classWebTemplateMetric
getWebTemplateMetric()
Obtain theWebTemplateMetric
instance directly associated with this classWebTemplateMetric
getWebTemplateMetric(boolean retrieve)
Obtain theWebTemplateMetric
instance associated with this classboolean
hasMetricFilterCondition()
protected boolean
hasRuntimeUnitLimit()
void
init(TransformContext context, WebTemplateMetric metric)
This method is called to initialize the cell in design mode.void
init(WebComponent wc, WebTemplateMetric metric, java.util.HashMap cachedObjects)
Deprecated.use theinit(TransformContext, WebTemplateMetric)
interface insteadboolean
isDerivedMetric()
protected abstract boolean
isDrillAvailable()
protected abstract boolean
isDrillPathAvailable(WebHeader header)
Utility method to determine if the current header has drill information availableprotected boolean
isHeaderMVJsonMovable()
boolean
isMetric()
Indicates if the underlying object of a cell is a metric header.boolean
isMetricDrillable(WebHeader header, WebDrillPath drillPath)
return whether the header has a drillable metricboolean
isTemplateMetric(WebHeader header)
protected boolean
isTotal()
boolean
isTypeMetric()
protected void
processHyperLinkNavigationInfo()
void
reset()
Reset all of the instance variables.protected void
setWebHeader(WebHeader header)
Define theWebHeader
instance to be rendered.protected void
setWebTemplateMetric(WebTemplateMetric metric)
Define theWebTemplateMetric
instance to be rendered.protected boolean
shouldHiliteOnServer()
Indicate if it's necessary to hilight the selected element on server side.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.-
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:ReportGridDisplayCell
Reset 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:
reset
in interfaceReportGridDisplayCell
- Overrides:
reset
in 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:
StringBuffer
instance
-
setWebHeader
protected void setWebHeader(WebHeader header)
Define theWebHeader
instance to be rendered.- Parameters:
header
-WebHeader
instance from where the information to render by this class will be retrieved.
-
getWebHeader
public WebHeader getWebHeader()
Obtain theWebHeader
instance associated with this class- Specified by:
getWebHeader
in interfaceReportGridCellHeader
- Returns:
WebHeader
instance from where the information to be rendered by this class will be retrieved.
-
getWebTemplateMetric
public WebTemplateMetric getWebTemplateMetric()
Obtain theWebTemplateMetric
instance directly associated with this class- Specified by:
getWebTemplateMetric
in interfaceReportGridCellHeader
- Returns:
WebTemplateMetric
instance from where the information to be rendered by this class will be retrieved.
-
getWebTemplateMetric
public WebTemplateMetric getWebTemplateMetric(boolean retrieve)
Obtain theWebTemplateMetric
instance associated with this class- Specified by:
getWebTemplateMetric
in 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:
WebTemplateMetric
instance from where the information to be rendered by this class will be retrieved.
-
setWebTemplateMetric
protected void setWebTemplateMetric(WebTemplateMetric metric)
Define theWebTemplateMetric
instance to be rendered.- Parameters:
metric
-WebTemplateMetric
instance from where the information to render by this class will be retrieved.
-
init
public void init(TransformContext context, WebTemplateMetric metric)
Description copied from interface:ReportGridCellHeader
This method is called to initialize the cell in design mode. It receives aWebTemplateMetric
as the underlying SDK object.- Specified by:
init
in interfaceReportGridCellHeader
- Parameters:
context
-TransformContext
instance initialized with the grid's transform information.metric
-WebTemplateMetric
instance 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:
init
in interfaceReportGridCellHeader
- Parameters:
wc
-WebComponent
base instancemetric
-WebTemplateMetric
instance 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:
generateText
in classAbstractReportGridDisplayCell
- Parameters:
mo
-MarkupOutput
instance 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
-WebHeader
instance 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 theAnchorTag
instance with all the drill information if available for the current cell being displayed by this instance.- Returns:
AnchorTag
instance 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 theAnchorTag
instance for the element being rendered .- Returns:
AnchorTag
instance 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:ReportGridDisplayCell
Utility method for determining if the cell object is enabled for displaying the user the option to navigate to custom hyperlinks- Specified by:
canHyperLink
in interfaceReportGridDisplayCell
- Overrides:
canHyperLink
in 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:AbstractReportGridDisplayCell
get the selector Event to gnereate the anchor in HTML mode- Overrides:
getSelectorEvent
in 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:
addContextMenuAttributes
in classAbstractReportGridDisplayCell
- Parameters:
atts
-Map
where attributes will be appended.- Since:
- MicroStrategy Web 8.1.0
-
isHeaderMVJsonMovable
protected boolean isHeaderMVJsonMovable()
- Overrides:
isHeaderMVJsonMovable
in classAbstractReportGridDisplayCell
-
addToHeaderMetricValueJsonMap
protected void addToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)
- Overrides:
addToHeaderMetricValueJsonMap
in 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:
getCellLevelAttributes
in 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:
generateTooltipContent
in 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:ReportGridDisplayCell
Get the event for renaming the current cell- Specified by:
getRenameEvent
in interfaceReportGridDisplayCell
- Returns:
WebEvent
instance initialized with the information for renaming the current cell.
-
getDerivedElementsEvent
public WebEvent getDerivedElementsEvent()
- Specified by:
getDerivedElementsEvent
in interfaceReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
getInsertMetricPercentToTotalEvent
public WebEvent getInsertMetricPercentToTotalEvent(int axisBitMap)
Description copied from interface:ReportGridCellHeader
Get the event for inserting a new metric based on Percent to Total- Specified by:
getInsertMetricPercentToTotalEvent
in interfaceReportGridCellHeader
- Parameters:
axisBitMap
- identifier of the axis to be used for calculating the metric information. Values expected come from theEnumDSSXMLAxesBitMap
enumeration.- Returns:
WebEvent
initialized with the event information for inserting a new metric.
-
getInsertMetricPercentToTotalEvent
public WebEvent getInsertMetricPercentToTotalEvent(int axisBitMap, java.lang.String attributeID)
Description copied from interface:ReportGridCellHeader
Get the event for inserting a new metric based on Percent to Total- Specified by:
getInsertMetricPercentToTotalEvent
in interfaceReportGridCellHeader
- Parameters:
axisBitMap
- identifier of the axis to be used for calculating the metric information. Values expected come from theEnumDSSXMLAxesBitMap
enumeration.attributeID
- identifier of the attribute at which the metric will be calculated- Returns:
WebEvent
initialized with the event information for inserting a new metric.
-
getInsertMetricTransformationEvent
public WebEvent getInsertMetricTransformationEvent(java.lang.String transformationID, int formulaType)
Description copied from interface:ReportGridCellHeader
Get the event for inserting a new metric based on a transformation- Specified by:
getInsertMetricTransformationEvent
in 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 theEnumDSSXMLMetricFormulaType
enumeration- Returns:
WebEvent
initialized with the event information for inserting a new metric.
-
getInsertMetricRankEvent
public WebEvent getInsertMetricRankEvent(java.lang.String attributeID, int sortOrder)
Description copied from interface:ReportGridCellHeader
Get the event for inserting a new metric based on a rank- Specified by:
getInsertMetricRankEvent
in 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_ASCENDING
andEnumViewBeanEvents.SORT_ORDER_DESCENDING
- Returns:
WebEvent
initialized 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 useWebHeader
as their underlyingSDK
object.- Parameters:
dp
- the drill path- Returns:
- String with the drill html information for the element
-
generateDrillCheckBoxTag
protected Tag generateDrillCheckBoxTag()
Description copied from class:AbstractReportGridDisplayCell
Generates the tag information for a check box for drilling, if all privileges and conditions required are met- Overrides:
generateDrillCheckBoxTag
in classAbstractReportGridDisplayCell
- Returns:
Tag
instance 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:AbstractReportGridDisplayCell
return whether the header has a drillable metric- Specified by:
isMetricDrillable
in interfaceReportGridCellHeader
- Overrides:
isMetricDrillable
in 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:
getDrillPathWithHighImportance
in interfaceReportGridDisplayCell
- Overrides:
getDrillPathWithHighImportance
in classAbstractReportGridDisplayCell
- Returns:
- The drill path with high importance
-
generateFilterOnSelectionCheckBoxTag
protected Tag generateFilterOnSelectionCheckBoxTag()
Description copied from class:AbstractReportGridDisplayCell
Generates the tag information for a check box for filter on selection, if all privileges and conditions required are met- Overrides:
generateFilterOnSelectionCheckBoxTag
in classAbstractReportGridDisplayCell
- Returns:
Tag
instance 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:AbstractReportGridDisplayCell
Utility method for determining if the current cell being displayed needs to be a link or not, for example, in case of drilling available.- Overrides:
cellNeedsLink
in 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:
canDrillAdvanced
in interfaceReportGridDisplayCell
- Overrides:
canDrillAdvanced
in 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:
canFilterOn
in interfaceReportGridDisplayCell
- Overrides:
canFilterOn
in classAbstractReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
-
canFilter
protected boolean canFilter()
-
getFilterOnEvent
public WebEvent getFilterOnEvent()
Description copied from interface:ReportGridDisplayCell
Get the event for filter on the cell header instance- Specified by:
getFilterOnEvent
in interfaceReportGridDisplayCell
- Returns:
WebEvent
instance initialized for filtering on the information of this cell
-
generateContent
protected void generateContent(MarkupOutput mo)
ExtendsgenerateContent
by 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:
generateContent
in 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:
canRemoveFromGrid
in interfaceReportGridDisplayCell
- Overrides:
canRemoveFromGrid
in 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:
canRemoveFromReport
in interfaceReportGridDisplayCell
- Overrides:
canRemoveFromReport
in 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:
canModifyAttributeForm
in interfaceReportGridDisplayCell
- Overrides:
canModifyAttributeForm
in 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:
canRename
in interfaceReportGridDisplayCell
- Overrides:
canRename
in 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:
canAddThresholds
in interfaceReportGridDisplayCell
- Overrides:
canAddThresholds
in 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:
canFormat
in interfaceReportGridDisplayCell
- Overrides:
canFormat
in classAbstractReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
-
canHaveDerivedElements
public boolean canHaveDerivedElements()
- Specified by:
canHaveDerivedElements
in interfaceReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
canQuickGroup
public boolean canQuickGroup()
- Specified by:
canQuickGroup
in interfaceReportGridDisplayCell
- Overrides:
canQuickGroup
in classAbstractReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
canOpenAlerts
public boolean canOpenAlerts()
- Specified by:
canOpenAlerts
in interfaceReportGridDisplayCell
- Overrides:
canOpenAlerts
in classAbstractReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
getOpenFormatEditorEvent
public WebEvent getOpenFormatEditorEvent()
Description copied from class:AbstractReportGridDisplayCell
Get the event for opening the format editor for the requested target.- Specified by:
getOpenFormatEditorEvent
in interfaceReportGridDisplayCell
- Overrides:
getOpenFormatEditorEvent
in classAbstractReportGridDisplayCell
- Returns:
WebEvent
initialized instance. If it could not be generated, it will returnnull
-
getSetFormatEditorTargetEvent
public WebEvent getSetFormatEditorTargetEvent()
Description copied from interface:ReportGridDisplayCell
Get the event for setting the current target of the format editor to be this cell instance- Specified by:
getSetFormatEditorTargetEvent
in interfaceReportGridDisplayCell
- Overrides:
getSetFormatEditorTargetEvent
in classAbstractReportGridDisplayCell
- Returns:
WebEvent
instance 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:
getKey
in 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:AbstractReportGridDisplayCell
Indicates if the underlying object of a cell is a metric header.- Specified by:
isMetric
in interfaceReportGridCellHeader
- Overrides:
isMetric
in classAbstractReportGridDisplayCell
- Returns:
- whether the cell is containing a metric
-
isTemplateMetric
public boolean isTemplateMetric(WebHeader header)
-
canMetricFilterOn
public boolean canMetricFilterOn()
Description copied from class:AbstractReportGridDisplayCell
Utility method for determining if the cell object is enabled for displaying the user the option to apply a metric filter on it- Specified by:
canMetricFilterOn
in interfaceReportGridDisplayCell
- Overrides:
canMetricFilterOn
in classAbstractReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 9.0.0
-
hasMetricFilterCondition
public boolean hasMetricFilterCondition()
- Overrides:
hasMetricFilterCondition
in classAbstractReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
canEditControl
public boolean canEditControl()
Description copied from interface:ReportGridDisplayCell
Utility methood for determining if the cell object is enabled for displaying the user the option to edit control- Specified by:
canEditControl
in interfaceReportGridDisplayCell
- Overrides:
canEditControl
in 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:
getCellAttributes
in classAbstractReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
canDrill
public boolean canDrill()
Description copied from class:AbstractReportGridDisplayCell
Utility methood for determining if the cell object is enabled for displaying the user the option to drill on it- Specified by:
canDrill
in interfaceReportGridDisplayCell
- Overrides:
canDrill
in 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:
canFilterOnSelection
in interfaceReportGridDisplayCell
- Overrides:
canFilterOnSelection
in 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:AbstractReportGridDisplayCell
Indicate if it's necessary to hilight the selected element on server side.- Overrides:
shouldHiliteOnServer
in classAbstractReportGridDisplayCell
- Returns:
-
hasRuntimeUnitLimit
protected boolean hasRuntimeUnitLimit()
-
generateRAPreContent
protected void generateRAPreContent(MarkupOutput mo)
-
-