Class PageByHyperLinkNavigation.AbstractHyperLinkNavigationContextMenuBuilder
- java.lang.Object
 - 
- com.microstrategy.web.app.transforms.contextmenus.PageByHyperLinkNavigation.AbstractHyperLinkNavigationContextMenuBuilder
 
 
- 
- All Implemented Interfaces:
 ComposedContextMenuBuilder,PageByHyperLinkNavigation.HyperLinkNavigationContextMenuBuilder
- Enclosing class:
 - PageByHyperLinkNavigation
 
protected abstract static class PageByHyperLinkNavigation.AbstractHyperLinkNavigationContextMenuBuilder extends java.lang.Object implements PageByHyperLinkNavigation.HyperLinkNavigationContextMenuBuilder
Abstract base implementation of theReportCellDrill.DrillContextMenuBuilderclass.- Since:
 - MicroStrategy Web 8.1.2
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected PageByUnitunit 
- 
Constructor Summary
Constructors Constructor Description AbstractHyperLinkNavigationContextMenuBuilder(TransformContext context, PageByUnit _unit) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ContextMenugenerateSubMenu()Method that generates aContextMenuinstance with all the possible sub menu options enabled for the report cell provided.TransformContextgetContext()protected java.lang.StringgetDescriptor(int key)Utility method for obtaining the string of a descriptorprotected abstract WebHyperLinksgetHyperLinks()protected intgetIntValue(java.lang.String fpName, int defaultValue)Utility method for obtaining the integer value of a given formal parameterprotected java.lang.StringgetJSCode(WebHyperLink link, int linkIndex)protected abstract intgetPosition()protected java.lang.StringgetStringValue(java.lang.String fpName, java.lang.String defaultValue)Utility method for obtaining the string value of a given formal parameterprotected ContextMenugetSubMenu()protected WebTitlegetWebTitle()Utility method for obtaining the currentWebTitleinstance related to the cell being processedprotected voidinternalPopulate()protected booleanisFeatureAvailable(java.lang.String featureName)Utility method for determining if a feature is available or notbooleanisIframeEnabled()protected booleanisTrue(java.lang.String fpName)Utility method for obtaining the boolean value of a given formal parameterbooleanisValid()protected voidprocessHyperLinkElement(WebHyperLink link, int linkIndex)voidsetIframeEnabled(boolean value)Define if the options to generate will be iframe enabled or not- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.microstrategy.web.app.transforms.contextmenus.ComposedContextMenuBuilder
generateSubMenu, isIframeEnabled, setIframeEnabled 
 - 
 
 - 
 
- 
- 
Field Detail
- 
unit
protected PageByUnit unit
 
 - 
 
- 
Constructor Detail
- 
AbstractHyperLinkNavigationContextMenuBuilder
public AbstractHyperLinkNavigationContextMenuBuilder(TransformContext context, PageByUnit _unit)
 
 - 
 
- 
Method Detail
- 
getWebTitle
protected WebTitle getWebTitle()
Utility method for obtaining the currentWebTitleinstance related to the cell being processed- Returns:
 WebTitleinstance related with the cell being processed. Returnsnullif none provided.
 
- 
getHyperLinks
protected abstract WebHyperLinks getHyperLinks()
 
- 
getPosition
protected abstract int getPosition()
 
- 
getSubMenu
protected ContextMenu getSubMenu()
- Returns:
 ContextMenuinstance where the different options this builder will generate will be saved.
 
- 
internalPopulate
protected void internalPopulate()
 
- 
processHyperLinkElement
protected void processHyperLinkElement(WebHyperLink link, int linkIndex)
 
- 
getJSCode
protected java.lang.String getJSCode(WebHyperLink link, int linkIndex)
 
- 
isValid
public boolean isValid()
- Specified by:
 isValidin interfaceComposedContextMenuBuilder- Returns:
 - boolean value that indicates if drilling on the current cell shall be enabled to the user
 
 
- 
setIframeEnabled
public void setIframeEnabled(boolean value)
Define if the options to generate will be iframe enabled or not- Specified by:
 setIframeEnabledin interfaceComposedContextMenuBuilder- Parameters:
 value- boolean value indicating if the options to generate will be iframe enabled or not
 
- 
isIframeEnabled
public boolean isIframeEnabled()
- Specified by:
 isIframeEnabledin interfaceComposedContextMenuBuilder- Returns:
 - boolean value indicating if the options generated by this builder are iframe enabled or not
 
 
- 
getContext
public TransformContext getContext()
- Returns:
 ReportGridDisplayCell.Contextinstance with the information about the context (cell, transform, etc) where this menu item will be displayed.
 
- 
generateSubMenu
public ContextMenu generateSubMenu()
Description copied from interface:ComposedContextMenuBuilderMethod that generates aContextMenuinstance with all the possible sub menu options enabled for the report cell provided.- Specified by:
 generateSubMenuin interfaceComposedContextMenuBuilder- Returns:
 ContextMenuinstance with the drilling options that can be displayed to the user
 
- 
getDescriptor
protected java.lang.String getDescriptor(int key)
Utility method for obtaining the string of a descriptor- Parameters:
 key- value with the identifier of the descriptor to obtain- Returns:
 - String value of the descriptor, according to the key provided
 
 
- 
isFeatureAvailable
protected boolean isFeatureAvailable(java.lang.String featureName)
Utility method for determining if a feature is available or not- Parameters:
 featureName- String value with the name of the feature to test- Returns:
 - boolean value indicating if the feature is available or not.
 
 
- 
isTrue
protected boolean isTrue(java.lang.String fpName)
Utility method for obtaining the boolean value of a given formal parameter- Parameters:
 fpName- String value with the name of the formal parameter to test- Returns:
 - boolean value of the formal parameter requested. If not found or the formal parameter is not of type boolean, it will return false.
 
 
- 
getIntValue
protected int getIntValue(java.lang.String fpName, int defaultValue)Utility method for obtaining the integer value of a given formal parameter- Parameters:
 fpName- String value with the name of the formal parameter to testdefaultValue- value to return if the process of querying the formal parameter fails.- Returns:
 - value of the formal parameter requested. If not found or the formal parameter is not of type integer, it will return the default value provided.
 
 
- 
getStringValue
protected java.lang.String getStringValue(java.lang.String fpName, java.lang.String defaultValue)Utility method for obtaining the string value of a given formal parameter- Parameters:
 fpName- String value with the name of the formal parameter to testdefaultValue- value to return if the process of querying the formal parameter fails.- Returns:
 - value of the formal parameter requested. If not found or the formal parameter is not of type string, it will return the default value provided.
 
 
 - 
 
 -