java.lang.Object | ||||
↳ | com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder | |||
↳ | com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder | |||
↳ | com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellComposedContextMenuItemBuilder | |||
↳ | com.microstrategy.web.app.transforms.contextmenus.ReportCellDrill |
![]() |
The ReportCellDrill
represents a context menu item builder that will generate
a sub-menu structure with a list of
the options that a user is enabled to access for
navigating different drill paths for the current grid cell selected, specified on the context.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | ReportCellDrill.AbstractDrillContextMenuBuilder | Abstract base implementation of the ReportCellDrill.DrillContextMenuBuilder class. |
|||||||||
interface | ReportCellDrill.DrillContextMenuBuilder | Helper builder interface that allows generating the different drill path options for the current cell that shall be displayed to the user. | |||||||||
class | ReportCellDrill.HeaderDrillContextMenuBuilder | Relevant to WebHeader (could be MetricHeader, AttributeHeader or DimensionHeader | |||||||||
class | ReportCellDrill.InvalidDrillContextMenuBuilder | Implementation of the ReportCellDrill.DrillContextMenuBuilder interface for representing
a builder instance corresponding to a non-supported context. |
|||||||||
class | ReportCellDrill.RowValueDrillContextMenuBuilder | Relavant for metric cell values | |||||||||
class | ReportCellDrill.TitleDrillContextMenuBuilder | Relevant to WebTitle related to attribute or metric |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ReportCellDrill(Shortcut definition)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addExtraSubMenuOptions(ContextMenu cm)
This methods can be used to add extra options to the drill menu option.
| ||||||||||
ContextMenuItem |
createItem(TransformContext context)
Creates and populates a
ContextMenuItem based on the information in the
Shortcut used as its definition, as well as the logic included
on this builder instance. | ||||||||||
ContextMenu |
generateSubMenu(TransformContext context)
Get the submenu that will display the different sub-menu options to the user.
| ||||||||||
String |
getItemKey(TransformContext context)
Retrieve the key will be set on the context menu item corresponding to the context input.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ComposedContextMenuBuilder |
getComposedContextMenuBuilder(TransformContext context)
Get an instance of
ReportCellDrill.DrillContextMenuBuilder that will help obtaining the different
drill options that shall be presented to the user. | ||||||||||
ReportCellDrill.AbstractDrillContextMenuBuilder | getDrillContextMenuBuilder(TransformContext context) | ||||||||||
boolean |
isActionEnabled(TransformContext context)
Called by
isItemAvailable(TransformContext) , indicates the abstract class if the corresponding action of this item is available. | ||||||||||
boolean | itemHasSubMenus(ContextMenuItem item, TransformContext context) | ||||||||||
void |
setOndemandMenuItemProperties(ContextMenuItem item, TransformContext context)
Sets the properties on "Drill" ContextMenuItems which is essential for populating of ondemand drilling items for grids.
| ||||||||||
static void |
setOndemandProperties(ContextMenuItem item, ReportCellDrill.AbstractDrillContextMenuBuilder subMenuBuilder)
Sets the properties on "Drill" ContextMenuItem which is essential for populating of ondemand drilling items for grids.
| ||||||||||
boolean | shuoldAddExtraSubMenuOptions(TransformContext context) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Class constructor
definition | Shortcut instance with the base definition of the option
|
---|
This methods can be used to add extra options to the drill menu option.
By default this method does nothing
cm | the ContextMenu object |
---|
Creates and populates a ContextMenuItem
based on the information in the
Shortcut
used as its definition, as well as the logic included
on this builder instance.
context | TransformContext initialized instance with the information on where
this option will be used |
---|
ContextMenuItem
initialized with the option
information to present to the user.
Get the submenu that will display the different sub-menu options to the user.
context | TransformContext initialized instance with the information on where
this option will be used |
---|
ContextMenu
instance initialized with all the options that can
be presented to the user.
Retrieve the key will be set on the context menu item corresponding to the context input.
The context menu item generated based on the same context input will have the same key.
This method can be called by context menu before calling createItem(TransformContext)
to check
whether the item already exists in the menu to avoid unnecessary creation.
context | The context for context menu item creation |
---|
null
will be return,
which means build has no knowledge about the item key. Then context menu item may generate the key by itself. For builder who wants
avoid unnecessary item creation should take advantage of this method by overriding with a meaningful implementation. Get an instance of ReportCellDrill.DrillContextMenuBuilder
that will help obtaining the different
drill options that shall be presented to the user.
context | TransformContext initialized instance with the information on where
this option will be used |
---|
ReportCellDrill.DrillContextMenuBuilder
initialized instance. Calling its
generateSubMenu()
method provides the ContextMenu
with the different drill paths available.
Returns an instance of (ReportCellAttributeForms.InvalidAttributeFormsContextMenuBuilder
if not supported.
Called by isItemAvailable(TransformContext)
, indicates the abstract class if the corresponding action of this item is available.
context | TransformContext initialized instance with the information on where
this option will be used |
---|
Sets the properties on "Drill" ContextMenuItems which is essential for populating of ondemand drilling items for grids.
item | a ContextMenuItem |
---|---|
context | a TransformContext |
Sets the properties on "Drill" ContextMenuItem which is essential for populating of ondemand drilling items for grids.
The properties set are:
onDemandJUILModelID, represents the id of the model for ondemand menus
onDemandJUILViewID, represents the id of the view for ondemand menus
onDemandDynamicMenusKey, represents the key to store the submenu of "Drill" ContextMenuItem and is used by getSubMenu()
The method is static since it is also used in ReportPageByCellDrill class
item | ContextMenuItem |
---|