Class ReportGridCellColHeaderImpl
- java.lang.Object
-
- com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
-
- com.microstrategy.web.app.transforms.AbstractReportGridCellHeader
-
- com.microstrategy.web.app.transforms.ReportGridCellColHeaderImpl
-
- All Implemented Interfaces:
ReportGridCellColHeader,ReportGridCellHeader,ReportGridDisplayCell,java.lang.Cloneable
- Direct Known Subclasses:
IPhoneReportGridCellColHeaderImpl,ReportGridExcelCellColHeaderImpl
public class ReportGridCellColHeaderImpl extends AbstractReportGridCellHeader implements ReportGridCellColHeader
The
This class can handle two different types ofReportGridCellColHeaderImplis used to generate the HTML of a cell of that is a value of the column axis.SDKobjects:WebHeader: used in view mode, this is the SDK object that represents a value of the column axis.WebTemplateMetric: used in design mode when the metrics are located in the column axis, each metric is represented as a column header.
The
ReportGridCellColHeaderImplextends theAbstractReportGridDisplayCellwhich controls the exeuction flow.Users who intend to programatically modify the HTML generated for a column header 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 theWebHeadercontent.AbstractReportGridCellHeader.generateText(com.microstrategy.web.beans.MarkupOutput)method of this class based on the header's semantics:public class CustomColHeader extends ReportGridCellColHeaderImpl { public void generateText(MarkupOutput mo) { WebHeader header = getWebHeader(); if (header != null) { switch (header.getSemantics()) { case EnumDSSXMLBaseFormType.DssXmlBaseFormPicture: mo.append("<IMG SRC=\""); mo.append(getText()); mo.append("\" ALT=\"\" BORDER=0 />"); break; case EnumDSSXMLBaseFormType.DssXmlBaseFormUrl: case EnumDSSXMLBaseFormType.DssXmlBaseFormEmail: mo.append("<A HREF=\""); if (header.getSemantics() == EnumDSSXMLBaseFormType.DssXmlBaseFormEmail) mo.append("mailto:"); mo.append(getText()); mo.append("\">"); mo.append(getText()); mo.append("</A>"); break; case EnumDSSXMLBaseFormType.DssXmlBaseFormHTMLTag: mo.append(HTMLHelper.decode(getText())); break; default: super.generateText(mo); break; } } else { super.generateText(mo); } } }- Since:
- MicroStrategy Web 7.5.1
- See Also:
ReportGridDisplayCell,ReportGridTransformImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classReportGridCellColHeaderImpl.ColHeaderPivotButtonInfoHelper class for storing pivot button information - such as JavaScript id, descriptor (tooltip) and image name - based on the action that can be performed given the current selected target.-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractReportGridCellHeader
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.ReportGridCellColHeader
SORT_TYPE_ASCENDING, SORT_TYPE_DESCENDING
-
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 ReportGridCellColHeaderImpl()Constructor used for creating a generic display cell.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidappendContextMenuItems(ContextMenu rhMenu)Deprecated.Please use the new approach for generating context menus, seeReportCellRemoveFromGrid,ReportCellMove, etcbooleancanInsertShortcutMetric()Utility methood for determining if the cell object is enabled for displaying the user the option to insert shortcut metrics based on itbooleancanPivot()Utility methood for determining if the cell object is enabled for displaying the user the option to pivot itbooleancanPivot(int type)Utility methood for determining if the cell object is enabled for displaying the user the option to pivot it according to the type specifiedbooleancanSort()Utility methood for determining if the cell object is enabled for displaying the user the option to sort itprotected voidgenerateDrillCheckBox(MarkupOutput mo)Obtains the check box tag information for Drill and renders it out.protected voidgenerateFilterOnSelectionCheckBox(MarkupOutput mo)Obtains the check box tag information for Filter On Selection and renders it out.protected TaggeneratePivotButton(int type)Generate the pivot button tag, according to the type of manipulation that should performprotected voidgeneratePivotButtons(MarkupOutput mo)Calls forgeneratePivotButton(int)for each one of the buttons this instance normally supportsprotected voidgeneratePreContent(MarkupOutput mo)Generates the preContent of the cell.protected TaggenerateSortButton()Generate the sort button tag information for this objectprotected voidgenerateSortButton(MarkupOutput mo)Deprecated.usegenerateSortButton()instead.protected WebMetricgetColHeaderWebMetric(WebHeader header)get the metric object for the column headerprotected WebTemplategetGridTemplate()Returns an instance ofWebTemplatefrom the View Bean.protected WebEventgetPivotEvent(int type)Generate the pivot event, according to the type of manipulation that should performprotected WebEventgetRemoveEvent()Get the remove event for the current object.WebEventgetSortEvent(int type)Get theWebEventinstance with the information for sorting the current cell valuesprotected WebEventgetSortEventByAxis(int axis)protected java.lang.StringgetSortID()This method return the ID to use for sorting this cell.protected booleanhasWebObject()This method allows the abstract class to identify whether the cell has been initialized with a valid WebObject.voidinit(TransformContext context, WebHeader header)This method is called to initialize the cell in view mode.voidinit(TransformContext context, WebTemplateMetric metric)This method is called to initialize the cell in design mode.voidinit(WebComponent wc, WebHeader header, java.util.HashMap cachedObjects)Deprecated.please use the interface that receivesTransformContextinstance instead.voidinit(WebComponent wc, WebTemplateMetric metric, java.util.HashMap cachedObjects)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 booleanisDrillAvailable()protected booleanisDrillPathAvailable(WebHeader header)Utility method to determine if the current header has drill information availableprotected booleanisHeaderMVJsonMovable()Fix Issue 418196 for sort in column, if the head cell can be used in sort, it don't use Jsonmap for optimization.booleanisMetricDrillable(WebHeader header, WebDrillPath drillPath)return whether the header has a drillable metricbooleanisSortAscending()booleanisSorted()protected booleanisTotal()protected voidrenderContextMenu(MarkupOutput mo)Deprecated.voidreset()Reset all of the instance variables.protected booleanshowRemoveFromReport(int metricSize, int wkSetSize)Determine if we should show the 'Remove from Report' option depending on the number of metrics and the working set size-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportGridCellHeader
addContextMenuAttributes, addToHeaderMetricValueJsonMap, canAddThresholds, canDrill, canDrillAdvanced, canEditControl, canExpandCollapse, canFilter, canFilterOn, canFilterOnSelection, canFormat, canHaveDerivedElements, canHyperLink, canHyperlinkForCurrentHTMLMode, canMetricFilterOn, canModifyAttributeForm, canOpenAlerts, canQuickGroup, canRemoveFromGrid, canRemoveFromReport, canRename, cellNeedsLink, generateContent, generateControlAnchor, generateDrillAnchor, generateDrillCheckBoxTag, generateElementAnchor, generateFilterOnSelectionCheckBoxTag, generateHyperLinkAnchor, generateRAPreContent, generateStaticHyperLinkAnchor, generateText, generateTooltipContent, getAxisDepth, getCellAttributes, getCellLevelAttributes, getDerivedElementsEvent, getDrillParametersForDHTML, getDrillPathWithHighImportance, getFilterOnEvent, getInsertMetricPercentToTotalEvent, getInsertMetricPercentToTotalEvent, getInsertMetricRankEvent, getInsertMetricTransformationEvent, getKey, getMaxPosition, getMetricID, getOnClickAttForDrillPath, getOpenFormatEditorEvent, getParentElementIndex, getParentFormValueIndex, getPosition, getRenameEvent, getSelectorEvent, getSetFormatEditorTargetEvent, getURLBuffer, getWebHeader, getWebTemplateMetric, getWebTemplateMetric, hasMetricFilterCondition, hasRuntimeUnitLimit, isDerivedMetric, isMetric, isTemplateMetric, isTypeMetric, processHyperLinkNavigationInfo, setWebHeader, setWebTemplateMetric, shouldHiliteOnServer, showPivotForLastAttrRowInCol
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
addContextMenuAttributes, addDragAndDropAttributes, addExtraAttribute, addTooltipAttributes, addToStyle, buildGenericTooltipInformation, canDefineDerivedElements, canEditMetricFilter, canUse, clone, convertNonbreakingSpaceOnMV, decodeEuro, encodeMV, generateAnchor, generateContextMenu, generateDragAndDrop, generateDragAndDropAttributes, generateDrillCheckBox, generateDrillCheckBox, generateDrillContextMenu, generateDrillOpenLink, generateDrillOpenLink, generateFilterOnSelectionCheckBox, generateFilterOnSelectionCheckBox, generateHeaderDrillContextMenu, generateHeaderDrillContextMenu, generateHeaderSortContextMenu, generateHeaderSortContextMenu, generateInnerHTML, generateOutlineModeImage, generateOutlineSubTotalName, generateOutput, generatePostContent, generateRowValueDrillContextMenu, generateRowValueDrillContextMenu, generateSortContextMenu, generateThresholdSymbol, generateTitleDrillContextMenu, generateTitleDrillContextMenu, generateTitleSortContextMenu, generateTitleSortContextMenu, generateTooltip, generateTooltipForHeaders, generateTooltipForRowValue, generateTooltipForTitles, getAccessibilityInfo, getBaseBean, getCellColor, getCellID, getCellType, 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, getSortEventByAxisBySortOrder, getSortStatus, getStyle, getStyleForNonBuiltInFormat, getSubTitle, getSubtitleIndex, getTargetKeys, getText, getTitleDrillParametersForDHTML, getTitleDrillParametersForDHTML, getTitleDrillURL, getTitleDrillURL, getTooltip, getViewBean, getWidth, groupContextMenuDrillPathsByType, hasDrillPathsWithHighImportanceAvailable, init, init, 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, 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, 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
getInsertMetricPercentToTotalEvent, getInsertMetricPercentToTotalEvent, getInsertMetricRankEvent, getInsertMetricTransformationEvent, getWebHeader, getWebTemplateMetric, getWebTemplateMetric, isMetric
-
Methods inherited from interface com.microstrategy.web.app.transforms.ReportGridDisplayCell
addExtraAttribute, canAddThresholds, canDrill, canDrillAdvanced, canEditControl, canEditMetricFilter, canFilterOn, canFilterOnSelection, canFormat, canHaveDerivedElements, canHyperLink, canMetricFilterOn, canModifyAttributeForm, canOpenAlerts, canQuickGroup, canRemoveFromGrid, canRemoveFromReport, canRename, generateOutput, getAccessibilityInfo, getCellID, getCellType, getColSpan, getControlElementSelectorEvent, getDerivedElementsEvent, getDrillEvent, getDrillPathWithHighImportance, getExtraInfo, getExtraStyle, getFilterOnEvent, getHeaderContent, getKey, getOpenFormatEditorEvent, getRenameEvent, getRowSpan, getSetFormatEditorTargetEvent, getStyle, 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 classAbstractReportGridCellHeader
-
initCell
protected void initCell()
Description copied from class:AbstractReportGridDisplayCellInitialize the cell title information- Overrides:
initCellin classAbstractReportGridDisplayCell
-
init
public void init(FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore. To initialize empty cells it now uses init(TransformContext, WebTemplateUnit).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
public void init(WebComponent wc, FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore. To initialize empty cells it now uses init(TransformContext, WebTemplateUnit).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
public void init(WebComponent wc, WebTemplateMetric metric, java.util.HashMap cachedObjects)
Deprecated.please use the interface that receivesTransformContextinstance instead.Description copied from class:AbstractReportGridCellHeaderInitialize this class with the cell information to consider for HTML generation- Specified by:
initin interfaceReportGridCellHeader- Overrides:
initin classAbstractReportGridCellHeader- Parameters:
wc-WebComponentbase instancemetric-WebTemplateMetricinstance related with the cell to be renderedcachedObjects- HashMap instance with information relevant to this instance for HTML generation.- Since:
- MicroStrategy Web 7.5.2
-
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- Overrides:
initin classAbstractReportGridCellHeader- Parameters:
context-TransformContextinstance initialized with the grid's transform information.metric-WebTemplateMetricinstance corresponding to the cell to be displayed.- Since:
- MicroStrategy Web 8.0.1
-
init
public void init(TransformContext context, WebHeader header)
Description copied from interface:ReportGridCellHeaderThis method is called to initialize the cell in view mode. It receives aWebHeaderinstance as the underlying SDK object- Specified by:
initin interfaceReportGridCellHeader- Parameters:
context-TransformContextinstance initialized with the grid's transform information.header-WebHeaderinstance coresponding to the cell to be displayed.- Since:
- MicroStrategy Web 8.0.1
-
init
public void init(WebComponent wc, WebHeader header, java.util.HashMap cachedObjects)
Deprecated.please use the interface that receivesTransformContextinstance instead.Description copied from interface:ReportGridCellHeaderThis method is called to initialize the cell in view mode. It receives aWebHeaderas the underlying SDK object.- Specified by:
initin interfaceReportGridCellHeader- Parameters:
wc- The bean being transformed.header- TheWebHeadercorresponding to this cell.cachedObjects- AHashMappopulated by the transform and used to store information shared across multiple cells.- Since:
- MicroStrategy Web 7.5.2
-
generateSortButton
protected Tag generateSortButton()
Generate the sort button tag information for this object- Overrides:
generateSortButtonin classAbstractReportGridDisplayCell- Returns:
Taginstance initialized if sort is supported.- Since:
- MicroStrategy Web 8.0.1
-
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 classAbstractReportGridCellHeader- Parameters:
header- the header objectdrillPath- the drill path- Returns:
- whether the header has a drillable metric
- Since:
- MicroStrategy Web 8.0.1
-
isSorted
public boolean isSorted()
- Specified by:
isSortedin interfaceReportGridCellColHeader- Returns:
- boolean value indicating if the current cell is sorted or not
- Since:
- MicroStrategy Web 8.0.1
-
isSortAscending
public boolean isSortAscending()
- Specified by:
isSortAscendingin interfaceReportGridCellColHeader- Returns:
- boolean value indicating if the current cell is sorted ascending or not
- Since:
- MicroStrategy Web 8.0.1
-
getSortEvent
public WebEvent getSortEvent(int type)
Description copied from interface:ReportGridCellColHeaderGet theWebEventinstance with the information for sorting the current cell values- Specified by:
getSortEventin interfaceReportGridCellColHeader- Parameters:
type- int value with the identifier for the sort order to generate. Values expected includeReportGridCellColHeader.SORT_TYPE_ASCENDINGandReportGridCellColHeader.SORT_TYPE_DESCENDING- Returns:
- WebEvent
- Since:
- MicroStrategy Web 8.0.1
-
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
-
generateSortButton
protected void generateSortButton(MarkupOutput mo)
Deprecated.usegenerateSortButton()instead.Generate the HTML for the sort button- Overrides:
generateSortButtonin classAbstractReportGridDisplayCell- Parameters:
mo- MarkupOutput instnace where the HTML generated will be saved
-
generatePivotButtons
protected void generatePivotButtons(MarkupOutput mo)
Calls forgeneratePivotButton(int)for each one of the buttons this instance normally supports- Overrides:
generatePivotButtonsin classAbstractReportGridDisplayCell- Parameters:
mo-MarkupOutputinstance where the HTML generated by this method will be saved.
-
isDrillAvailable
protected boolean isDrillAvailable()
- Specified by:
isDrillAvailablein classAbstractReportGridCellHeader- Since:
- MicroStrategy Web 8.0.0
-
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
-
appendContextMenuItems
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
-
renderContextMenu
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
-
generateDrillCheckBox
protected void generateDrillCheckBox(MarkupOutput mo)
Obtains the check box tag information for Drill and renders it out. If a check box is rendered, an empty line is also added to the final HTML output.- Overrides:
generateDrillCheckBoxin classAbstractReportGridDisplayCell- Parameters:
mo-MarkupOutputinstance where the HTML content generated by this method will be saved
-
generateFilterOnSelectionCheckBox
protected void generateFilterOnSelectionCheckBox(MarkupOutput mo)
Obtains the check box tag information for Filter On Selection and renders it out. If a check box is rendered, an empty line is also added to the final HTML output.- Overrides:
generateFilterOnSelectionCheckBoxin classAbstractReportGridDisplayCell- Parameters:
mo-MarkupOutputinstance where the HTML content generated by this method will be saved
-
showRemoveFromReport
protected boolean showRemoveFromReport(int metricSize, int wkSetSize)Description copied from class:AbstractReportGridDisplayCellDetermine if we should show the 'Remove from Report' option depending on the number of metrics and the working set size- Overrides:
showRemoveFromReportin classAbstractReportGridDisplayCell- Parameters:
metricSize- number of metricswkSetSize- working set size- Returns:
trueif working set is not empty or if the working set size is greater than the metrics size.- Since:
- MicroStrategy Web 8.0.0
-
generatePreContent
protected void generatePreContent(MarkupOutput mo)
Generates the preContent of the cell. The pre-Content means the html content before the core content of the cell. An example would be a checkbox before the text.
By default, this method generates images for grids in outline mode, drilling checkboxes and filter on selection checkboxes.Developers can either use the
For example, the following code could be used to extend this method to add a <LI> tag before the cell content in any of the classes that extendAbstractReportGridDisplayCell.setPreContent(java.lang.String)method to set any text they want to display before the contents of the cell or override this method to inherit its functionality and build on top of it.AbstractReportGridDisplayCell:
public void generatePreContent(MarkupOutput mo) { super.generatePreContent(mo); mo.append("<LI>"); }- Overrides:
generatePreContentin classAbstractReportGridDisplayCell- Parameters:
mo- the output object- 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
-
isDrillPathAvailable
protected boolean isDrillPathAvailable(WebHeader header)
Utility method to determine if the current header has drill information available- Specified by:
isDrillPathAvailablein classAbstractReportGridCellHeader- Parameters:
header-WebHeaderinstance to analyze- Returns:
- boolean value indicating if there is drill path information available or not, for the specified title.
-
isTotal
protected boolean isTotal()
- Overrides:
isTotalin classAbstractReportGridCellHeader
-
getGridTemplate
protected WebTemplate getGridTemplate() throws WebBeanException, WebObjectsException
Returns an instance ofWebTemplatefrom the View Bean.- Returns:
WebTemplateThe Grid Template.- Throws:
WebBeanExceptionWebObjectsException
-
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
-
getSortEventByAxis
protected WebEvent getSortEventByAxis(int axis)
- Overrides:
getSortEventByAxisin classAbstractReportGridDisplayCell- Parameters:
axis- specifies the axisEnumViewBeanEventson which the sort is defined- Since:
- MicroStrategy Web 8.0.2
-
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
-
generatePivotButton
protected Tag generatePivotButton(int type)
Generate the pivot button tag, according to the type of manipulation that should perform- Specified by:
generatePivotButtonin classAbstractReportGridDisplayCell- Parameters:
type- integer value that indicates which type of pivot action it should execute. Values come from theReportGridDisplayCell.PIVOT_INCREASE_POSITION,ReportGridDisplayCell.PIVOT_DECREASE_POSITIONandReportGridDisplayCell.PIVOT_REMOVEconstants.- Returns:
Taginitialized instance with the information for the pivot manipulation. It will returnnullif not supported. It might return a simple IMG tag in case the manipulation shall be processed in JavaScript, or an INPUT of type IMAGE if it will be processed as part of a FORM, or an A anchor tag with an IMG inside if it's to be a button link.- Since:
- MicroStrategy Web 8.0.1
-
getRemoveEvent
protected WebEvent getRemoveEvent()
Get the remove event for the current object. This only supports objects that are metrics.- Returns:
WebEventinitialized instance if manipulation is supported, otherwise returnsnull.- 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
-
canPivot
public boolean canPivot(int type)
Utility methood for determining if the cell object is enabled for displaying the user the option to pivot it according to the type specified- Specified by:
canPivotin interfaceReportGridDisplayCell- Overrides:
canPivotin classAbstractReportGridDisplayCell- Parameters:
type- value indicating which type of pivot manipulation is being tested. Values come from theReportGridDisplayCell.PIVOT_INCREASE_POSITION,ReportGridDisplayCell.PIVOT_DECREASE_POSITION,ReportGridDisplayCell.PIVOT_SWITCH_AXIS,ReportGridDisplayCell.PIVOT_TO_PAGE_BYandReportGridDisplayCell.PIVOT_REMOVEconstants.- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
getPivotEvent
protected WebEvent getPivotEvent(int type)
Generate the pivot event, according to the type of manipulation that should perform- Parameters:
type- integer value that indicates which type of pivot action it should execute. Values come from theReportGridDisplayCell.PIVOT_INCREASE_POSITION,ReportGridDisplayCell.PIVOT_DECREASE_POSITIONReportGridDisplayCell.PIVOT_SWITCH_AXISandReportGridDisplayCell.PIVOT_TO_PAGE_BYconstants.- Returns:
WebEventinitialized instance with the information for the pivot manipulation. It will returnnullif not supported.- Since:
- MicroStrategy Web 8.0.1
-
getColHeaderWebMetric
protected WebMetric getColHeaderWebMetric(WebHeader header)
get the metric object for the column header- Overrides:
getColHeaderWebMetricin classAbstractReportGridDisplayCell- Parameters:
header- the column header- Returns:
- the corresponding
WebMetricobject - Since:
- MicroStrategy Web 8.0.1
-
isHeaderMVJsonMovable
protected boolean isHeaderMVJsonMovable()
Fix Issue 418196 for sort in column, if the head cell can be used in sort, it don't use Jsonmap for optimization.- Overrides:
isHeaderMVJsonMovablein classAbstractReportGridCellHeader- Returns:
- boolean value indicating if the Jsonmap should be used
- Since:
- MicroStrategy Web 9.0.2
-
-