com.microstrategy.web.app.transforms.ReportGridDisplayCell |
This is the base interface of those used by the ReportGridTransformImpl
to generate the content of a single cell.
To generate the HTML for a grid, the Transform iterates through its data and for each cell it will:
init
method.
generateOutput
method.
Users can modify the HTML generated for a cell by creating a custom class that implements
this interface. The easiest way to accomplish this is to extend one of the out-of-the-box
implementations provided by Microstrateg Web, all of which extend
the AbstractReportGridDisplayCell
.
To learn how the Transform assigns a class for a particular cell type, please refer
to ReportGridTransformImpl
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | ReportGridDisplayCell.Context | Implements TransformContext . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PIVOT_DECREASE_POSITION | Identifier for the pivot button that will decrease the position of the object in the collection, for example, move it to the left in case of row title, or move it up if a column title | |||||||||
int | PIVOT_INCREASE_POSITION | Identifier for the pivot button that will increase the position of the object in the collection, for example, move it to the right in case of row title, or move it down if a column title | |||||||||
int | PIVOT_REMOVE | Identifier for the pivot button that will remove the object from the template | |||||||||
int | PIVOT_SWITCH_AXIS | Identifier for the pivot button that will change of axis the object in the template, for example, move it to columns in case of row title, or move it to rows if a column title | |||||||||
int | PIVOT_TO_PAGE_BY | Identifier for the pivot button that will move the object to the page by section |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addExtraAttribute(String attributeName, String attributeValue)
Define extra tag attributes and their values that shall be included on the table cell
definition for the current instance being rendered
| ||||||||||
abstract boolean |
canAddThresholds()
Utility method for determining if the cell object is enabled for displaying the user
the option to add advanced thresholds
| ||||||||||
abstract boolean |
canDrill()
Utility methood for determining if the cell object is enabled for displaying the user
the option to drill on it
| ||||||||||
abstract boolean |
canDrillAdvanced()
Utility methood for determining if the cell object is enabled for displaying the user
the option for advanced drilling on it
| ||||||||||
abstract boolean |
canEditControl()
Utility methood for determining if the cell object is enabled for displaying the user
the option to edit control
| ||||||||||
abstract boolean |
canEditMetricFilter()
Utility method for determining if the cell object is enabled editing a metric filter
| ||||||||||
abstract boolean |
canFilterOn()
Utility methood for determining if the cell object is enabled for displaying the user
the option to filter on it
| ||||||||||
abstract boolean | canFilterOnSelection() | ||||||||||
abstract boolean |
canFormat()
Utility methood for determining if the cell object is enabled for displaying the user
the option to format it
| ||||||||||
abstract boolean | canHaveDerivedElements() | ||||||||||
abstract boolean |
canHyperLink()
Utility method for determining if the cell object is enabled for displaying the
user the option to navigate to custom hyperlinks
| ||||||||||
abstract 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
| ||||||||||
abstract boolean |
canMetricFilterOn()
Utility method for determining if the cell object is enabled for displaying the user
the option to modify the attribute forms on it
| ||||||||||
abstract 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
| ||||||||||
abstract boolean | canOpenAlerts() | ||||||||||
abstract 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
| ||||||||||
abstract boolean |
canPivot()
Utility methood for determining if the cell object is enabled for displaying the user
the option to pivot it
| ||||||||||
abstract boolean | canQuickGroup() | ||||||||||
abstract boolean |
canRemoveFromGrid()
Utility methood for determining if the cell object is enabled for displaying the user
the option to remove it from the grid.
| ||||||||||
abstract boolean |
canRemoveFromReport()
Utility methood for determining if the cell object is enabled for displaying the user
the option to remove it from the report
| ||||||||||
abstract boolean |
canRename()
Utility methood for determining if the cell object is enabled for displaying the user
the option to rename it
| ||||||||||
abstract boolean |
canSort()
Utility methood for determining if the cell object is enabled for displaying the user
the option to sort it
| ||||||||||
abstract void |
generateOutput(MarkupOutput mo)
This is the main entry point to generate the output of the cell.
| ||||||||||
abstract String |
getAccessibilityInfo()
This method is deprecated.
addExtraAttribute(String, String) is used instead for specifying the accessibility information,
for example, addExtraAttribute("scope", "row");
| ||||||||||
abstract String |
getCellID()
Returns the id for this cell, this should be the one used as the
ID attribute
of TD tag. | ||||||||||
abstract int |
getCellType()
This method is deprecated.
The cell type is not significant anymore for the application.
| ||||||||||
abstract int |
getColSpan()
Returns the column span for this cell, this should be the one used as the
COLSPAN
attribute of TD tag. | ||||||||||
abstract WebEvent | getControlElementSelectorEvent(RWControl control, String elementList) | ||||||||||
abstract WebEvent | getDerivedElementsEvent() | ||||||||||
abstract WebEvent |
getDrillEvent(WebDrillPath dp, String elementKey, WebTitle title)
Returns the WebEvent to drill from the cell to the given drill path.
| ||||||||||
abstract WebDrillPath |
getDrillPathWithHighImportance()
Obtain the Drill path with high importance information for the current cell being analyzed.
| ||||||||||
abstract String |
getExtraInfo()
Returns the text assigned as extra information of the cell.
| ||||||||||
abstract String |
getExtraStyle()
Returns the extra style information required for the formatting of the cell.
| ||||||||||
abstract WebEvent |
getFilterOnEvent()
Get the event for filter on the cell header instance
| ||||||||||
abstract String |
getHeaderContent(WebHeader header)
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the text-content of a header should override
getText()
| ||||||||||
abstract int | getKey() | ||||||||||
abstract WebEvent |
getOpenFormatEditorEvent()
Get the event for opening the format editor
| ||||||||||
abstract WebEvent |
getRenameEvent()
Get the event for renaming the current cell
| ||||||||||
abstract int |
getRowSpan()
Returns the row span for this cell, this should be the one used as the
ROWSPAN
attribute of TD tag. | ||||||||||
abstract WebEvent |
getSetFormatEditorTargetEvent()
Get the event for setting the current target of the format editor to be this cell instance
| ||||||||||
abstract String |
getStyle()
Returns the css class name associated with the cell.
| ||||||||||
abstract String |
getText()
Returns the text content of this cell. | ||||||||||
abstract String |
getTooltip()
Returns the tooltip text for this cell.
| ||||||||||
abstract String |
getWidth()
Returns the width for this cell, this should be the one used as the
WIDTH
attribute of TD tag. | ||||||||||
abstract void |
init(TransformContext context)
Initializes the instance.
| ||||||||||
abstract void |
init(WebComponent wc, FormalParameters formalParas)
This method is deprecated.
This method is not used by the Transform anymore. To initialize empty cells
it now uses
init(TransformContext) .
| ||||||||||
abstract void |
init(WebComponent wc, HashMap cachedObjects)
This method is deprecated.
use the init interface that receives a
ReportGridTransformImpl.Context object
| ||||||||||
abstract void |
init(FormalParameters formalParas)
This method is deprecated.
This method is not used by the Transform anymore. To initialize empty cells
it now uses
init(TransformContext) .
| ||||||||||
abstract boolean |
isRW()
Utility methood for determining whether it is a RW execution.
| ||||||||||
abstract void |
reset()
Reset all of the instance variables.
| ||||||||||
abstract void |
setAccessibilityInfo(String accessibilityInfo)
This method is deprecated.
please use
addExtraAttribute(String, String) instead, for example,
addExtraAttribute("scope", "row");
| ||||||||||
abstract void |
setCellID(String cellID)
Registers the id for this cell, this should be used as the
ID attribute of TD
tag. | ||||||||||
abstract void |
setColSpan(int colSpan)
Registers the column span for this cell, this should be used as the
COLSPAN
attribute of TD tag. | ||||||||||
abstract void |
setContent(String content)
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the content should override
generateContent(MarkupOutput)
| ||||||||||
abstract void |
setContextMenu(String contextMenu)
This method is deprecated.
use the context menu infrastructure for defining this information, or the
addExtraAttribute(String, String) method for adding tag attributes.
| ||||||||||
abstract void |
setExtraInfo(String extraInfo)
Registers any extra information that should be appended as part of the
TD 's open tag. | ||||||||||
abstract void |
setExtraStyle(String value, boolean append)
Updates values to the
STYLE attribute of the TD tag. | ||||||||||
abstract void |
setExtraStyle(String extraStyle)
This method is deprecated.
use
instead
| ||||||||||
abstract void |
setHTML(String html)
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the HTML should override
generateOutput(MarkupOutput)
| ||||||||||
abstract void |
setInnerHTML(String innerHTML)
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the inner HTML should override
generateInnerHTML(MarkupOutput)
| ||||||||||
abstract void |
setPostContent(String content)
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the post-content should override
generatePostContent(MarkupOutput)
| ||||||||||
abstract void |
setPreContent(String content)
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the pre-content should override
generatePreContent(MarkupOutput)
| ||||||||||
abstract void |
setRowSpan(int rowSpan)
Registers the row span for this cell, this should be used as the
ROWSPAN
attribute of TD tag. | ||||||||||
abstract void |
setStyle(String style)
Registers the css style name associated with the cell.
| ||||||||||
abstract void |
setText(String text)
Registers the text content of this cell. | ||||||||||
abstract void |
setTooltip(String tooltip)
Registers the text for the tooltop of this cell.
| ||||||||||
abstract void |
setWidth(String width)
Registers the width for this cell, this should be used as
WIDTH
attribute of TD tag. |
Identifier for the pivot button that will decrease the position of the object in the collection, for example, move it to the left in case of row title, or move it up if a column title
Identifier for the pivot button that will increase the position of the object in the collection, for example, move it to the right in case of row title, or move it down if a column title
Identifier for the pivot button that will remove the object from the template
Identifier for the pivot button that will change of axis the object in the template, for example, move it to columns in case of row title, or move it to rows if a column title
Identifier for the pivot button that will move the object to the page by section
Define extra tag attributes and their values that shall be included on the table cell definition for the current instance being rendered
attributeName | String value with the name of the attribute to add |
---|---|
attributeValue | String value with the value of the attribute to add |
Utility method for determining if the cell object is enabled for displaying the user the option to add advanced thresholds
Utility methood for determining if the cell object is enabled for displaying the user the option to drill on it
Utility methood for determining if the cell object is enabled for displaying the user the option for advanced drilling on it
Utility methood for determining if the cell object is enabled for displaying the user the option to edit control
Utility method for determining if the cell object is enabled editing a metric filter
Utility methood for determining if the cell object is enabled for displaying the user the option to filter on it
Utility methood for determining if the cell object is enabled for displaying the user the option to format it
Utility method for determining if the cell object is enabled for displaying the user the option to navigate to custom hyperlinks
Utility methood for determining if the cell object is enabled for displaying the user the option to insert shortcut metrics based on it
Utility method for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on it
Utility methood for determining if the cell object is enabled for displaying the user the option to modify the attribute forms on it
Utility methood for determining if the cell object is enabled for displaying the user the option to pivot it according to the type specified
type | value indicating which type of pivot manipulation is being tested.
Values come from the PIVOT_INCREASE_POSITION , PIVOT_DECREASE_POSITION ,
PIVOT_SWITCH_AXIS , PIVOT_TO_PAGE_BY and PIVOT_REMOVE constants. |
---|
Utility methood for determining if the cell object is enabled for displaying the user the option to pivot it
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the grid.
Utility methood for determining if the cell object is enabled for displaying the user the option to remove it from the report
Utility methood for determining if the cell object is enabled for displaying the user the option to rename it
Utility methood for determining if the cell object is enabled for displaying the user the option to sort it
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.
Users interested in modifying a cell's HTML should consider extending
generateOutput(MarkupOutput)
.
mo | the output object |
---|
This method is deprecated.
addExtraAttribute(String, String)
is used instead for specifying the accessibility information,
for example, addExtraAttribute("scope", "row");
Returns any extra information to be appended as part of the TD
's open tag
only when the cell will be rendered in Accessibility Mode (508).
Returns the id for this cell, this should be the one used as the ID
attribute
of TD
tag.
This method is deprecated.
The cell type is not significant anymore for the application.
Returns the cell type, should be a value from the EnumReportGridDisplayCellTypes
enumeration.
Returns the column span for this cell, this should be the one used as the COLSPAN
attribute of TD
tag.
Returns the WebEvent to drill from the cell to the given drill path.
dp | The drill path to use for drilling. |
---|---|
elementKey | The key for the element to drill to |
title | The WebTitle to drill from. |
Obtain the Drill path with high importance information for the current cell being analyzed. This drill-path will be the one used to generate the drilling link for the cell.
WebDrillPath
instance initialized, with the drill path with high
importance information to use if available, otherwise returns null
Returns the text assigned as extra information of the cell. This text
should be the one appended to the TD
's open tag.
Returns the extra style information required for the formatting of the cell.
This text should be the one assigned to the STYLE
attribute of the TD
tag.
Get the event for filter on the cell header instance
WebEvent
instance initialized for filtering on the information of this cell
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the text-content of a header should override getText()
For those cells that uses a WebHeader
as their underlying
WebObject
, this method should returns the cell's text content.
header | the WebHeader object |
---|
Get the event for opening the format editor
WebEvent
instance initialized for opening the format editorGet the event for renaming the current cell
WebEvent
instance initialized with the information for renaming the current
cell.Returns the row span for this cell, this should be the one used as the ROWSPAN
attribute of TD
tag.
Get the event for setting the current target of the format editor to be this cell instance
WebEvent
instance initialized for setting the target of the format editor
to be the current cell instance.Returns the css class name associated with the cell.
This should be the one assigned to the CLASS
attribute of the TD
tag
to control its formatting.
Returns the text content of this cell. This represents the actual text displayed by the web browser.
Returns the tooltip text for this cell. This is the text displayed by the browser when the cursor goes over the cell.
Returns the width for this cell, this should be the one used as the WIDTH
attribute of TD
tag.
Initializes the instance.
context | TransformContext instance that contains a reference to the
transform being used to render the overall grid information |
---|
This method is deprecated.
This method is not used by the Transform anymore. To initialize empty cells
it now uses init(TransformContext)
.
Initializes an ReportGridDisplayCell
. This is used to initialize
empty cells that have no underlying WebObject
.
wc | associated web component |
---|---|
formalParas | all the formal parameters from the report transform. Used to control some output generation. |
This method is deprecated.
use the init interface that receives a ReportGridTransformImpl.Context
object
Initializes an ReportGridDisplayCell
. This is used to initialize
empty cells that have no underlying WebObject
.
wc | associated web component. |
---|---|
cachedObjects | a HashMap populated by the transform and
used to store information shared across multiple cells. |
This method is deprecated.
This method is not used by the Transform anymore. To initialize empty cells
it now uses init(TransformContext)
.
Initializes an ReportGridDisplayCell
. This is used to initialize
empty cells that have no underlying WebObject
.
formalParas | all the formal parameters from the report transform. Used to control some output generation. |
---|
Utility methood for determining whether it is a RW execution.
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.
This method is deprecated.
please use addExtraAttribute(String, String)
instead, for example,
addExtraAttribute("scope", "row");
Registers any extra information that should be appended as part of the TD
'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.
accessibilityInfo | the text to be appended as part of the open tag. |
---|
Registers the id for this cell, this should be used as the ID
attribute of TD
tag.
cellID | The cell's ID |
---|
Registers the column span for this cell, this should be used as the COLSPAN
attribute of TD
tag.
colSpan | col span |
---|
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the content should override generateContent(MarkupOutput)
Registers the main content of the cell. When a non-null content
is
registered, the content of the cell should be replaced by this text.
content | content for this cell. |
---|
This method is deprecated.
use the context menu infrastructure for defining this information, or the
addExtraAttribute(String, String)
method for adding tag attributes.
Registers the text used to enabled context menus for this cell. This text
should be appended to the TD
's open tag.
contextMenu | The trigger for the context-menu of this cell |
---|
Registers any extra information that should be appended as part of the TD
's open tag.
This can be used, for example, to include extra attributes into the cell.
extraInfo | the text to be appended as part of the open tag. |
---|
Updates values to the STYLE
attribute of the TD
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.
value | The text to add |
---|---|
append | 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; ). |
This method is deprecated.
use instead
Registers any extra information required for the formatting of the cell.
This text should be assigned to the STYLE
attribute of the TD
tag. The style
assigned this way will only apply to this cell.
extraStyle | The text to use |
---|
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the HTML should override generateOutput(MarkupOutput)
Registers the HTML for this cell. When a non-null html
is
registered, the whole output of the cell should be replaced with this text.
html | The complete HTML string for this cell |
---|
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the inner HTML should override generateInnerHTML(MarkupOutput)
Registers the inner HTML for this cell. When a non-null innerHTML
is
registered, all the HTML within the TD
tag should be replaced by this text.
ReportGridDisplayCell
divides the innerHTML into three parts:
innerHTML | The inner HTML string to use for this cell. |
---|
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the post-content should override generatePostContent(MarkupOutput)
Registers the post-content of the cell. When a non-null content
is
registered, the post-content of the cell should be replaced by this text.
content | post content for this cell |
---|
This method is deprecated.
The Transform doesn't call this method. Users who require to customize
the pre-content should override generatePreContent(MarkupOutput)
Registers the pre-content of the cell. When a non-null content
is
registered, the pre-content of the cell should be replaced by this text.
content | precontent for this cell |
---|
Registers the row span for this cell, this should be used as the ROWSPAN
attribute of TD
tag.
rowSpan | row span |
---|
Registers the css style name associated with the cell.
This text should be assigned as the CLASS
attribute of the TD
tag
to control the format of the cells that share the same CLASS
.
style | The css class name |
---|
Registers the text content of this cell. When a non-null text is registered, this should
be used as the core content of the cell; otherwise the alias of the underlying
WebObject
should be used.
text | text for this cell |
---|
Registers the text for the tooltop of this cell. This should be used as the
TITLE
attribute of TD
tag.
tooltip | the tooltip to display when the cursor goes over the cell |
---|
Registers the width for this cell, this should be used as WIDTH
attribute of TD
tag.
width | text for this cell |
---|