Class AbstractReportGridDisplayCell
- java.lang.Object
-
- com.microstrategy.web.app.transforms.AbstractReportGridDisplayCell
-
- All Implemented Interfaces:
ReportGridDisplayCell
,java.lang.Cloneable
- Direct Known Subclasses:
AbstractReportGridCellHeader
,AbstractReportGridCellTitle
,ReportGridCellImpl
,ReportGridCellMetricValueImpl
public abstract class AbstractReportGridDisplayCell extends java.lang.Object implements ReportGridDisplayCell, java.lang.Cloneable
The AbstractReportGridDisplayCell is the base class for those that generate a grid's cell output in Microstrategy Web.
It serves as a place holder for common properties and logic, but most important is the one who controls the execution flow that generates a cell's HTML.
This class encloses every cell into a <TD> tag. ThegenerateOutput(com.microstrategy.web.beans.MarkupOutput)
method generates the tag and its attributes, then it callsgenerateInnerHTML(com.microstrategy.web.beans.MarkupOutput)
.generateInnerHTML(com.microstrategy.web.beans.MarkupOutput)
divides the cell's inner content into three methods:generatePreContent(com.microstrategy.web.beans.MarkupOutput)
: generates the content that goes before the cell's text, typically used for checkboxes needed for drilling or filter on selectionsgenerateContent(com.microstrategy.web.beans.MarkupOutput)
: generates the cell core content, that is, the text displayed to the end user. It will generate the necessary <A> tag if this text needs a link (like in the case of drilling), and then callgenerateText(com.microstrategy.web.beans.MarkupOutput)
to render the text itself.generatePostContent(com.microstrategy.web.beans.MarkupOutput)
: generates the content that coes after the cell's text, typically used for pivoting or sorting buttons.As an example, assume the following output from a
ReportGridDisplayCell
:
output: Cell's text [>] underlying html (simplified): <td><input type="checkbox"><a href="#">Cell's text</a><a href="#">[>]</a></td> is generated by these methods: generateOutput(MarkupOutput)
generateInnerHTML(MarkupOutput)
generatePreContent(MarkupOutput)
generateContent(MarkupOutput)
generatePostContent(MarkupOutput)
generateText(MarkupOutput)
<td> <input type="checkbox"> <a href="#"> Cell's text </a> <a href="#">[>]</a> </td>
- Since:
- MicroStrategy Web 7.5.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractReportGridDisplayCell.Context
ImplementsTransformContext
.protected static class
AbstractReportGridDisplayCell.PivotButtonInfo
-
Field Summary
Fields Modifier and Type Field Description protected WebEvent
_advDrillEditorProcessEvent
Deprecated.Please use the get event methods defined on this class, its children, or on the transform that uses this class.protected WebEvent
_advdrillEvent
Deprecated.Please use the get event methods defined on this class, its children, or on the transform that uses this class.protected java.lang.String[][]
_appliedColSorts
protected java.lang.String[][]
_appliedSorts
protected AnchorTag
_blankDrillAnchorTag
protected java.util.Map
_cachedObjects
Deprecated.The cached objects approach has been replaced with theTransformContext
object.protected java.lang.String
_drillEditorName
Deprecated.This property is no longer used in the logic of this classprotected WebEvent
_drillEditorProcessEvent
Deprecated.usegetDefaultDrillEditorProcessEvent()
insteadprotected WebEvent
_drillEvent
Deprecated.usegetDefaultDrillEvent()
insteadprotected WebEvent
_drillFilterOnSelectionProcessEvent
Deprecated.usegetDefaultDrillFilterOnSelectionEvent()
insteadprotected java.lang.String
_imgBasePath
protected java.lang.Boolean
_isIFrameRequest
Deprecated.please use theisIFrameRequest()
method instead.protected boolean
_isNetscape
protected boolean
_isWrapHeaderText
protected boolean
_itemsAddedToContextMenu
Deprecated.Context menus should be added by modifying the xml definition associated through the AbstractAppTransform's contextMenus formal parameter.protected int
_maxColHeaderDepth
Deprecated.please usegetMaxColHeaderDepth()
method insteadprotected int
_pivotImgHeight
protected int
_pivotImgWidth
protected com.microstrategy.web.app.transforms.SharedCellProperties
_sharedCellProperties
protected WebEvent
_sortEvent
Deprecated.Please use the get event methods defined on this class, its children, or on the transform that uses this class.protected int
_sortImgHeight
protected int
_sortImgWidth
protected java.lang.String
_sortSubtotalColPosition
protected java.lang.String
_sortSubtotalPosition
protected java.lang.String
_sortSubtotalPostion
protected boolean
_specifyIDForCell
Deprecated.This property is no longer used in the logic of this classprotected boolean
_specifyWidthForCell
protected java.lang.String
_text
Deprecated.please usesetText(java.lang.String)
andgetText()
insteadprotected java.lang.String
_typicalURLBeanState
protected java.lang.String
DISPLAY_CELL_CLASS
protected FormalParameters
formalParas
Deprecated.Please access the formal parameter information via the transform defined on the Context object of this instance.protected static java.lang.String
NO
protected ReportBean
rb
Deprecated.please usegetBaseBean()
instead, which will returnViewBean
orReportBean
instance (for old usage).protected static java.lang.String
RETAIN_PARENT_FORMAL_PARAMETER
protected static java.lang.String
RETAIN_THRESHOLDS_FORMAL_PARAMETER
protected static java.lang.String
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 AbstractReportGridDisplayCell()
Constructor used for creating a generic display cell.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addContextMenuAttributes(java.util.Map atts)
Adds into theMap
instance the tag attributes required for processing context menus.protected void
addContextMenuAttributes(java.util.Map atts, java.lang.String menuName, int flag)
Adds into theMap
instance the tag attributes required for processing context menus.protected void
addDragAndDropAttributes(java.util.Map atts)
Adds into theMap
instance the tag attributes required to enable drag and drop operations.void
addExtraAttribute(java.lang.String attributeName, java.lang.String attributeValue)
Define extra tag attributes and their values that shall be included on the table cell definition for the current instance being renderedprotected void
addToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)
protected void
addTooltipAttributes(java.util.Map attributes)
void
addToStyle(java.lang.String value)
Adds values to theSTYLE
attribute of theTD
tag.protected void
appendContextMenuItems(ContextMenu menu)
Deprecated.Context menus should be added by modifying the xml definition associated through the AbstractAppTransform's contextMenus formal parameter.Please see the MSDL context menu scenarios for the new approach.protected java.lang.String
buildGenericTooltipInformation()
Generate generic tooltip information for the current cell being rendered.boolean
canAddThresholds()
Utility methood for determining if the cell object is enabled for displaying the user the option to add threshold to itprotected boolean
canDefineDerivedElements()
boolean
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 controlboolean
canEditMetricFilter()
Utility method for determining if the cell object is enabled editing a metric filterboolean
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
canHyperLink()
Utility method for determining if the cell object is enabled for displaying the user the option to navigate to custom hyperlinksboolean
canInsertShortcutMetric()
Utility methood for determining if the cell object is enabled for displaying the user the option to insert shortcut metrics based on itboolean
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
canPivot()
Utility methood for determining if the cell object is enabled for displaying the user the option to pivot itboolean
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 specifiedboolean
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 itboolean
canSort()
Utility methood for determining if the cell object is enabled for displaying the user the option to sort itprotected boolean
canUse(WebMetric m)
protected 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.java.lang.Object
clone()
Utility method to clone this object.protected boolean
convertNonbreakingSpaceOnMV()
Deprecated.This functionality has been moved to the excel-only related classes such asReportGridExcelCellMetricValueImpl
andReportGridExcelTransform
.protected boolean
decodeEuro()
Deprecated.This method as well as thedecodeEuro
formal parameter itself are not used anymore on the application.protected boolean
encodeMV()
Deprecated.This method is only required at the metric value cell, please useReportGridCellMetricValueImpl.encodeMetricValue()
.protected AnchorTag
generateAnchor(WebEvent event)
Creates an<a>
tag from the EventManager with the Iframe information required if supported.protected void
generateContent(MarkupOutput mo)
Generates the core HTML for this cell.protected void
generateContextMenu(MarkupOutput out)
Deprecated.please usegetContextMenu(java.lang.String)
insteadprotected void
generateDragAndDrop(MarkupOutput mo)
Generate drag and drop properties used in javascript.protected java.util.Map
generateDragAndDropAttributes()
Deprecated.protected void
generateDrillCheckBox(MarkupOutput mo)
Generate the drill check box HTML information for this cell.protected boolean
generateDrillCheckBox(MarkupOutput mo, ReportBean rb, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected boolean
generateDrillCheckBox(MarkupOutput mo, WebHeader header)
Deprecated.please usegenerateDrillCheckBoxTag()
insteadprotected Tag
generateDrillCheckBoxTag()
Generates the tag information for a check box for drilling, if all privileges and conditions required are metprotected void
generateDrillContextMenu(WebHeader header, WebTitle title, WebRowValue rowValue, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options.protected void
generateDrillOpenLink(MarkupOutput mo, ReportBean rb, java.lang.String url, java.lang.String title, boolean javascriptUsedForDrill, java.lang.String sElementID)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected void
generateDrillOpenLink(MarkupOutput mo, java.lang.String url, java.lang.String title, boolean javascriptUsedForDrill, java.lang.String sElementID)
Deprecated.protected void
generateFilterOnSelectionCheckBox(MarkupOutput mo)
Generate the filter on selections check box HTML informationprotected boolean
generateFilterOnSelectionCheckBox(MarkupOutput mo, ReportBean rb, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected boolean
generateFilterOnSelectionCheckBox(MarkupOutput mo, WebHeader header)
Deprecated.please usegenerateFilterOnSelectionCheckBoxTag()
insteadprotected Tag
generateFilterOnSelectionCheckBoxTag()
Generates the tag information for a check box for filter on selection, if all privileges and conditions required are metprotected void
generateHeaderDrillContextMenu(MarkupOutput mo, ReportBean rb, WebHeader header, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected void
generateHeaderDrillContextMenu(WebHeader header, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options.protected void
generateHeaderSortContextMenu(MarkupOutput mo, ReportBean rb, WebHeader header, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected void
generateHeaderSortContextMenu(WebHeader header, ContextMenu rhMenu)
Deprecated.please usegenerateSortContextMenu(com.microstrategy.web.app.gui.ContextMenu)
insteadprotected void
generateInnerHTML(MarkupOutput mo)
This method generates the HTML that goes inside of the <TD> tag.protected void
generateOutlineModeImage(MarkupOutput mo)
Generate the javascript images for collapse and expand for outline mode.protected void
generateOutlineSubTotalName(MarkupOutput mo)
Generate the name of the subtotal type next to the header element for outline mode.void
generateOutput(MarkupOutput mo)
This is the main entry point to generate the output of the cell.protected abstract Tag
generatePivotButton(int type)
protected void
generatePivotButtons(MarkupOutput mo)
Generate pivot buttons.protected void
generatePostContent(MarkupOutput mo)
Generates the postContent of the cell.protected void
generatePreContent(MarkupOutput mo)
Generates the preContent of the cell.protected void
generateRowValueDrillContextMenu(MarkupOutput mo, ReportBean rb, WebRowValue rowValue, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected void
generateRowValueDrillContextMenu(WebRowValue rowValue, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options.protected Tag
generateSortButton()
Generate the sort button tag information for this objectprotected void
generateSortButton(MarkupOutput mo)
Deprecated.usegenerateSortButton()
insteadprotected void
generateSortContextMenu(ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options.protected void
generateText(MarkupOutput mo)
Generates the text of the cell.protected java.lang.String
generateThresholdSymbol(int thresholdValue)
Generates the HTML when the metric value is a "quick symbol" threshold.protected void
generateTitleDrillContextMenu(MarkupOutput mo, ReportBean rb, WebTitle title, java.lang.StringBuffer sTitleURL, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected void
generateTitleDrillContextMenu(WebTitle title, java.lang.StringBuffer sTitleURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options.protected void
generateTitleSortContextMenu(MarkupOutput mo, ReportBean rb, WebTitle title, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected void
generateTitleSortContextMenu(WebTitle title, ContextMenu rhMenu)
Deprecated.please usegenerateSortContextMenu(com.microstrategy.web.app.gui.ContextMenu)
insteadprotected void
generateTooltip(MarkupOutput mo)
Deprecated.usegenerateTooltipContent()
insteadprotected 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 void
generateTooltipForHeaders(MarkupOutput mo)
Deprecated.please use the correspondinggenerateTooltip(com.microstrategy.web.beans.MarkupOutput)
method of the cell class instance (from theAbstractReportGridCellHeader
hierarchy).protected void
generateTooltipForRowValue(MarkupOutput mo)
Deprecated.please use the correspondinggenerateTooltip(com.microstrategy.web.beans.MarkupOutput)
method of the cell class instance (from theReportGridCellMetricValueImpl
hierarchy).protected void
generateTooltipForTitles(MarkupOutput mo)
Deprecated.please use the correspondinggenerateTooltip(com.microstrategy.web.beans.MarkupOutput)
method of the cell class instance (from theAbstractReportGridCellTitle
hierarchy).java.lang.String
getAccessibilityInfo()
Deprecated.addExtraAttribute(java.lang.String, java.lang.String)
is used instead for specifying the accessibility information, for example,addExtraAttribute("scope", "row");
WebComponent
getBaseBean()
Returns the base bean associated with this display cell.protected void
getCellAttributes(java.util.Map attributes)
protected java.lang.String
getCellColor()
java.lang.String
getCellID()
Returns the id for this cell, this will be used as theID
attribute ofTD
tag.protected void
getCellLevelAttributes(java.util.Map cell)
Obtains the type of cell and the grid title index that it belongs toint
getCellType()
Deprecated.The cell type is not significant anymore for the application.protected WebMetric
getColHeaderWebMetric(WebHeader header)
Deprecated.please refer to thegetWebMetric
method on theReportGridCellColHeaderImpl
class.int
getColSpan()
Returns the column span for this cell as registered by the Transform.protected TransformContext
getContext()
Returns the instance of TransformContext with context information for this Transform.protected TransformContext
getContext(TransformContext transformContext)
protected ContextMenu
getContextMenu()
Returns the context menu instance for this cell.protected ContextMenu
getContextMenu(java.lang.String menuName)
Returns the corresponding context-menu.protected java.util.Map
getContextMenuAttributes()
Deprecated.protected java.util.Map
getContextMenuAttributes(java.lang.String menuName, int flag)
Deprecated.protected ContextMenuManager
getContextMenuManager()
get theContextMenuManager
objectWebEvent
getControlElementSelectorEvent(RWControl control, java.lang.String elementList)
Returns the WebEvent to drill from the cell to the given drill path.protected java.lang.String
getCssPrefix()
Deprecated.Please check thecssPrefix
formal parameter value instead.protected WebEvent
getDefaultAdvancedDrillEvent()
protected WebEvent
getDefaultAdvancedDrillProcessEvent()
protected WebEvent
getDefaultDrillEditorProcessEvent()
protected WebEvent
getDefaultDrillEvent()
protected WebEvent
getDefaultDrillEvent(WebDrillPath dp)
protected WebEvent
getDefaultDrillFilterOnSelectionEvent()
protected WebEvent
getDefaultSortEvent()
protected WebEvent
getDerivedElementsEvent(int key)
protected java.lang.String
getDescription()
Returns the text registered as the description of the underlying web object associated with this cell.protected java.lang.String
getDescriptor(int key)
Get descriptor for this keyprotected java.lang.String
getDescriptor(ReportBean rb, int key)
Deprecated.Use method that doesn't receive the ReportBean as an argument.WebEvent
getDrillEvent(WebDrillPath dp, java.lang.String elementId, WebTitle title)
Returns the WebEvent to drill from the cell to the given drill path.java.lang.String
getDrillKey(WebDrillPath dp, WebTitle title)
Deprecated.9.0.1 use getDrillpathKeyInOldFormatprotected java.lang.String
getDrillParametersForDHTML(WebDrillPath dp, WebTitle title)
Returns parameters required for drilling when using javascript forWebTitle
cells.protected java.lang.String
getDrillPath()
Returns the drillPath associated with this cell.static java.lang.String
getDrillpathKey(WebDrillPath dp, WebTitle title)
Deprecated.9.0.1 use getDrillpathKeyInOldFormatstatic java.lang.String
getDrillPathKey(WebDrillPath dp, WebTitle title, ViewBean vb)
static java.lang.String
getDrillpathKeyInOldFormat(WebDrillPath dp, WebTitle title)
WebDrillPath
getDrillPathWithHighImportance()
Obtain the Drill path with high importance information for the current cell being analyzedprotected EventManager
getEventManager()
get theEventManager
objectjava.lang.String
getExtraInfo()
Returns the text assigned by the Transform as extra information of the cell.java.lang.String
getExtraStyle()
Returns the extra style information required for the formatting of the cell as registered by the Transform.java.lang.String
getExtraUrl()
get extra url for the cellprotected WebEvent
getFilterOnEvent(WebObjectInfo targetObject, java.lang.String alias)
protected int
getFPIntValue(java.lang.String fpName)
Returns tha value of a formal parameter which has an integer valueprotected java.lang.String
getFPStringValue(java.lang.String fpName)
Returns tha value of a formal parameter which has a string valueprotected ReportGridDisplayCell
getGridCell(java.lang.String className)
Creates a new instance of a ReportGridDisplayCelljava.lang.String
getHeaderContent(WebHeader header)
Deprecated.The Transform doesn't call this method.protected java.lang.String
getHeaderDrillParametersForDHTML(ReportBean rb, WebDrillPath dp, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected java.lang.String
getHeaderDrillParametersForDHTML(WebDrillPath dp, WebHeader header)
Deprecated.please use the correspondinggetDrillParametersForDHTML(com.microstrategy.web.objects.WebDrillPath, com.microstrategy.web.objects.WebTitle)
interface, depending if it's a header or a title being handled.protected WebDrillPath
getHeaderDrillPathWithHighImportance(ReportBean rb, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected WebDrillPath
getHeaderDrillPathWithHighImportance(WebHeader header)
Deprecated.please usegetDrillPathWithHighImportance()
insteadprotected java.lang.String
getHeaderDrillURL(ReportBean rb, WebDrillPath dp, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected java.lang.String
getHeaderDrillURL(WebDrillPath dp, WebHeader header)
Deprecated.protected java.lang.String
getImgName(java.lang.String fpName)
get the corresponding image name for a formal parameter representing an imageint
getMaxColHeaderDepth()
protected int
getMaxSortAllowed()
Deprecated.Please check themaxSortAllowed
formal parameter value instead.protected WebHeader
getNearestNonMetricRowHeader(WebRowValue rowValue)
WebEvent
getOpenFormatEditorEvent()
Get the event for opening the format editor for the requested target.protected java.lang.String
getPostTextForMetricValue()
Deprecated.Please check thepostTextForMetricValue
formal parameter value instead.protected java.lang.String
getPostTextForNonMetricValue()
Deprecated.Please check thepostTextForNonMetricValue
formal parameter value instead.protected java.lang.String
getPreTextForMetricValue()
Deprecated.Please check thepreTextForMetricValue
formal parameter value instead.protected java.lang.String
getPreTextForNonMetricValue()
Deprecated.Please check thepreTextForNonMetricValue
formal parameter value instead.protected WebEvent
getRenameEvent(int key)
Get the event for renaming the current cellReportBean
getReportBean()
Deprecated.usegetViewBean()
insteadint
getReportDesignMode()
Deprecated.Please check thereportDesignMode
formal parameter value instead.protected ReportGridTransformImpl
getReportGridTransform()
Utility method for returning theReportGridTransformImpl
instance associated with the context of this objectint
getRowSpan()
Returns the row span for this cell as registered by the Transform, this is used as theROWSPAN
attribute ofTD
tag.protected java.lang.String
getRowValueDrillElements(WebRowValue rowValue)
protected java.lang.String
getRowValueDrillParametersForDHTML(ReportBean rb, WebDrillPath dp)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected java.lang.String
getRowValueDrillParametersForDHTML(WebDrillPath dp)
Deprecated.please use thegetDrillParametersForDHTML(com.microstrategy.web.objects.WebDrillPath, com.microstrategy.web.objects.WebTitle)
corresponding interface.protected WebDrillPath
getRowValueDrillPathWithHighImportance(ReportBean rb, WebRowValue rowValue)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected WebDrillPath
getRowValueDrillPathWithHighImportance(WebRowValue rowValue)
Deprecated.please usegetDrillPathWithHighImportance()
insteadprotected java.lang.String
getRowValueDrillURL(ReportBean rb, WebDrillPath dp, WebRowValue rowValue)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected java.lang.String
getRowValueDrillURL(WebDrillPath dp, WebRowValue rowValue)
Deprecated.protected WebEvent
getRWDDrillOutEvent()
protected 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 int
getShowDescriptionAsTooltip(java.lang.String fpName)
Deprecated.Please check theshowDescriptionAsTooltip
formal parameter value instead.protected WebEvent
getSortAscendingEvent()
protected WebEvent
getSortDescendingEvent()
protected WebEvent
getSortEvent()
Deprecated.Please use getSortEvent(int axisEnumViewBeanEvents
)protected WebEvent
getSortEventByAxis(int axis)
protected WebEvent
getSortEventByAxisBySortOrder(int axis, int sortOrder)
protected abstract java.lang.String
getSortID()
This method return the ID to use for sorting this cell.protected boolean
getSortStatus(java.lang.String sSortID, java.lang.String[][] appliedSorts)
get the sort statusjava.lang.String
getStyle()
Returns the css class name associated with the cell as registered by the Transform.protected java.lang.String
getStyleForNonBuiltInFormat(java.lang.String style, int rowOrdinal)
WebSubTitle
getSubTitle()
Returns the underlyingSDK
object associated with this cell.int
getSubtitleIndex()
If attribute forms are displayed, returns the position of theWebSubTitle
within the subtitles collection.protected java.lang.String
getTargetKeys(RWControl ctl, boolean[] usePartialDisplay)
java.lang.String
getText()
Returns the text content of this cell.protected java.lang.String
getTitleDrillParametersForDHTML(ReportBean rb, WebDrillPath dp, WebTitle title)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected java.lang.String
getTitleDrillParametersForDHTML(WebDrillPath dp, WebTitle title)
Deprecated.please use thegetDrillParametersForDHTML(com.microstrategy.web.objects.WebDrillPath, com.microstrategy.web.objects.WebTitle)
interface insteadprotected java.lang.String
getTitleDrillURL(ReportBean rb, WebDrillPath dp, WebTitle title)
Deprecated.Use method that doesn't receive the ReportBean as an argument.protected java.lang.String
getTitleDrillURL(WebDrillPath dp, WebTitle title)
Deprecated.java.lang.String
getTooltip()
Returns the tooltip text for this cell as registered by the Transform.ViewBean
getViewBean()
Returns the view bean associated with this display celljava.lang.String
getWidth()
Returns the width for this cell as registered by the Transform, this is used as theWIDTH
attribute ofTD
tag.protected boolean
groupContextMenuDrillPathsByType()
Deprecated.Please check thegroupContextMenuDrillPathsByType
formal parameter value instead.protected boolean
hasDrillPathsWithHighImportanceAvailable(WebDrillMap wdm)
Helper method to determine if there are drill paths with high importance available for the current cell being renderedprotected boolean
hasMetricFilterCondition()
protected abstract boolean
hasWebObject()
This method allows the abstract class to identify whether the cell has been initialized with a valid WebObject.void
init(TransformContext transformContext)
Initializes the instance.void
init(WebComponent wc, FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore.void
init(WebComponent wc, java.util.HashMap cachedObjects)
Deprecated.use the init interface that receives aReportGridTransformImpl.Context
objectvoid
init(FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore.protected void
initCell()
Initialize the cell title informationprotected void
initDNDForDesignMode(DragAndDropItem item)
This method initializes properties used in javascript for drag and drop in design mode.protected void
initDNDForExecuteMode(DragAndDropItem item)
This method initializes properties used in javascript for drag and drop in view mode.protected void
initDragAndDrop(DragAndDropItem item)
This method initializes properties used in javascript for drag and drop.protected boolean
isAccessibilityMode()
Indicates if the Transform is rendering data in accessibility (508) modeprotected boolean
isContextMenuEnabled()
Deprecated.Please check theisContextMenuEnabled
formal parameter value instead.protected boolean
isContextMenusEnabled()
protected boolean
isDerivedMetric(WebMetric m)
protected boolean
isDesignMode()
Indicates if the Transform is rendering data in design modeprotected boolean
isDhtml()
Indicates if DHTML (javascript) is enabledprotected boolean
isDragAndDropEnabled()
Deprecated.Please check theisDragAndDropEnabled
formal parameter value instead.protected boolean
isFeatureAvailable(java.lang.String name)
Checks if the given feature is available.protected boolean
isFPTrue(java.lang.String fpName)
Returns tha value of a formal parameter which has a boolean value.protected boolean
isFPTrue(java.lang.String fpName, boolean defValue)
Returns tha value of a formal parameter which has a boolean value.protected boolean
isHeaderMVJsonMovable()
protected boolean
isHeaderNeedLink(WebHeader header)
Deprecated.please usecellNeedsLink()
protected boolean
isIframeEnabled()
whether ifram is enabledprotected boolean
isIFrameEnabled()
Deprecated.use isIframeEnabled()protected boolean
isIframeRequest()
whether it's an iframe requestprotected boolean
isIFrameRequest()
Deprecated.use isIframeRequestprotected boolean
isItemsAddedToContextMenu()
return whether there is any item added to the context menuboolean
isMetric()
Indicates if the underlying object of a cell is a metric header.protected boolean
isMetricDrillable(WebHeader header, WebDrillPath drillPath)
return whether the header has a drillable metricprotected boolean
isOutlineModeEnabled()
Indicates whether outline more is enabled for this transformprotected boolean
isRemoveAvailable()
Deprecated.please usecanRemoveFromGrid()
orcanRemoveFromReport()
protected boolean
isRowValueNeedLink(WebRowValue rowValue)
Deprecated.please usecellNeedsLink()
boolean
isRW()
Indicates if the cell is being rendered in the context of report writing (documents).protected boolean
isSortAscending(java.lang.String sSortID, java.lang.String[][] appliedSorts)
check if the sort is ascendingprotected boolean
isTitleNeedLink(WebTitle title)
Deprecated.please usecellNeedsLink()
protected TransformContext
newContext(TransformContext transformContext)
Creates a new instance of a TransformContext.protected NamespaceEncoder
newNamespaceEncoder()
Convenience method to retrieve a new Namespace Encoder object from the stored AppContext.protected void
renderContextMenu(MarkupOutput mo)
Deprecated.usegetContextMenuAttributes(java.lang.String, int)
insteadprotected void
renderPivotButtons(MarkupOutput mo)
void
reset()
Reset all of the instance variables.void
setAccessibilityInfo(java.lang.String accessibilityInfo)
Deprecated.please useaddExtraAttribute(java.lang.String, java.lang.String)
instead, for example,addExtraAttribute("scope", "row");
protected void
setArgumentFromFormalParameter(WebEvent event, int argumentID, java.lang.String paramName)
protected void
setCellColor(java.lang.String value)
void
setCellID(java.lang.String cellID)
Registers the id for this cell, this is used as theID
attribute ofTD
tag.void
setCellType(int cellType)
Deprecated.The cell type is not significant anymore for the application.void
setColSpan(int colSpan)
Sets the col span for this cellvoid
setContent(java.lang.String content)
Registers the main content of the cell.void
setContextMenu(java.lang.String contextMenu)
Deprecated.use the context menu infrastructure for defining this information, or theaddExtraAttribute(java.lang.String, java.lang.String)
method for adding tag attributes.protected void
setDescription(java.lang.String description)
Registers the description of the underlying web object associated with this cell.void
setDrillPath(java.lang.String drillPath)
Sets the drillPath for this cell.void
setExtraInfo(java.lang.String extraInfo)
Registers any extra information that should be appended as part of theTD
's open tag.void
setExtraStyle(java.lang.String extraStyle)
Registers any extra information required for the formatting of the cell.void
setExtraStyle(java.lang.String extraStyle, boolean append)
Updates values to theSTYLE
attribute of theTD
tag.void
setExtraUrl(java.lang.String value)
set extra url for the cellvoid
setHTML(java.lang.String html)
Registers the HTML for this cell.void
setInnerHTML(java.lang.String innerHTML)
Deprecated.The Transform doesn't call this method.void
setPostContent(java.lang.String postContent)
Registers the post-content of the cell.void
setPreContent(java.lang.String preContent)
Registers the pre-content of the cell.void
setRowSpan(int rowSpan)
Registers the row span for this cell, this is used as theROWSPAN
attribute ofTD
tag.void
setStyle(java.lang.String style)
Registers the css style name associated with the cell.protected void
setStyleForNonBuiltInFormat(java.lang.String style, int rowOrdinal)
set the style for the cell when not using the built in report formattingvoid
setSubTitle(WebSubTitle subtitle)
Registers the underlyingSDK
object associated with this cell.void
setSubTitleIndex(int subtitleIndex)
Registers the position of the underlyingWebSubTitle
within the subtitles collection.void
setText(java.lang.String text)
Registers the text content of this cell.void
setTooltip(java.lang.String tooltip)
Registers the text for the tooltop of this cell.void
setWidth(java.lang.String width)
Registers the width for this cell, this is used asWIDTH
attribute ofTD
tag.protected boolean
shouldHiliteOnServer()
Indicate if it's necessary to hilight the selected element on server side.protected boolean
showAdvancedDrillingOptionsInContextMenu()
Deprecated.Please check theadvancedDrillingContextMenuDisplay
formal parameter value instead.protected boolean
showBanding()
Deprecated.Please check theshowBanding
formal parameter value instead.protected boolean
showDrillAdvanced()
Deprecated.Please check theshowDrillAdvanced
formal parameter value instead.protected boolean
showDrillCheckBox()
Deprecated.Please check theshowDrillCheckBox
formal parameter value instead.protected boolean
showDrillDownOnly()
Deprecated.Please check theshowDrillDownOnly
formal parameter value instead.protected boolean
showDrillHyperlink()
Deprecated.Please check theshowDrillHyperlink
formal parameter value instead.protected boolean
showDrillHyperlinkMetric()
Deprecated.Please check theshowDrillHyperlinkMetric
formal parameter value instead.protected boolean
showDrillMetric()
Deprecated.Please check theshowDrillMetric
formal parameter value instead.protected boolean
showDrillPathSetNamesSubMenuAtTopLevel()
Deprecated.Please check theshowDrillPathSetNamesSubMenuAtTopLevel
formal parameter value instead.protected boolean
showDrillRMC()
Deprecated.Please check theshowDrillRMC
formal parameter value instead.protected boolean
showDrillRMCMetric()
Deprecated.Please check theshowDrillRMCMetric
formal parameter value instead.protected boolean
showExtraRemoveRMC()
Deprecated.Please check theshowExtraRemoveRMC
formal parameter value instead.protected boolean
showFilterOnSelectionCheckBox()
Deprecated.Please check theshowFilterOnSelectionCheckBox
formal parameter value instead.protected boolean
showFormattingRMC()
Deprecated.Please check theshowFormattingRMC
formal parameter value instead.protected boolean
showPivot()
Deprecated.Please check theshowPivot
formal parameter value instead.protected boolean
showPivotRMC()
Deprecated.Please check theshowPivotRMC
formal parameter value instead.protected boolean
showRemove()
Deprecated.Please check theshowRemove
formal parameter value instead.protected boolean
showRemoveFromReport()
Determine whether to show the 'Remove from Report' option according to the objects already defined on the template.protected boolean
showRemoveFromReport(int metricSize, int wkSetSize)
Determine if we should show the 'Remove from Report' option depending on the number of metrics and the working set sizeprotected boolean
showRemoveRMC()
Deprecated.Please check theshowRemoveRMC
formal parameter value instead.protected boolean
showRenameRMC()
Deprecated.Please check theshowRenameRMC
formal parameter value instead.protected boolean
showSortButtonsForAttributes()
Deprecated.Please check theshowSortButtonsForAttributes
formal parameter value instead.protected boolean
showSortButtonsForMetrics()
Deprecated.Please check theshowSortButtonsForMetrics
formal parameter value instead.protected boolean
showSortRMCForAttributes()
Deprecated.Please check theshowSortRMCForAttributes
formal parameter value instead.protected boolean
showSortRMCForMetrics()
Deprecated.Please check theshowSortRMCForMetrics
formal parameter value instead.protected boolean
showSubtitle()
Indicates whether to display sub titles (attribute forms).protected boolean
showSubTitle()
Deprecated.Use showSubtitle instead.protected boolean
sortSetNamesAndDrillPaths()
Deprecated.Please check thesortSetNamesAndDrillPaths
formal parameter value instead.protected boolean
useBuiltInFormat()
Deprecated.Please check theuseBuiltInFormat
formal parameter value instead.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.app.transforms.ReportGridDisplayCell
canHaveDerivedElements, getDerivedElementsEvent, getFilterOnEvent, getKey, getRenameEvent
-
-
-
-
Field Detail
-
_isWrapHeaderText
protected boolean _isWrapHeaderText
-
_blankDrillAnchorTag
protected AnchorTag _blankDrillAnchorTag
- Since:
- MicroStrategy Web 9.0.0
-
_sharedCellProperties
protected com.microstrategy.web.app.transforms.SharedCellProperties _sharedCellProperties
- Since:
- MicroStrategy Web 8.1.0
-
_drillEvent
protected WebEvent _drillEvent
Deprecated.usegetDefaultDrillEvent()
instead
-
_drillEditorProcessEvent
protected WebEvent _drillEditorProcessEvent
Deprecated.usegetDefaultDrillEditorProcessEvent()
instead
-
_drillFilterOnSelectionProcessEvent
protected WebEvent _drillFilterOnSelectionProcessEvent
Deprecated.usegetDefaultDrillFilterOnSelectionEvent()
instead
-
_appliedSorts
protected java.lang.String[][] _appliedSorts
-
_appliedColSorts
protected java.lang.String[][] _appliedColSorts
- Since:
- MicroStrategy Web 8.0.2
-
_sortSubtotalPostion
protected java.lang.String _sortSubtotalPostion
-
_sortSubtotalPosition
protected java.lang.String _sortSubtotalPosition
- Since:
- MicroStrategy Web 8.1.0
-
_sortSubtotalColPosition
protected java.lang.String _sortSubtotalColPosition
- Since:
- MicroStrategy Web 8.0.2
-
_typicalURLBeanState
protected java.lang.String _typicalURLBeanState
- Since:
- MicroStrategy Web 8.0.0
-
_maxColHeaderDepth
protected int _maxColHeaderDepth
Deprecated.please usegetMaxColHeaderDepth()
method instead
-
_imgBasePath
protected java.lang.String _imgBasePath
-
_isNetscape
protected boolean _isNetscape
-
_specifyWidthForCell
protected boolean _specifyWidthForCell
-
_itemsAddedToContextMenu
protected boolean _itemsAddedToContextMenu
Deprecated.Context menus should be added by modifying the xml definition associated through the AbstractAppTransform's contextMenus formal parameter. Please see the MSDL context menu scenarios for the new approach.- See Also:
AbstractAppTransform.contextMenus
-
_advDrillEditorProcessEvent
protected WebEvent _advDrillEditorProcessEvent
Deprecated.Please use the get event methods defined on this class, its children, or on the transform that uses this class.
-
formalParas
protected FormalParameters formalParas
Deprecated.Please access the formal parameter information via the transform defined on the Context object of this instance.
-
_drillEditorName
protected java.lang.String _drillEditorName
Deprecated.This property is no longer used in the logic of this class
-
_sortEvent
protected WebEvent _sortEvent
Deprecated.Please use the get event methods defined on this class, its children, or on the transform that uses this class.
-
_advdrillEvent
protected WebEvent _advdrillEvent
Deprecated.Please use the get event methods defined on this class, its children, or on the transform that uses this class.
-
_specifyIDForCell
protected boolean _specifyIDForCell
Deprecated.This property is no longer used in the logic of this class
-
_cachedObjects
protected java.util.Map _cachedObjects
Deprecated.The cached objects approach has been replaced with theTransformContext
object. Please obtain the required information from the context object.
-
_text
protected java.lang.String _text
Deprecated.please usesetText(java.lang.String)
andgetText()
instead
-
rb
protected ReportBean rb
Deprecated.please usegetBaseBean()
instead, which will returnViewBean
orReportBean
instance (for old usage).
-
_isIFrameRequest
protected java.lang.Boolean _isIFrameRequest
Deprecated.please use theisIFrameRequest()
method instead.
-
_pivotImgHeight
protected int _pivotImgHeight
- Since:
- MicroStrategy Web 8.0.0
-
_pivotImgWidth
protected int _pivotImgWidth
- Since:
- MicroStrategy Web 8.0.0
-
_sortImgHeight
protected int _sortImgHeight
- Since:
- MicroStrategy Web 8.0.0
-
_sortImgWidth
protected int _sortImgWidth
- Since:
- MicroStrategy Web 8.0.0
-
RETAIN_THRESHOLDS_FORMAL_PARAMETER
protected static final java.lang.String RETAIN_THRESHOLDS_FORMAL_PARAMETER
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
RETAIN_PARENT_FORMAL_PARAMETER
protected static final java.lang.String RETAIN_PARENT_FORMAL_PARAMETER
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
NO
protected static final java.lang.String NO
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
YES
protected static final java.lang.String YES
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
DISPLAY_CELL_CLASS
protected final java.lang.String DISPLAY_CELL_CLASS
- Since:
- MicroStrategy Web 7.5.2
- See Also:
- Constant Field Values
-
-
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
-
getMaxColHeaderDepth
public int getMaxColHeaderDepth()
- Since:
- MicroStrategy Web 8.0.1
-
initCell
protected void initCell()
Initialize the cell title information- Since:
- MicroStrategy Web 8.0.1
-
init
public void init(TransformContext transformContext)
Description copied from interface:ReportGridDisplayCell
Initializes the instance.- Specified by:
init
in interfaceReportGridDisplayCell
- Parameters:
transformContext
-TransformContext
instance that contains a reference to the transform being used to render the overall grid information- Since:
- MicroStrategy Web 8.0.1
-
clone
public java.lang.Object clone()
Utility method to clone this object.- Overrides:
clone
in classjava.lang.Object
- Returns:
- the cloned object
-
isContextMenusEnabled
protected boolean isContextMenusEnabled()
- Since:
- MicroStrategy Web 8.0.1
-
generateOutput
public void generateOutput(MarkupOutput mo)
This is the main entry point to generate the output of the cell.
This method is the one used by the
Transform
to delegate execution. It is responsible for generating the complete HTML output for the cell.Developers can overwrite the
generateOutput(com.microstrategy.web.beans.MarkupOutput)
method to set any text they want to display for the cell.- Specified by:
generateOutput
in interfaceReportGridDisplayCell
- Parameters:
mo
- the output object
-
getCellAttributes
protected void getCellAttributes(java.util.Map attributes)
- Since:
- MicroStrategy Web 9.0.0
-
addTooltipAttributes
protected void addTooltipAttributes(java.util.Map attributes)
-
getViewBean
public ViewBean getViewBean()
Returns the view bean associated with this display cell- Returns:
- the view bean
- Since:
- MicroStrategy Web 8.0.0
-
getBaseBean
public WebComponent getBaseBean()
Returns the base bean associated with this display cell. The base bean should be used to calculate features and other general functionality from the underlying WebComponent.- Returns:
- the base bean
- Since:
- MicroStrategy Web 8.0.0
-
generateInnerHTML
protected void generateInnerHTML(MarkupOutput mo)
This method generates the HTML that goes inside of the <TD> tag. It divides the output by calling three methods:
- generateContent: generates the core portion of the HTML, it include the cell's text and its corresponding HTML.
- generatePreContent: generates the HTML that goes before the content. This is used to generate the checkboxes for drilling.
- generatePostContent: generates the HTML that goes after the content. This is used to generate sorting and pivoting buttons.
Developers can either use the
The following is an example of the code that is executed by this method:setInnerHTML(java.lang.String)
method to set any text they want for the inner HTML or override this method to inherit its functionality and build on top of it.protected void generateInnerHTML(MarkupOutput mo) { generatePreContent(mo); generateContent(mo); generatePostContent(mo); }
- Parameters:
mo
- the output object
-
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 extendsetPreContent(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>"); }
- Parameters:
mo
- the output object
-
generateContent
protected void generateContent(MarkupOutput mo)
Generates the core HTML for this cell. By default, this method just calls thegenerateText
to include the cell's text.Developers can either use the
setContent(java.lang.String)
method to set any text they want to display for the contents of the cell or override this method to inherit its functionality and build on top of it.The following is an example of the code that is executed by this method:
public void generateContent(MarkupOutput mo) { generateText(mo); }
As an example, the following code could be used to extend this method to add a <BR> tag after content in any of the classes that extend
AbstractReportGridDisplayCell
:
public void generateContent(MarkupOutput mo) { super.generateContent(mo); mo.append("<br>"); }
- Parameters:
mo
- the output object
-
generateText
protected void generateText(MarkupOutput mo)
Generates the text of the cell. This is the the text that gets displayed by the browser.
Developers can either use the
For example, the following code could be used to extend this method to render a hyphen if the cell content is empty:setText(java.lang.String)
method to set any text they want to display for the cell or override this method to inherit its functionality and build on top of it.
public void generateText(MarkupOutput mo) { String text = getText(); if ("".equals(text) || " ".equals(text)) { mo.append("-"); } else { super.generateText(mo); } }
- Parameters:
mo
- the output object- Since:
- MicroStrategy Web 8.0.0
-
generatePostContent
protected void generatePostContent(MarkupOutput mo)
Generates the postContent of the cell. The post-Content means the html content after the core content of the cell. Usually this method generates sort and pivot buttons as well as subtotals for outline mode.
Developers can either use the
For example, the following code could be used to extend this method to add a submit button after the cell content in any of the classes that extendsetPostContent(java.lang.String)
method to set any text they want to display after the contents of the cell or override this method to inherit its functionality and build on top of it.AbstractReportGridDisplayCell
:
public void generatePostContent(MarkupOutput mo) { super.generatePostContent(mo); mo.append("<INPUT TYPE=\"SUBMIT\" NAME=\"Submit request\" />"); }
- Parameters:
mo
- the output object
-
getContextMenu
protected ContextMenu getContextMenu(java.lang.String menuName)
Returns the corresponding context-menu. If a validContextMenu
has been provided, the transform will use it to populate the context-menu, otherwise it will return an emptyContextMenu
instance.- Parameters:
menuName
- Name of the context-menu- Returns:
ContextMenu
instance related with the name requested. If not found, it will be an empty instance returned.- Since:
- MicroStrategy Web 8.0.1
-
addContextMenuAttributes
protected void addContextMenuAttributes(java.util.Map atts)
Adds into theMap
instance the tag attributes required for processing context menus.- Parameters:
atts
-Map
where attributes will be appended.- Since:
- MicroStrategy Web 8.1.0
-
addContextMenuAttributes
protected void addContextMenuAttributes(java.util.Map atts, java.lang.String menuName, int flag)
Adds into theMap
instance the tag attributes required for processing context menus.- Parameters:
atts
-Map
where attributes will be appended.menuName
- The context-menu name, the name should correspond to a valid <shortcut-list> from the context-menus' xml definition, otherwise "default" is used.flag
- TheinfoFlag
attribute of theContextMenu.addTagAttributes(java.util.Map<java.lang.String, java.lang.String>)
method.- Since:
- MicroStrategy Web 8.1.0
-
addToHeaderMetricValueJsonMap
protected void addToHeaderMetricValueJsonMap(java.lang.String key, java.lang.String value)
-
isHeaderMVJsonMovable
protected boolean isHeaderMVJsonMovable()
-
getContextMenuAttributes
protected java.util.Map getContextMenuAttributes(java.lang.String menuName, int flag)
Deprecated.Returns aMap
with the tag attributes that should be added to the cell's definition for processing context menus.
Notice this method has been deprecated for performance reasons. If it's necessary to include extra attributes related to context-menus override theaddContextMenuAttributes(Map atts)
method. Although this method is still invoked under normal cell execution, it now returnsnull
. If a subclass overrides this method and returns a Map instance, the members of the Map are appended to the cell's tag attributes.- Since:
- MicroStrategy Web 8.0.1
-
getContextMenuAttributes
protected java.util.Map getContextMenuAttributes()
Deprecated.Returns aMap
with the tag attributes that should be added to the cell's definition for processing context menus.
Notice this method has been deprecated for performance reasons. If it's necessary to include extra attributes related to context-menus override theaddContextMenuAttributes(Map atts)
method. Although this method is still invoked under normal cell execution, it now returnsnull
. If a subclass overrides this method and returns a Map instance, the members of the Map are appended to the cell's tag attributes.- Since:
- MicroStrategy Web 8.0.1
-
getCellLevelAttributes
protected void getCellLevelAttributes(java.util.Map cell)
Obtains the type of cell and the grid title index that it belongs to- Parameters:
cell
-- Since:
- MicroStrategy Web 9.0.0
-
appendContextMenuItems
protected void appendContextMenuItems(ContextMenu menu)
Deprecated.Context menus should be added by modifying the xml definition associated through the AbstractAppTransform's contextMenus formal parameter.Please see the MSDL context menu scenarios for the new approach.- Since:
- MicroStrategy Web 8.0.0
- See Also:
AbstractAppTransform.contextMenus
-
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- Returns:
- String with the information about the tooltip to render for the current cell.
- Since:
- MicroStrategy Web 8.0.1
-
generateDrillCheckBox
protected void generateDrillCheckBox(MarkupOutput mo)
Generate the drill check box HTML information for this cell.- Parameters:
mo
- the output object
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Creates an<a>
tag from the EventManager with the Iframe information required if supported.- Parameters:
event
- the WebEvent to generate the link with the request- Returns:
AnchorTag
instance initialized with the information from the event- Since:
- MicroStrategy Web 8.0.1
-
generateFilterOnSelectionCheckBox
protected void generateFilterOnSelectionCheckBox(MarkupOutput mo)
Generate the filter on selections check box HTML information- Parameters:
mo
- the output object
-
generateOutlineModeImage
protected void generateOutlineModeImage(MarkupOutput mo)
Generate the javascript images for collapse and expand for outline mode.- Parameters:
mo
- the output object
-
generateOutlineSubTotalName
protected void generateOutlineSubTotalName(MarkupOutput mo)
Generate the name of the subtotal type next to the header element for outline mode.- Parameters:
mo
- the output object
-
generateSortButton
protected Tag generateSortButton()
Generate the sort button tag information for this object- Returns:
Tag
instance initialized if sort is supported.- Since:
- MicroStrategy Web 8.0.1
-
generatePivotButtons
protected void generatePivotButtons(MarkupOutput mo)
Generate pivot buttons.- Parameters:
mo
- the output object
-
generatePivotButton
protected abstract Tag generatePivotButton(int type)
-
renderPivotButtons
protected void renderPivotButtons(MarkupOutput mo)
-
buildGenericTooltipInformation
protected java.lang.String buildGenericTooltipInformation()
Generate generic tooltip information for the current cell being rendered. Might include description, drill and generic hints as enabled and available.- Returns:
- String value with the tooltip information that can be added to the cell HTML output.
- Since:
- MicroStrategy Web 8.0.1
-
isMetric
public boolean isMetric()
Indicates if the underlying object of a cell is a metric header.- Returns:
- whether the cell is containing a metric
-
hasMetricFilterCondition
protected boolean hasMetricFilterCondition()
- Since:
- MicroStrategy Web 9.0.0
-
generateDragAndDropAttributes
protected java.util.Map generateDragAndDropAttributes()
Deprecated.Returns aMap
with the tag attributes that should be added to the cell's definition to enable drag and drop operations.
Notice this method has been deprecated for performance reasons. If it's necessary to include extra attributes related to context-menus override theaddDragAndDropAttributes(Map atts)
method. Although this method is still invoked under normal cell execution, it now returnsnull
. If a subclass overrides this method and returns a Map instance, the members of the Map are appended to the cell's tag attributes.- Since:
- MicroStrategy Web 8.0.1
-
addDragAndDropAttributes
protected void addDragAndDropAttributes(java.util.Map atts)
Adds into theMap
instance the tag attributes required to enable drag and drop operations.- Parameters:
atts
-Map
where attributes will be appended.- Since:
- MicroStrategy Web 8.1.0
-
generateDragAndDrop
protected void generateDragAndDrop(MarkupOutput mo)
Generate drag and drop properties used in javascript.- Parameters:
mo
- the output object
-
initDragAndDrop
protected void initDragAndDrop(DragAndDropItem item)
This method initializes properties used in javascript for drag and drop.- Parameters:
item
- DragAndDropItem
-
initDNDForDesignMode
protected void initDNDForDesignMode(DragAndDropItem item)
This method initializes properties used in javascript for drag and drop in design mode.- Parameters:
item
- DragAndDropItem
-
initDNDForExecuteMode
protected void initDNDForExecuteMode(DragAndDropItem item)
This method initializes properties used in javascript for drag and drop in view mode.- Parameters:
item
- DragAndDropItem
-
getDescriptor
protected java.lang.String getDescriptor(int key)
Get descriptor for this key- Parameters:
key
- input key as an int- Returns:
- descriptor as a String
- Since:
- MicroStrategy Web 8.0.0
-
hasWebObject
protected abstract boolean hasWebObject()
This 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.- Returns:
- true if the cell has underlying
WebObject
. - Since:
- MicroStrategy Web 8.0.0
-
isOutlineModeEnabled
protected boolean isOutlineModeEnabled()
Indicates whether outline more is enabled for this transform- Returns:
true
if outline mode is enabled
-
showSubtitle
protected boolean showSubtitle()
Indicates whether to display sub titles (attribute forms).- Returns:
true
if the transform is displaying sub title
-
isDesignMode
protected boolean isDesignMode()
Indicates if the Transform is rendering data in design mode- Returns:
true
if in design mode.
-
isAccessibilityMode
protected boolean isAccessibilityMode()
Indicates if the Transform is rendering data in accessibility (508) mode- Returns:
true
if in 508 mode.- Since:
- MicroStrategy Web 8.0.0
-
isDhtml
protected boolean isDhtml()
Indicates if DHTML (javascript) is enabled- Returns:
true
if using DHTML.- Since:
- MicroStrategy Web 7.5.4
-
isFeatureAvailable
protected boolean isFeatureAvailable(java.lang.String name)
Checks if the given feature is available. It callsgetBaseBean().isFeatureAvailable(name)
.- Parameters:
name
- Feature name- Returns:
false
if the feature should be disabled.- Since:
- MicroStrategy Web 7.5.4
-
isRW
public boolean isRW()
Indicates if the cell is being rendered in the context of report writing (documents).- Specified by:
isRW
in interfaceReportGridDisplayCell
- Returns:
true
if parent of the base bean is aRWBean
- Since:
- MicroStrategy Web 8.0.0
-
getImgName
protected java.lang.String getImgName(java.lang.String fpName)
get the corresponding image name for a formal parameter representing an image- Parameters:
fpName
- formal parameter name- Returns:
- image name
-
getFPStringValue
protected java.lang.String getFPStringValue(java.lang.String fpName)
Returns tha value of a formal parameter which has a string value- Parameters:
fpName
- formal parameter name- Returns:
- formal parameter value
-
getFPIntValue
protected int getFPIntValue(java.lang.String fpName)
Returns tha value of a formal parameter which has an integer value- Parameters:
fpName
- formal parameter name- Returns:
- formal parameter value
-
isFPTrue
protected boolean isFPTrue(java.lang.String fpName, boolean defValue)
Returns tha value of a formal parameter which has a boolean value.- Parameters:
fpName
- formal parameter namedefValue
- value to use if the formal parameter doesn't exist or if its value is null.- Returns:
- formal parameter value
-
isFPTrue
protected boolean isFPTrue(java.lang.String fpName)
Returns tha value of a formal parameter which has a boolean value.- Parameters:
fpName
- formal parameter name- Returns:
- formal parameter value
-
setStyleForNonBuiltInFormat
protected void setStyleForNonBuiltInFormat(java.lang.String style, int rowOrdinal)
set the style for the cell when not using the built in report formatting- Parameters:
style
- style namerowOrdinal
- row ordial
-
getStyleForNonBuiltInFormat
protected java.lang.String getStyleForNonBuiltInFormat(java.lang.String style, int rowOrdinal)
-
getDrillParametersForDHTML
protected java.lang.String getDrillParametersForDHTML(WebDrillPath dp, WebTitle title)
Returns parameters required for drilling when using javascript forWebTitle
cells.- Parameters:
dp
- the drill pathtitle
- theWebTitle
object- Returns:
- the url string
- Since:
- MicroStrategy Web 8.0.0
-
getDrillPathWithHighImportance
public WebDrillPath getDrillPathWithHighImportance()
Obtain the Drill path with high importance information for the current cell being analyzed- Specified by:
getDrillPathWithHighImportance
in interfaceReportGridDisplayCell
- Returns:
WebDrillPath
instance initialized, with the drill path with high importance information if available, otherwise returnsnull
- Since:
- MicroStrategy Web 8.0.1
-
generateDrillCheckBoxTag
protected Tag generateDrillCheckBoxTag()
Generates the tag information for a check box for drilling, if all privileges and conditions required are met- Returns:
Tag
instance initialized with the information of a check box for requesting drill manipulations. If not enabled or available, returnsnull
- Since:
- MicroStrategy Web 8.0.1
-
generateFilterOnSelectionCheckBoxTag
protected Tag generateFilterOnSelectionCheckBoxTag()
Generates the tag information for a check box for filter on selection, if all privileges and conditions required are met- Returns:
Tag
instance initialized with the information of a check box for requesting a filter on selection manipulations. If not enabled or available, returnsnull
- Since:
- MicroStrategy Web 8.0.1
-
hasDrillPathsWithHighImportanceAvailable
protected boolean hasDrillPathsWithHighImportanceAvailable(WebDrillMap wdm)
Helper method to determine if there are drill paths with high importance available for the current cell being rendered- Parameters:
wdm
- WebDrillMap instance associated with the cell being rendered- Returns:
- boolean value indicating if there are drill paths with high importance available
- Since:
- MicroStrategy Web 8.0.1
-
cellNeedsLink
protected 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.- Returns:
- boolean value indicating if the current cell should be displayed as a link.
- Since:
- MicroStrategy Web 8.0.1
-
getSortStatus
protected boolean getSortStatus(java.lang.String sSortID, java.lang.String[][] appliedSorts)
get the sort status- Parameters:
sSortID
- sortIDappliedSorts
- the sort information array- Returns:
- whether the sortID is in the sort information array
-
isSortAscending
protected boolean isSortAscending(java.lang.String sSortID, java.lang.String[][] appliedSorts)
check if the sort is ascending- Parameters:
sSortID
- the sort idappliedSorts
- the sort information array- Returns:
- whether the sort is ascending
-
isItemsAddedToContextMenu
protected boolean isItemsAddedToContextMenu()
return whether there is any item added to the context menu- Returns:
- whether there is any item added to the context menu
-
setExtraUrl
public void setExtraUrl(java.lang.String value)
set extra url for the cell- Parameters:
value
- extra url for the cell
-
getExtraUrl
public java.lang.String getExtraUrl()
get extra url for the cell- Returns:
- extra url for the cell
-
isIframeEnabled
protected boolean isIframeEnabled()
whether ifram is enabled- Returns:
- whether ifram is enabled
-
getContextMenuManager
protected ContextMenuManager getContextMenuManager()
get theContextMenuManager
object- Returns:
ContextMenuManager
object
-
isMetricDrillable
protected boolean isMetricDrillable(WebHeader header, WebDrillPath drillPath)
return whether the header has a drillable metric- Parameters:
header
- the header objectdrillPath
- the drill path- Returns:
- whether the header has a drillable metric
-
showRemoveFromReport
protected boolean showRemoveFromReport()
Determine whether to show the 'Remove from Report' option according to the objects already defined on the template.- Returns:
true
if should display the 'Remove from Report' option.- Since:
- MicroStrategy Web 8.0.0
-
showRemoveFromReport
protected boolean showRemoveFromReport(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- Parameters:
metricSize
- number of metricswkSetSize
- working set size- Returns:
true
if working set is not empty or if the working set size is greater than the metrics size.- Since:
- MicroStrategy Web 8.0.0
-
encodeMV
protected boolean encodeMV()
Deprecated.This method is only required at the metric value cell, please useReportGridCellMetricValueImpl.encodeMetricValue()
.Whether to HTML-encode metric values (based on the preference value)- Returns:
- Whether to HTML-encode metric values.
-
getEventManager
protected EventManager getEventManager()
get theEventManager
object- Returns:
- the
EventManager
object
-
isIframeRequest
protected boolean isIframeRequest()
whether it's an iframe request- Returns:
- whether it's an iframe request
-
getNearestNonMetricRowHeader
protected WebHeader getNearestNonMetricRowHeader(WebRowValue rowValue)
-
getRowValueDrillElements
protected java.lang.String getRowValueDrillElements(WebRowValue rowValue)
-
newNamespaceEncoder
protected NamespaceEncoder newNamespaceEncoder()
Convenience method to retrieve a new Namespace Encoder object from the stored AppContext.- Returns:
- A new instance of a NamespaceEncoder object that encode names.
- Since:
- MicroStrategy Web 8.0.0
-
setArgumentFromFormalParameter
protected void setArgumentFromFormalParameter(WebEvent event, int argumentID, java.lang.String paramName)
- Since:
- MicroStrategy Web 8.0.0
-
getFilterOnEvent
protected WebEvent getFilterOnEvent(WebObjectInfo targetObject, java.lang.String alias)
- Since:
- MicroStrategy Web 8.0.1
-
getRenameEvent
protected WebEvent getRenameEvent(int key)
Get the event for renaming the current cell- Returns:
WebEvent
instance initialized with the information for renaming the current cell.- Since:
- MicroStrategy Web 8.0.1
-
getDerivedElementsEvent
protected WebEvent getDerivedElementsEvent(int key)
- Since:
- MicroStrategy Web 9.0.0
-
getDrillEvent
public WebEvent getDrillEvent(WebDrillPath dp, java.lang.String elementId, WebTitle title)
Returns the WebEvent to drill from the cell to the given drill path.- Specified by:
getDrillEvent
in interfaceReportGridDisplayCell
- Parameters:
dp
- The drill path to use for drilling.elementId
- The key for the element to drill totitle
- The WebTitle to drill from.- Since:
- MicroStrategy Web 8.0.0
-
getControlElementSelectorEvent
public WebEvent getControlElementSelectorEvent(RWControl control, java.lang.String elementList)
Returns the WebEvent to drill from the cell to the given drill path.- Specified by:
getControlElementSelectorEvent
in interfaceReportGridDisplayCell
- Parameters:
control
-RWControl
elementList
- String- Since:
- MicroStrategy Web 8.1.0
-
getDrillKey
public java.lang.String getDrillKey(WebDrillPath dp, WebTitle title)
Deprecated.9.0.1 use getDrillpathKeyInOldFormat- Since:
- MicroStrategy Web 8.0.0
-
getDrillpathKey
public static java.lang.String getDrillpathKey(WebDrillPath dp, WebTitle title)
Deprecated.9.0.1 use getDrillpathKeyInOldFormat- Since:
- MicroStrategy Web 9.0.0
-
getDrillPathKey
public static java.lang.String getDrillPathKey(WebDrillPath dp, WebTitle title, ViewBean vb)
-
getDrillpathKeyInOldFormat
public static java.lang.String getDrillpathKeyInOldFormat(WebDrillPath dp, WebTitle title)
-
getSortID
protected abstract java.lang.String getSortID()
This method return the ID to use for sorting this cell.- Returns:
- The ID to use for sorting this cell.
- Since:
- MicroStrategy Web 8.0.0
-
getSortEvent
protected WebEvent getSortEvent()
Deprecated.Please use getSortEvent(int axisEnumViewBeanEvents
)- Since:
- MicroStrategy Web 8.0.0
-
getSortEventByAxis
protected WebEvent getSortEventByAxis(int axis)
- Parameters:
axis
- specifies the axisEnumViewBeanEvents
on which the sort is defined- Since:
- MicroStrategy Web 8.0.2
-
getSortAscendingEvent
protected WebEvent getSortAscendingEvent()
- Since:
- MicroStrategy Web 8.0.0
-
getSortEventByAxisBySortOrder
protected WebEvent getSortEventByAxisBySortOrder(int axis, int sortOrder)
- Since:
- MicroStrategy Web 8.0.2
-
getSortDescendingEvent
protected WebEvent getSortDescendingEvent()
- Since:
- MicroStrategy Web 8.0.0
-
getGridCell
protected ReportGridDisplayCell getGridCell(java.lang.String className)
Creates a new instance of a ReportGridDisplayCell- Parameters:
className
- a fully qualified class name.- Returns:
- a new instance of a ReportGridDisplayCell
- Since:
- MicroStrategy Web 7.5.2
-
getReportGridTransform
protected ReportGridTransformImpl getReportGridTransform()
Utility method for returning theReportGridTransformImpl
instance associated with the context of this object- Returns:
ReportGridTransformImpl
instance as defined on the context object of this instance. If not available, it will returnnull
- Since:
- MicroStrategy Web 8.0.1
-
canRemoveFromGrid
public boolean canRemoveFromGrid()
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the grid.- Specified by:
canRemoveFromGrid
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canRemoveFromReport
public boolean canRemoveFromReport()
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the report- Specified by:
canRemoveFromReport
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canRename
public boolean canRename()
Utility methood for determining if the cell object is enabled for displaying the user the option to rename it- Specified by:
canRename
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canFilterOn
public boolean canFilterOn()
Utility methood for determining if the cell object is enabled for displaying the user the option to filter on it- Specified by:
canFilterOn
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canFormat
public boolean canFormat()
Utility methood for determining if the cell object is enabled for displaying the user the option to format it- Specified by:
canFormat
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- 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:
canSort
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canDrill
public boolean canDrill()
Utility methood for determining if the cell object is enabled for displaying the user the option to drill on it- Specified by:
canDrill
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
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
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.1.2
-
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
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canQuickGroup
public boolean canQuickGroup()
- Specified by:
canQuickGroup
in interfaceReportGridDisplayCell
- Since:
- MicroStrategy Web 9.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:
canInsertShortcutMetric
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
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
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.1.0
-
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:
canPivot
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canOpenAlerts
public boolean canOpenAlerts()
- Specified by:
canOpenAlerts
in interfaceReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
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:
canPivot
in interfaceReportGridDisplayCell
- 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_BY
andReportGridDisplayCell.PIVOT_REMOVE
constants.- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canModifyAttributeForm
public boolean canModifyAttributeForm()
Utility methood for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on it- Specified by:
canModifyAttributeForm
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 8.0.1
-
canMetricFilterOn
public boolean canMetricFilterOn()
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
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 9.0.0
-
canUse
protected boolean canUse(WebMetric m)
- Since:
- MicroStrategy Web 9.0.0
-
isDerivedMetric
protected boolean isDerivedMetric(WebMetric m)
- Since:
- MicroStrategy Web 9.0.0
-
canEditMetricFilter
public boolean canEditMetricFilter()
Description copied from interface:ReportGridDisplayCell
Utility method for determining if the cell object is enabled editing a metric filter- Specified by:
canEditMetricFilter
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 9.0.0
-
canAddThresholds
public boolean canAddThresholds()
Utility methood for determining if the cell object is enabled for displaying the user the option to add threshold to it- Specified by:
canAddThresholds
in interfaceReportGridDisplayCell
- Returns:
- boolean value indicating if the manipulation should be enabled
- Since:
- MicroStrategy Web 9.0.0
-
getContext
protected TransformContext getContext()
Returns the instance of TransformContext with context information for this Transform.- Since:
- MicroStrategy Web 8.0.1
- See Also:
getContextMenu(java.lang.String)
-
getContext
protected TransformContext getContext(TransformContext transformContext)
- Since:
- MicroStrategy Web 8.0.1
-
newContext
protected TransformContext newContext(TransformContext transformContext)
Creates a new instance of a TransformContext. It's used by the getContext method the first time is invoked. Transforms who require to include extra information in the context should create their own TransformContext implementation (possibly a subclass of AppTransformContext) and returns a new instance in this method.- Since:
- MicroStrategy Web 8.0.1
-
getStyle
public java.lang.String getStyle()
Returns the css class name associated with the cell as registered by the Transform.
If set, this is the one assigned to theCLASS
attribute of theTD
tag to control its formatting.- Specified by:
getStyle
in interfaceReportGridDisplayCell
- Returns:
- The css class name as registered by the Transform.
-
setStyle
public void setStyle(java.lang.String style)
Registers the css style name associated with the cell.
This text will be assigned as theCLASS
attribute of theTD
tag to control the format of the cells that share the sameCLASS
.- Specified by:
setStyle
in interfaceReportGridDisplayCell
- Parameters:
style
- The css class name
-
setSubTitle
public void setSubTitle(WebSubTitle subtitle)
Registers the underlyingSDK
object associated with this cell. If the report is in execute mode and attribute forms are displayed, the Transform calls this method to associate aWebSubTitle
with the cell.- Parameters:
subtitle
- The correspondingWebSubTitle
to associate with the cell.
-
getSubTitle
public WebSubTitle getSubTitle()
Returns the underlyingSDK
object associated with this cell. If the report is in execute mode and attribute forms are displayed, it returns the correspondingWebSubTitle
; when in design mode, this returnsnull
.
It always returnsnull
if the instance represents an empty cell.- Returns:
- The underlying SDK object.
-
setSubTitleIndex
public void setSubTitleIndex(int subtitleIndex)
Registers the position of the underlyingWebSubTitle
within the subtitles collection.- Parameters:
subtitleIndex
- the position of the correspondingWebSubTitle
-
getSubtitleIndex
public int getSubtitleIndex()
If attribute forms are displayed, returns the position of theWebSubTitle
within the subtitles collection.- Returns:
- The
WebSubTitle
position
-
addToStyle
public void addToStyle(java.lang.String value)
Adds values to theSTYLE
attribute of theTD
tag. The style assigned this way will only apply to this cell. Information added through this method is appended to other information currently assigned to this attribute.- Parameters:
value
- The text to add- Since:
- MicroStrategy Web 8.1.0
-
setExtraStyle
public void setExtraStyle(java.lang.String extraStyle)
Registers any extra information required for the formatting of the cell.
This text is assigned to theSTYLE
attribute of theTD
tag. The style assigned this way will only apply to this cell. Notice this method actually replaces the value of the style attribute with the provided parameter. If you actually require to add more information to the style attribute, you should use theaddToStyle(java.lang.String)
method instead.- Specified by:
setExtraStyle
in interfaceReportGridDisplayCell
- Parameters:
extraStyle
- The text to use
-
setExtraStyle
public void setExtraStyle(java.lang.String extraStyle, boolean append)
Description copied from interface:ReportGridDisplayCell
Updates values to theSTYLE
attribute of theTD
tag. The style assigned this way will only apply to this cell. Based on the value of append, Information added through this method is appended to other information currently assigned to this attribute.- Specified by:
setExtraStyle
in interfaceReportGridDisplayCell
- Parameters:
extraStyle
- The text to addappend
- whether to overwrite or append to the existing style value. Note, the method does not append an automatic semi-colon. Best practice is to ensure that semi-colons are present at the end of value being set (e.g. text-decoration:none; ).- Since:
- MicroStrategy Web 9.0.0
-
getExtraStyle
public java.lang.String getExtraStyle()
Returns the extra style information required for the formatting of the cell as registered by the Transform. This text is assigned to theSTYLE
attribute of theTD
tag.- Specified by:
getExtraStyle
in interfaceReportGridDisplayCell
- Returns:
- The extra style info as registered by the Transform.
-
addExtraAttribute
public void addExtraAttribute(java.lang.String attributeName, java.lang.String attributeValue)
Define extra tag attributes and their values that shall be included on the table cell definition for the current instance being rendered- Specified by:
addExtraAttribute
in interfaceReportGridDisplayCell
- Parameters:
attributeName
- String value with the name of the attribute to addattributeValue
- String value with the value of the attribute to add- Since:
- MicroStrategy Web 8.0.1
-
setExtraInfo
public void setExtraInfo(java.lang.String extraInfo)
Registers any extra information that should be appended as part of theTD
's open tag. This can be used, for example, to include extra attributes into the cell.- Specified by:
setExtraInfo
in interfaceReportGridDisplayCell
- Parameters:
extraInfo
- the text to be appended as part of the open tag.
-
getExtraInfo
public java.lang.String getExtraInfo()
Returns the text assigned by the Transform as extra information of the cell. This text is appended to theTD
's open tag.- Specified by:
getExtraInfo
in interfaceReportGridDisplayCell
- Returns:
- The extra info for this cell
-
getText
public java.lang.String getText()
Returns the text content of this cell. This represents the actual text displayed by the web browser.
- Specified by:
getText
in interfaceReportGridDisplayCell
- Returns:
- Text for the cell
-
setText
public void setText(java.lang.String text)
Registers the text content of this cell. When a non-null text is registered, this text is used as the core content of the cell.
- Specified by:
setText
in interfaceReportGridDisplayCell
- Parameters:
text
- text for this cell
-
setCellColor
protected void setCellColor(java.lang.String value)
-
getCellColor
protected java.lang.String getCellColor()
-
getDescription
protected java.lang.String getDescription()
Returns the text registered as the description of the underlying web object associated with this cell.- Returns:
- description for the cell.
-
setDescription
protected void setDescription(java.lang.String description)
Registers the description of the underlying web object associated with this cell. Based on a formal parameter, this text might be used as the tooltip of the cell.
- Parameters:
description
- description for this cell.
-
setDrillPath
public void setDrillPath(java.lang.String drillPath)
Sets the drillPath for this cell. This is used to generate the drill link of the cell.- Parameters:
drillPath
- String
-
getDrillPath
protected java.lang.String getDrillPath()
Returns the drillPath associated with this cell.- Returns:
- String drill path registered fro this cell.
-
getCellID
public java.lang.String getCellID()
Returns the id for this cell, this will be used as theID
attribute ofTD
tag.- Specified by:
getCellID
in interfaceReportGridDisplayCell
- Returns:
- the id for this cell
-
setCellID
public void setCellID(java.lang.String cellID)
Registers the id for this cell, this is used as theID
attribute ofTD
tag.- Specified by:
setCellID
in interfaceReportGridDisplayCell
- Parameters:
cellID
- The cell's ID
-
getWidth
public java.lang.String getWidth()
Returns the width for this cell as registered by the Transform, this is used as theWIDTH
attribute ofTD
tag.- Specified by:
getWidth
in interfaceReportGridDisplayCell
- Returns:
- The cell's width
-
setWidth
public void setWidth(java.lang.String width)
Registers the width for this cell, this is used asWIDTH
attribute ofTD
tag.- Specified by:
setWidth
in interfaceReportGridDisplayCell
- Parameters:
width
- text for this cell
-
getTooltip
public java.lang.String getTooltip()
Returns the tooltip text for this cell as registered by the Transform. This is the text displayed by the browser when the cursor goes over the cell.- Specified by:
getTooltip
in interfaceReportGridDisplayCell
- Returns:
- The cell's Tooltip text.
-
setTooltip
public void setTooltip(java.lang.String tooltip)
Registers the text for the tooltop of this cell. This is used as theTITLE
attribute ofTD
tag.- Specified by:
setTooltip
in interfaceReportGridDisplayCell
- Parameters:
tooltip
- the tooltip to display when the cursor goes over the cell
-
getContextMenu
protected ContextMenu getContextMenu()
Returns the context menu instance for this cell. The cell should add menu items to thisContextMenu
, this will be displayed to the end user when the it clicks over a cell with the mouse's right button.- Returns:
- The
ContextMenu
for this cell. - Since:
- MicroStrategy Web 8.0.0
-
getRowSpan
public int getRowSpan()
Returns the row span for this cell as registered by the Transform, this is used as theROWSPAN
attribute ofTD
tag.- Specified by:
getRowSpan
in interfaceReportGridDisplayCell
- Returns:
- The cell's row span
-
setRowSpan
public void setRowSpan(int rowSpan)
Registers the row span for this cell, this is used as theROWSPAN
attribute ofTD
tag.- Specified by:
setRowSpan
in interfaceReportGridDisplayCell
- Parameters:
rowSpan
- row span
-
getColSpan
public int getColSpan()
Returns the column span for this cell as registered by the Transform. This is used as theCOLSPAN
attribute ofTD
tag.- Specified by:
getColSpan
in interfaceReportGridDisplayCell
- Returns:
- The cell's col span
-
setColSpan
public void setColSpan(int colSpan)
Sets the col span for this cell- Specified by:
setColSpan
in interfaceReportGridDisplayCell
- Parameters:
colSpan
- col span for this cell
-
setHTML
public void setHTML(java.lang.String html)
Registers the HTML for this cell. When a non-nullhtml
is registered, the whole output of the cell is replaced with this text by thegenerateOutput
method.- Specified by:
setHTML
in interfaceReportGridDisplayCell
- Parameters:
html
- The complete HTML string for this cell
-
setContent
public void setContent(java.lang.String content)
Registers the main content of the cell. When a non-nullcontent
is registered, the content of the cell is replaced by this text and the cell does not call thegenerateContent
method.- Specified by:
setContent
in interfaceReportGridDisplayCell
- Parameters:
content
- content for this cell.- See Also:
ReportGridDisplayCell.setInnerHTML(java.lang.String)
-
setPreContent
public void setPreContent(java.lang.String preContent)
Registers the pre-content of the cell. When a non-nullcontent
is registered, the pre-content of the cell is replaced by this text and the cell does not call thegeneratePreContent
method.- Specified by:
setPreContent
in interfaceReportGridDisplayCell
- Parameters:
preContent
- pre-content for this cell- See Also:
ReportGridDisplayCell.setInnerHTML(java.lang.String)
-
setPostContent
public void setPostContent(java.lang.String postContent)
Registers the post-content of the cell. When a non-nullcontent
is registered, the post-content of the cell is replaced by this text and the cell does not call thegeneratePostContent
method.- Specified by:
setPostContent
in interfaceReportGridDisplayCell
- Parameters:
postContent
- post-content for this cell- See Also:
ReportGridDisplayCell.setInnerHTML(java.lang.String)
-
setContextMenu
public void setContextMenu(java.lang.String contextMenu)
Deprecated.use the context menu infrastructure for defining this information, or theaddExtraAttribute(java.lang.String, java.lang.String)
method for adding tag attributes.Registers the text used to enabled context menus for this cell. This text is appended to theTD
's open tag.- Specified by:
setContextMenu
in interfaceReportGridDisplayCell
- Parameters:
contextMenu
- The trigger for the context-menu of this cell
-
setAccessibilityInfo
public void setAccessibilityInfo(java.lang.String accessibilityInfo)
Deprecated.please useaddExtraAttribute(java.lang.String, java.lang.String)
instead, for example,addExtraAttribute("scope", "row");
Registers any extra information that should be appended as part of theTD
's open tag only when the cell will be rendered in Accessibility Mode (508). This can be used, for example, to include extra attributes used by screen-reader browsers.- Specified by:
setAccessibilityInfo
in interfaceReportGridDisplayCell
- Parameters:
accessibilityInfo
- the text to be appended as part of the open tag.
-
getAccessibilityInfo
public java.lang.String getAccessibilityInfo()
Deprecated.addExtraAttribute(java.lang.String, java.lang.String)
is used instead for specifying the accessibility information, for example,addExtraAttribute("scope", "row");
Returns any extra information registered by the Transform to be appended as part of theTD
's open tag only when the cell will be rendered in Accessibility Mode (508).- Specified by:
getAccessibilityInfo
in interfaceReportGridDisplayCell
- Returns:
- The extra accessibility info for this cell
-
generateTooltip
protected void generateTooltip(MarkupOutput mo)
Deprecated.usegenerateTooltipContent()
insteadGenerate the tooltip HTML attribute information for this cell.- Parameters:
mo
- the output object
-
generateHeaderDrillContextMenu
protected void generateHeaderDrillContextMenu(WebHeader header, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options. SeeReportCellDrill
Generate the drilling context menus for cells that useWebHeader
as their underlyingSDK
object.- Parameters:
header
- the WebHeader objectsHeaderURL
- the header's urlrhMenu
- the context menu object- Since:
- MicroStrategy Web 8.0.0
-
generateRowValueDrillContextMenu
protected void generateRowValueDrillContextMenu(WebRowValue rowValue, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options. SeeReportCellDrill
Generate the drilling context menus for cells that useWebRowValue
as their underlyingSDK
object.- Parameters:
rowValue
- the WebRowValue objectsHeaderURL
- the header's urlrhMenu
- the context menu object- Since:
- MicroStrategy Web 8.0.0
-
generateTitleDrillContextMenu
protected void generateTitleDrillContextMenu(WebTitle title, java.lang.StringBuffer sTitleURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options. SeeReportCellDrill
Generate the drilling context menus for cells that useWebTitle
as their underlyingSDK
object.- Parameters:
title
- the WebTitle objectsTitleURL
- the title's urlrhMenu
- the context menu object- Since:
- MicroStrategy Web 8.0.0
-
generateDrillContextMenu
protected void generateDrillContextMenu(WebHeader header, WebTitle title, WebRowValue rowValue, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options. SeeReportCellDrill
- Since:
- MicroStrategy Web 8.0.0
-
generateSortContextMenu
protected void generateSortContextMenu(ContextMenu rhMenu)
Deprecated.please use the new approach for generating context menu options. SeeReportCellSort
- Since:
- MicroStrategy Web 8.0.0
-
generateContextMenu
protected void generateContextMenu(MarkupOutput out)
Deprecated.please usegetContextMenu(java.lang.String)
insteadGenerate the context menu for this cell.- Parameters:
out
- the output object
-
renderContextMenu
protected void renderContextMenu(MarkupOutput mo)
Deprecated.usegetContextMenuAttributes(java.lang.String, int)
insteadRender the context menu's trigger for this cell.- Parameters:
mo
- the output object- Since:
- MicroStrategy Web 8.0.0
-
isRemoveAvailable
protected boolean isRemoveAvailable()
Deprecated.please usecanRemoveFromGrid()
orcanRemoveFromReport()
Validate if the remove option should be made available to the user or not- Returns:
- boolean value indicating if remove should be available or not.
- Since:
- MicroStrategy Web 8.0.0
-
generateHeaderSortContextMenu
protected void generateHeaderSortContextMenu(WebHeader header, ContextMenu rhMenu)
Deprecated.please usegenerateSortContextMenu(com.microstrategy.web.app.gui.ContextMenu)
insteadGenerate the sort context menus for cells that useWebHeader
as their underlyingSDK
object.- Parameters:
header
- the WebHeader objectrhMenu
- the context menu object- Since:
- MicroStrategy Web 8.0.0
-
generateTitleSortContextMenu
protected void generateTitleSortContextMenu(WebTitle title, ContextMenu rhMenu)
Deprecated.please usegenerateSortContextMenu(com.microstrategy.web.app.gui.ContextMenu)
insteadGenerate the sort context menus for cells that useWebTitle
as their underlyingSDK
object.- Parameters:
title
- the WebTitle objectrhMenu
- the context menu object- Since:
- MicroStrategy Web 8.0.0
-
getShowDescriptionAsTooltip
protected int getShowDescriptionAsTooltip(java.lang.String fpName)
Deprecated.Please check theshowDescriptionAsTooltip
formal parameter value instead.get formal parameter value as an int value- Parameters:
fpName
- formal parameter name- Returns:
- formal parameter value
-
convertNonbreakingSpaceOnMV
protected boolean convertNonbreakingSpaceOnMV()
Deprecated.This functionality has been moved to the excel-only related classes such asReportGridExcelCellMetricValueImpl
andReportGridExcelTransform
. This method now always returns false.Whether to convert nonbreaking spaces (char 160) to normal spaces (char 32) on metric values. Used for Exporting to Excel on French Environments.- Returns:
- Whether to convert nonbreaking spaces (char 160) to normal spaces (char 32) on metric values.
-
decodeEuro
protected boolean decodeEuro()
Deprecated.This method as well as thedecodeEuro
formal parameter itself are not used anymore on the application.Whether to decode the Euro symbol on the metric values- Returns:
- whether to decode the Euro symbol on the metric values
-
showAdvancedDrillingOptionsInContextMenu
protected boolean showAdvancedDrillingOptionsInContextMenu()
Deprecated.Please check theadvancedDrillingContextMenuDisplay
formal parameter value instead.whether to show the set names submenu at the root level in the Drilling RMC or one level lower.- Returns:
- whether to show the set names submenu at the root level in the Drilling RMC or one level lower.
- Since:
- MicroStrategy Web 8.0.0
-
groupContextMenuDrillPathsByType
protected boolean groupContextMenuDrillPathsByType()
Deprecated.Please check thegroupContextMenuDrillPathsByType
formal parameter value instead.whether to group the drill paths by types in the Drilling RMC.- Returns:
- whether to group the drill paths by types in the Drilling RMC.
- Since:
- MicroStrategy Web 8.0.0
-
sortSetNamesAndDrillPaths
protected boolean sortSetNamesAndDrillPaths()
Deprecated.Please check thesortSetNamesAndDrillPaths
formal parameter value instead.whether to sort the set names and drill paths in the drilling context menu.- Returns:
- whether to sort the set names and drill paths in the drilling context menu.
- Since:
- MicroStrategy Web 8.0.0
-
showRenameRMC
protected boolean showRenameRMC()
Deprecated.Please check theshowRenameRMC
formal parameter value instead.whether display rename RMC (right mouse click context menu)- Returns:
- display rename RMC (right mouse click context menu)
-
showRemoveRMC
protected boolean showRemoveRMC()
Deprecated.Please check theshowRemoveRMC
formal parameter value instead.whether display remove RMC (right mouse click context menu)- Returns:
- display remove RMC (right mouse click context menu)
-
showPivotRMC
protected boolean showPivotRMC()
Deprecated.Please check theshowPivotRMC
formal parameter value instead.whether display pivot RMC (right mouse click context menu)- Returns:
- display pivot RMC (right mouse click context menu)
-
showFormattingRMC
protected boolean showFormattingRMC()
Deprecated.Please check theshowFormattingRMC
formal parameter value instead.whether display formatting RMC (right mouse click context menu)- Returns:
- display formatting RMC (right mouse click context menu)
-
showExtraRemoveRMC
protected boolean showExtraRemoveRMC()
Deprecated.Please check theshowExtraRemoveRMC
formal parameter value instead.whether display the extra remove RMC (right mouse click context menu)- Returns:
- display the extra remove RMC (right mouse click context menu)
- Since:
- MicroStrategy Web 8.0.0
-
showDrillPathSetNamesSubMenuAtTopLevel
protected boolean showDrillPathSetNamesSubMenuAtTopLevel()
Deprecated.Please check theshowDrillPathSetNamesSubMenuAtTopLevel
formal parameter value instead.whether to show the set names submenu at the root level in the Drilling RMC or one level lower.- Returns:
- whether to show the set names submenu at the root level in the Drilling RMC or one level lower.
- Since:
- MicroStrategy Web 8.0.0
-
getReportDesignMode
public int getReportDesignMode()
Deprecated.Please check thereportDesignMode
formal parameter value instead.Returns the mode from EnumReportDesignMode- Returns:
- cell type - EnumReportGridDisplayCellTypes.EnumReportGridDisplayCellTypeGeneric. The cell type is read-only.
-
getPreTextForNonMetricValue
protected java.lang.String getPreTextForNonMetricValue()
Deprecated.Please check thepreTextForNonMetricValue
formal parameter value instead.Returns the text to use before displaying the content of a non-metric value cell- Returns:
- the text before displaying the non-metric value itself
-
getPostTextForNonMetricValue
protected java.lang.String getPostTextForNonMetricValue()
Deprecated.Please check thepostTextForNonMetricValue
formal parameter value instead.Returns the text to use after displaying the content of a non-metric value cell- Returns:
- the text after displaying the non-metric value itself
-
getCssPrefix
protected java.lang.String getCssPrefix()
Deprecated.Please check thecssPrefix
formal parameter value instead.Get the prefix for the css class name- Returns:
- the prefix for the css class name
-
getPreTextForMetricValue
protected java.lang.String getPreTextForMetricValue()
Deprecated.Please check thepreTextForMetricValue
formal parameter value instead.Returns the text to be used before the metric value itself- Returns:
- the text to used before displaying the metric value itself
-
getPostTextForMetricValue
protected java.lang.String getPostTextForMetricValue()
Deprecated.Please check thepostTextForMetricValue
formal parameter value instead.Returns the text to use after displaying the metric value- Returns:
- the text to use after displaying the metric value itself
-
showBanding
protected boolean showBanding()
Deprecated.Please check theshowBanding
formal parameter value instead.s * Indicates whether to display banding for the report- Returns:
true
if banding need to be displayed
-
showDrillRMC
protected boolean showDrillRMC()
Deprecated.Please check theshowDrillRMC
formal parameter value instead.Indicates whether to display drill right mouse click context menu.- Returns:
- whether display drill RMC (right mouse click context menu)
-
showDrillRMCMetric
protected boolean showDrillRMCMetric()
Deprecated.Please check theshowDrillRMCMetric
formal parameter value instead.Indicates whether to display drill right mouse click context menu for metrics- Returns:
- whether display drill RMC (right mouse click context menu) for metric
-
showDrillHyperlink
protected boolean showDrillHyperlink()
Deprecated.Please check theshowDrillHyperlink
formal parameter value instead.Indicates whether to display drill link- Returns:
- whether display drill link
-
showDrillHyperlinkMetric
protected boolean showDrillHyperlinkMetric()
Deprecated.Please check theshowDrillHyperlinkMetric
formal parameter value instead.Indicates whether to display drill link for metric- Returns:
- whether display drill link for metric
-
showDrillAdvanced
protected boolean showDrillAdvanced()
Deprecated.Please check theshowDrillAdvanced
formal parameter value instead.Indicates whether to display advanced drilling option- Returns:
- whether display advanced drilling
-
showDrillDownOnly
protected boolean showDrillDownOnly()
Deprecated.Please check theshowDrillDownOnly
formal parameter value instead.Indicates whether to display only drill down paths- Returns:
- whether only display drill down paths
-
showDrillMetric
protected boolean showDrillMetric()
Deprecated.Please check theshowDrillMetric
formal parameter value instead.Indicates whether to display drill on metric values- Returns:
- whether display drill on metric
-
showDrillCheckBox
protected boolean showDrillCheckBox()
Deprecated.Please check theshowDrillCheckBox
formal parameter value instead.Indicates whether to display a checkbox for drilling- Returns:
- whether display checkbox for drill
-
showFilterOnSelectionCheckBox
protected boolean showFilterOnSelectionCheckBox()
Deprecated.Please check theshowFilterOnSelectionCheckBox
formal parameter value instead.Indicates whether to display a checkbox for filter on selections- Returns:
- whether display checkbox for filter on selection
-
showSortButtonsForAttributes
protected boolean showSortButtonsForAttributes()
Deprecated.Please check theshowSortButtonsForAttributes
formal parameter value instead.Indicates whether to display sort buttons for attributes- Returns:
- whether display sort buttons for attributes
-
showSortRMCForAttributes
protected boolean showSortRMCForAttributes()
Deprecated.Please check theshowSortRMCForAttributes
formal parameter value instead.Indicates whether to display sort RMC for attributes- Returns:
- whether display sort RMC for attributes
-
showSortButtonsForMetrics
protected boolean showSortButtonsForMetrics()
Deprecated.Please check theshowSortButtonsForMetrics
formal parameter value instead.Indicates whether to display sort buttons for metrics- Returns:
- whether display sort buttons for metrics
-
showSortRMCForMetrics
protected boolean showSortRMCForMetrics()
Deprecated.Please check theshowSortRMCForMetrics
formal parameter value instead.Indicates whether to display sort RMC for metrics- Returns:
- whether display sort RMC for metrics
-
getMaxSortAllowed
protected int getMaxSortAllowed()
Deprecated.Please check themaxSortAllowed
formal parameter value instead.Returns the maximum number of sorts allowed- Returns:
- max number of sorts
-
isDragAndDropEnabled
protected boolean isDragAndDropEnabled()
Deprecated.Please check theisDragAndDropEnabled
formal parameter value instead.Indicates whether to drag and drop feature is enabled- Returns:
true
if drag and drop is enabled
-
isContextMenuEnabled
protected boolean isContextMenuEnabled()
Deprecated.Please check theisContextMenuEnabled
formal parameter value instead.Indicates whether to is the context menu featuer enabled- Returns:
true
if context menus are enabled
-
useBuiltInFormat
protected boolean useBuiltInFormat()
Deprecated.Please check theuseBuiltInFormat
formal parameter value instead.Indicates whether to use report's built-in formatting, that is the formatting specified in the report definition- Returns:
true
if should use report's built-in formatting
-
showPivot
protected boolean showPivot()
Deprecated.Please check theshowPivot
formal parameter value instead.Indicates whether display pivot buttons- Returns:
true
if pivot buttons need to be displayed
-
showRemove
protected boolean showRemove()
Deprecated.Please check theshowRemove
formal parameter value instead.Indicates whether display remove buttons- Returns:
true
if remove buttons needs to be displayed
-
init
public void init(WebComponent wc, java.util.HashMap cachedObjects)
Deprecated.use the init interface that receives aReportGridTransformImpl.Context
objectDescription copied from interface:ReportGridDisplayCell
Initializes anReportGridDisplayCell
. This is used to initialize empty cells that have no underlyingWebObject
.- Specified by:
init
in interfaceReportGridDisplayCell
- Parameters:
wc
- associated web component.cachedObjects
- aHashMap
populated by the transform and used to store information shared across multiple cells.- Since:
- MicroStrategy Web 7.5.2
-
init
public void init(WebComponent wc, FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore. To initialize empty cells it now usesinit(TransformContext)
.Description copied from interface:ReportGridDisplayCell
Initializes anReportGridDisplayCell
. This is used to initialize empty cells that have no underlyingWebObject
.- Specified by:
init
in interfaceReportGridDisplayCell
- Parameters:
wc
- associated web componentformalParas
- all the formal parameters from the report transform. Used to control some output generation.- Since:
- MicroStrategy Web 7.5.2
-
init
public void init(FormalParameters formalParas)
Deprecated.This method is not used by the Transform anymore. To initialize empty cells it now usesinit(TransformContext)
.Description copied from interface:ReportGridDisplayCell
Initializes anReportGridDisplayCell
. This is used to initialize empty cells that have no underlyingWebObject
.- Specified by:
init
in interfaceReportGridDisplayCell
- Parameters:
formalParas
- all the formal parameters from the report transform. Used to control some output generation.
-
setInnerHTML
public void setInnerHTML(java.lang.String innerHTML)
Deprecated.The Transform doesn't call this method. Users who require to customize the inner HTML should overridegenerateInnerHTML(com.microstrategy.web.beans.MarkupOutput)
Registers the inner HTML for this cell. When a non-null
innerHTML
is registered, all the HTML within theTD
tag is replaced by this text and the cell does not call thegenerateInnerHTML
method.- Specified by:
setInnerHTML
in interfaceReportGridDisplayCell
- Parameters:
innerHTML
- The inner HTML string to use for this cell.
-
getCellType
public int getCellType()
Deprecated.The cell type is not significant anymore for the application.Returns the cell type, a value from theEnumReportGridDisplayCellTypes
enumeration.- Specified by:
getCellType
in interfaceReportGridDisplayCell
-
setCellType
public void setCellType(int cellType)
Deprecated.The cell type is not significant anymore for the application.Sets the type for this cell, the value should be from theEnumReportGridDisplayCellTypes
enumeration.- Parameters:
cellType
- the type for this cell
-
generateDrillOpenLink
protected void generateDrillOpenLink(MarkupOutput mo, ReportBean rb, java.lang.String url, java.lang.String title, boolean javascriptUsedForDrill, java.lang.String sElementID)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Generate open anchor for drill link for header elements- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objecturl
- the url for the linktitle
- the WebTitle objectjavascriptUsedForDrill
- whether use javascript for drillingsElementID
- The drill element ID for this header element
-
generateDrillOpenLink
protected void generateDrillOpenLink(MarkupOutput mo, java.lang.String url, java.lang.String title, boolean javascriptUsedForDrill, java.lang.String sElementID)
Deprecated.Generate open anchor for drill link for header elements- Parameters:
mo
- the MarkupOutput objecturl
- the url for the linktitle
- the WebTitle objectjavascriptUsedForDrill
- whether use javascript for drillingsElementID
- The drill element ID for this header element- Since:
- MicroStrategy Web 8.0.0
-
generateSortButton
protected void generateSortButton(MarkupOutput mo)
Deprecated.usegenerateSortButton()
insteadGenerate sort button for this cell.- Parameters:
mo
- the output object
-
generateTooltipForTitles
protected void generateTooltipForTitles(MarkupOutput mo)
Deprecated.please use the correspondinggenerateTooltip(com.microstrategy.web.beans.MarkupOutput)
method of the cell class instance (from theAbstractReportGridCellTitle
hierarchy).Generate the tool tip for cellS that use aWebTitle
as their underlyingSDK
object (for example,ReportGridCellRowTitleImpl
andReportGridCellColTitleImpl
).- Parameters:
mo
- the output object
-
generateTooltipForHeaders
protected void generateTooltipForHeaders(MarkupOutput mo)
Deprecated.please use the correspondinggenerateTooltip(com.microstrategy.web.beans.MarkupOutput)
method of the cell class instance (from theAbstractReportGridCellHeader
hierarchy).Generate the tool tip for cellS that uses aWebHeader
as their underlyingSDK
object (for example,ReportGridCellRowHeaderImpl
andReportGridCellColHeaderImpl
).- Parameters:
mo
- the output object
-
generateTooltipForRowValue
protected void generateTooltipForRowValue(MarkupOutput mo)
Deprecated.please use the correspondinggenerateTooltip(com.microstrategy.web.beans.MarkupOutput)
method of the cell class instance (from theReportGridCellMetricValueImpl
hierarchy).Generate the tool tip for cells that use aWebRowValue
as their underlyingSDK
object (for exampleReportGridCellMetricValueImpl)
.- Parameters:
mo
- the output object
-
getDescriptor
protected java.lang.String getDescriptor(ReportBean rb, int key)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Get descriptor for this key- Parameters:
rb
- the ReportBean objectkey
- input key as an int- Returns:
- descriptor as a String
-
showSubTitle
protected boolean showSubTitle()
Deprecated.Use showSubtitle instead.Indicates whether to display sub titles (attribute forms).- Returns:
true
if the transform is displaying sub title
-
generateHeaderDrillContextMenu
protected void generateHeaderDrillContextMenu(MarkupOutput mo, ReportBean rb, WebHeader header, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Generate the drilling context menus for cells that useWebHeader
as their underlyingSDK
object.- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objectheader
- the WebHeader objectsHeaderURL
- the header's urlrhMenu
- the context menu object
-
generateRowValueDrillContextMenu
protected void generateRowValueDrillContextMenu(MarkupOutput mo, ReportBean rb, WebRowValue rowValue, java.lang.StringBuffer sHeaderURL, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Generate the drilling context menus for cells that useWebRowValue
as their underlyingSDK
object.- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objectrowValue
- the WebRowValue objectsHeaderURL
- the header's urlrhMenu
- the context menu object
-
getRowValueDrillParametersForDHTML
protected java.lang.String getRowValueDrillParametersForDHTML(ReportBean rb, WebDrillPath dp)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Returns parameters required for drilling when using javascript for cells that useWebRowValue
as their underlyingSDK
object.- Parameters:
rb
- the ReportBean objectdp
- the drill path- Returns:
- the url string
-
generateTitleDrillContextMenu
protected void generateTitleDrillContextMenu(MarkupOutput mo, ReportBean rb, WebTitle title, java.lang.StringBuffer sTitleURL, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Generate the drilling context menus for cells that useWebTitle
as their underlyingSDK
object.- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objecttitle
- the WebTitle objectsTitleURL
- the title's urlrhMenu
- the context menu object
-
generateHeaderSortContextMenu
protected void generateHeaderSortContextMenu(MarkupOutput mo, ReportBean rb, WebHeader header, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Generate the sort context menus for cells that useWebHeader
as their underlyingSDK
object.- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objectheader
- the WebHeader objectrhMenu
- the context menu object
-
generateTitleSortContextMenu
protected void generateTitleSortContextMenu(MarkupOutput mo, ReportBean rb, WebTitle title, ContextMenu rhMenu)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Generate the sort context menus for cells that useWebTitle
as their underlyingSDK
object.- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objecttitle
- the WebTitle objectrhMenu
- the context menu object
-
getHeaderDrillURL
protected java.lang.String getHeaderDrillURL(ReportBean rb, WebDrillPath dp, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Returns the URL use for drilling cells that use aWebHeader
as their underlyingSDK
object.- Parameters:
rb
- the ReportBean objectdp
- the drill pathheader
- the WebHeader object- Returns:
- String with the URL link for a header
-
getHeaderDrillURL
protected java.lang.String getHeaderDrillURL(WebDrillPath dp, WebHeader header)
Deprecated.Returns the URL use for drilling cells that use aWebHeader
as their underlyingSDK
object.- Parameters:
dp
- the drill pathheader
- the WebHeader object- Returns:
- String with the URL link for a header
- Since:
- MicroStrategy Web 8.0.0
-
getRowValueDrillURL
protected java.lang.String getRowValueDrillURL(ReportBean rb, WebDrillPath dp, WebRowValue rowValue)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Returns the URL use for drilling cells that use aWebRowValue
as their underlyingSDK
object.- Parameters:
rb
- the ReportBean objectdp
- the drill pathrowValue
- the WebRowValue object- Returns:
- the URL Link for a row value
-
getRowValueDrillURL
protected java.lang.String getRowValueDrillURL(WebDrillPath dp, WebRowValue rowValue)
Deprecated.Returns the URL use for drilling cells that use aWebRowValue
as their underlyingSDK
object.- Parameters:
dp
- the drill pathrowValue
- the WebRowValue object- Returns:
- the URL Link for a row value
- Since:
- MicroStrategy Web 8.0.0
-
getTitleDrillURL
protected java.lang.String getTitleDrillURL(ReportBean rb, WebDrillPath dp, WebTitle title)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Returns the URL use for drilling cells that use aWebTitle
as their underlyingSDK
object.- Parameters:
rb
- the ReportBean objectdp
- the drill pathtitle
- the WebTitle object- Returns:
- the URL Link for a title cell
-
getTitleDrillURL
protected java.lang.String getTitleDrillURL(WebDrillPath dp, WebTitle title)
Deprecated.Returns the URL use for drilling cells that use aWebTitle
as their underlyingSDK
object.- Parameters:
dp
- the drill pathtitle
- the WebTitle object- Returns:
- the URL Link for a title cell
- Since:
- MicroStrategy Web 8.0.0
-
getHeaderDrillParametersForDHTML
protected java.lang.String getHeaderDrillParametersForDHTML(ReportBean rb, WebDrillPath dp, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Returns parameters required for drilling when using javascript for cells that useWebHeader
as their underlyingSDK
object.- Parameters:
rb
- the ReportBean objectdp
- the drill pathheader
- the WebHeader object- Returns:
- the url string
-
getTitleDrillParametersForDHTML
protected java.lang.String getTitleDrillParametersForDHTML(ReportBean rb, WebDrillPath dp, WebTitle title)
Deprecated.Use method that doesn't receive the ReportBean as an argument.Returns parameters required for drilling when using javascript for cells that useWebTitle
as their underlyingSDK
object.- Parameters:
rb
- the ReportBean objectdp
- the drill pathtitle
- the WebTitle object- Returns:
- the url string
-
getHeaderDrillPathWithHighImportance
protected WebDrillPath getHeaderDrillPathWithHighImportance(ReportBean rb, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.generate drilling url parameters for DHTML mode- Parameters:
rb
- the ReportBean objectheader
- the WebHeader object- Returns:
- The drill path with high importance
-
getRowValueDrillPathWithHighImportance
protected WebDrillPath getRowValueDrillPathWithHighImportance(ReportBean rb, WebRowValue rowValue)
Deprecated.Use method that doesn't receive the ReportBean as an argument.generate drilling url parameters for row value in DHTML mode- Parameters:
rb
- the ReportBean objectrowValue
- the WebRowValue object- Returns:
- The drill path with high importance
-
generateDrillCheckBox
protected boolean generateDrillCheckBox(MarkupOutput mo, ReportBean rb, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.generate output for checkboxes for drill- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objectheader
- the WebHeader object- Returns:
- if any checkbox is rendered
-
generateFilterOnSelectionCheckBox
protected boolean generateFilterOnSelectionCheckBox(MarkupOutput mo, ReportBean rb, WebHeader header)
Deprecated.Use method that doesn't receive the ReportBean as an argument.generate output for the checkbox for Filter on Selections- Parameters:
mo
- the MarkupOutput objectrb
- the ReportBean objectheader
- the WebHeader object- Returns:
- if any checkbox is rendered
-
isIFrameEnabled
protected boolean isIFrameEnabled()
Deprecated.use isIframeEnabled()whether ifram is enabled- Returns:
- whether ifram is enabled
-
isIFrameRequest
protected boolean isIFrameRequest()
Deprecated.use isIframeRequestwhether it's an iframe request- Returns:
- whether it's an iframe request
-
getReportBean
public ReportBean getReportBean()
Deprecated.usegetViewBean()
insteadReturns the report bean associated with this display cell- Returns:
- the report bean
-
getHeaderContent
public java.lang.String getHeaderContent(WebHeader header)
Deprecated.The Transform doesn't call this method. Users who require to customize the text-content of a header should overridegetText()
For those cells that uses aWebHeader
as their underlyingWebObject
, this method returns the cell's text content.- Specified by:
getHeaderContent
in interfaceReportGridDisplayCell
- Parameters:
header
- theWebHeader
object.- Returns:
- Header Content as a String
-
getHeaderDrillParametersForDHTML
protected java.lang.String getHeaderDrillParametersForDHTML(WebDrillPath dp, WebHeader header)
Deprecated.please use the correspondinggetDrillParametersForDHTML(com.microstrategy.web.objects.WebDrillPath, com.microstrategy.web.objects.WebTitle)
interface, depending if it's a header or a title being handled.Returns parameters required for drilling when using javascript for cells that useWebHeader
as their underlyingSDK
object.- Parameters:
dp
- the drill pathheader
- the WebHeader object- Returns:
- the url string
- Since:
- MicroStrategy Web 8.0.0
-
getRowValueDrillParametersForDHTML
protected java.lang.String getRowValueDrillParametersForDHTML(WebDrillPath dp)
Deprecated.please use thegetDrillParametersForDHTML(com.microstrategy.web.objects.WebDrillPath, com.microstrategy.web.objects.WebTitle)
corresponding interface.Returns parameters required for drilling when using javascript for cells that useWebRowValue
as their underlyingSDK
object.- Parameters:
dp
- the drill path- Returns:
- the url string
- Since:
- MicroStrategy Web 8.0.0
-
getTitleDrillParametersForDHTML
protected java.lang.String getTitleDrillParametersForDHTML(WebDrillPath dp, WebTitle title)
Deprecated.please use thegetDrillParametersForDHTML(com.microstrategy.web.objects.WebDrillPath, com.microstrategy.web.objects.WebTitle)
interface insteadReturns parameters required for drilling when using javascript for cells that useWebTitle
as their underlyingSDK
object.- Parameters:
dp
- the drill pathtitle
- the WebTitle object- Returns:
- the url string
- Since:
- MicroStrategy Web 8.0.0
-
getHeaderDrillPathWithHighImportance
protected WebDrillPath getHeaderDrillPathWithHighImportance(WebHeader header)
Deprecated.please usegetDrillPathWithHighImportance()
insteadgenerate drilling url parameters for DHTML mode- Parameters:
header
- the WebHeader object- Returns:
- The drill path with high importance
- Since:
- MicroStrategy Web 8.0.0
-
getRowValueDrillPathWithHighImportance
protected WebDrillPath getRowValueDrillPathWithHighImportance(WebRowValue rowValue)
Deprecated.please usegetDrillPathWithHighImportance()
insteadgenerate drilling url parameters for row value in DHTML mode- Parameters:
rowValue
- the WebRowValue object- Returns:
- The drill path with high importance
- Since:
- MicroStrategy Web 8.0.0
-
generateDrillCheckBox
protected boolean generateDrillCheckBox(MarkupOutput mo, WebHeader header)
Deprecated.please usegenerateDrillCheckBoxTag()
insteadgenerate output for checkboxes for drill- Parameters:
mo
- the MarkupOutput objectheader
- the WebHeader object- Returns:
- if any checkbox is rendered
- Since:
- MicroStrategy Web 8.0.0
-
generateFilterOnSelectionCheckBox
protected boolean generateFilterOnSelectionCheckBox(MarkupOutput mo, WebHeader header)
Deprecated.please usegenerateFilterOnSelectionCheckBoxTag()
insteadgenerate output for the checkbox for Filter on Selections- Parameters:
mo
- the MarkupOutput objectheader
- the WebHeader object- Returns:
- if any checkbox is rendered
- Since:
- MicroStrategy Web 8.0.0
-
isHeaderNeedLink
protected boolean isHeaderNeedLink(WebHeader header)
Deprecated.please usecellNeedsLink()
return whether to display link for drill- Parameters:
header
- the WebHeader object- Returns:
- whether to display link for drill
-
isTitleNeedLink
protected boolean isTitleNeedLink(WebTitle title)
Deprecated.please usecellNeedsLink()
return whether to display link for drill- Parameters:
title
- the WebTitle object- Returns:
- whether to display link for drill
-
isRowValueNeedLink
protected boolean isRowValueNeedLink(WebRowValue rowValue)
Deprecated.please usecellNeedsLink()
return whether to display link for drill- Parameters:
rowValue
- the WebRowValue object- Returns:
- whether to display link for drill
-
getColHeaderWebMetric
protected WebMetric getColHeaderWebMetric(WebHeader header)
Deprecated.please refer to thegetWebMetric
method on theReportGridCellColHeaderImpl
class.get the metric object for the column header- Parameters:
header
- the column header- Returns:
- the corresponding
WebMetric
object
-
getOpenFormatEditorEvent
public WebEvent getOpenFormatEditorEvent()
Get the event for opening the format editor for the requested target.- Specified by:
getOpenFormatEditorEvent
in interfaceReportGridDisplayCell
- Returns:
WebEvent
initialized instance. If it could not be generated, it will returnnull
- Since:
- MicroStrategy Web 8.0.1
-
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
- Returns:
WebEvent
instance initialized for setting the target of the format editor to be the current cell instance.- Since:
- MicroStrategy Web 8.0.1
-
getDefaultDrillEvent
protected WebEvent getDefaultDrillEvent(WebDrillPath dp)
- Since:
- MicroStrategy Web 9.0.0
-
getDefaultDrillEvent
protected WebEvent getDefaultDrillEvent()
- Since:
- MicroStrategy Web 8.0.1
-
getRWDDrillOutEvent
protected WebEvent getRWDDrillOutEvent()
- Since:
- MicroStrategy Web 9.0.0
-
getDefaultAdvancedDrillEvent
protected WebEvent getDefaultAdvancedDrillEvent()
- Since:
- MicroStrategy Web 8.0.1
-
getDefaultDrillEditorProcessEvent
protected WebEvent getDefaultDrillEditorProcessEvent()
- Since:
- MicroStrategy Web 8.0.1
-
getDefaultAdvancedDrillProcessEvent
protected WebEvent getDefaultAdvancedDrillProcessEvent()
- Since:
- MicroStrategy Web 8.0.1
-
getDefaultDrillFilterOnSelectionEvent
protected WebEvent getDefaultDrillFilterOnSelectionEvent()
- Since:
- MicroStrategy Web 8.0.1
-
getDefaultSortEvent
protected WebEvent getDefaultSortEvent()
- Since:
- MicroStrategy Web 8.0.1
-
getTargetKeys
protected java.lang.String getTargetKeys(RWControl ctl, boolean[] usePartialDisplay)
- Since:
- MicroStrategy Web 8.1.0
-
generateThresholdSymbol
protected java.lang.String generateThresholdSymbol(int thresholdValue)
Generates the HTML when the metric value is a "quick symbol" threshold.- Parameters:
out
- the output objectthresholdValue
- the threshold id. A value fromEnumDSSXMLSymbol
.
-
canFilterOnSelection
public boolean canFilterOnSelection()
- Specified by:
canFilterOnSelection
in interfaceReportGridDisplayCell
- Since:
- MicroStrategy Web 9.0.0
-
getSelectorEvent
protected WebEvent getSelectorEvent()
get the selector Event to gnereate the anchor in HTML mode- Returns:
-
shouldHiliteOnServer
protected boolean shouldHiliteOnServer()
Indicate if it's necessary to hilight the selected element on server side.- Returns:
-
canDefineDerivedElements
protected boolean canDefineDerivedElements()
-
-