Class PageByHyperLinkNavigation
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractPagebyContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.PageByHyperLinkNavigation
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class PageByHyperLinkNavigation extends AbstractPagebyContextMenuItemBuilder
- Since:
- MicroStrategy Web 8.1.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classPageByHyperLinkNavigation.AbstractHyperLinkNavigationContextMenuBuilderAbstract base implementation of theReportCellDrill.DrillContextMenuBuilderclass.protected static interfacePageByHyperLinkNavigation.HyperLinkNavigationContextMenuBuilderHelper builder interface that allows generating the different drill path options for the current cell that shall be displayed to the user.protected static classPageByHyperLinkNavigation.InvalidHyperLinkNavigationContextMenuBuilder
-
Constructor Summary
Constructors Constructor Description PageByHyperLinkNavigation(Shortcut definition)Class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextMenuItemcreateItem(TransformContext context)Creates and populates aContextMenuItembased on the information in theShortcutused as its defintion, as well as the logic included on this builder instance.ContextMenugenerateSubMenu(TransformContext context)Get the submenu that will display the different sub-menu options to the user.protected ComposedContextMenuBuildergetComposedContextMenuBuilder(TransformContext context)protected java.lang.StringgetJSCode(TransformContext context)Generate the JavaScript code the context menu item generated by this builder instance will trigger when the user selects it.protected booleanisActionEnabled(TransformContext context)Indicates the abstract class if the specific action of this item is available.protected booleanitemHasSubMenus(ContextMenuItem item, TransformContext context)-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractPagebyContextMenuItemBuilder
getBoneID, getContextMenusScript, getContextMenusScript, getPageByUnit, getTransform, isItemAvailable
-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript
-
-
-
-
Method Detail
-
createItem
public ContextMenuItem createItem(TransformContext context)
Creates and populates aContextMenuItembased on the information in theShortcutused as its defintion, as well as the logic included on this builder instance.- Specified by:
createItemin interfaceContextMenuItemBuilder- Overrides:
createItemin classContextMenu.DefaultContextMenuItemBuilder- Parameters:
context-TransformContextinitialized instance with the information on where this option will be used- Returns:
- a new instance of a
ContextMenuIteminitialized with the option information to present to the user.
-
itemHasSubMenus
protected boolean itemHasSubMenus(ContextMenuItem item, TransformContext context)
- Since:
- MicroStrategy Web 9.0.0
-
getJSCode
protected java.lang.String getJSCode(TransformContext context)
Generate the JavaScript code the context menu item generated by this builder instance will trigger when the user selects it.- Parameters:
context-TransformContextinitialized instance with the information on where this option will be used- Returns:
- By default it will return a
nullstring since this option will have a context menu attached to it, and JavaScript code already takes care of these cases.
-
generateSubMenu
public ContextMenu generateSubMenu(TransformContext context)
Get the submenu that will display the different sub-menu options to the user.- Parameters:
context-TransformContextinitialized instance with the information on where this option will be used- Returns:
ContextMenuinstance initialized with all the options that can be presented to the user.
-
getComposedContextMenuBuilder
protected ComposedContextMenuBuilder getComposedContextMenuBuilder(TransformContext context)
-
isActionEnabled
protected boolean isActionEnabled(TransformContext context)
Description copied from class:AbstractPagebyContextMenuItemBuilderIndicates the abstract class if the specific action of this item is available.- Specified by:
isActionEnabledin classAbstractPagebyContextMenuItemBuilder
-
-