Class ReportCellAttributeForms.AbstractAttributeFormsContextMenuBuilder
- java.lang.Object
-
- com.microstrategy.web.app.transforms.contextmenus.ReportCellAttributeForms.AbstractAttributeFormsContextMenuBuilder
-
- All Implemented Interfaces:
ComposedContextMenuBuilder
,ReportCellAttributeForms.AttributeFormsContextMenuBuilder
- Enclosing class:
- ReportCellAttributeForms
protected abstract static class ReportCellAttributeForms.AbstractAttributeFormsContextMenuBuilder extends java.lang.Object implements ReportCellAttributeForms.AttributeFormsContextMenuBuilder
Abstract base implementation of the AttributeFormsContextMenuBuilder interface.- Since:
- MicroStrategy Web 8.0.1
-
-
Constructor Summary
Constructors Constructor Description AbstractAttributeFormsContextMenuBuilder(ReportGridDisplayCell.Context context)
Class constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
canDisplayBaseForms()
Deprecated.this method is no longer used by the code baseContextMenu
generateSubMenu()
Method that generates aContextMenu
instance with all the possible sub menu options enabled for the report cell provided.protected WebAttributeForms
getBaseForms()
Deprecated.this method is no longer used by the base codeTransformContext
getContext()
protected java.lang.String
getDescriptor(int key)
Utility method for obtaining the string of a descriptorprotected int
getIntValue(java.lang.String fpName, int defaultValue)
Utility method for obtaining the integer value of a given formal parameterprotected java.lang.String
getStringValue(java.lang.String fpName, java.lang.String defaultValue)
Utility method for obtaining the string value of a given formal parameterprotected ContextMenu
getSubMenu()
protected WebAttributeForms
getViewAttributeForms()
Utility method for obtaining the current view attribute forms for the unit being analyzedprotected abstract WebTemplateUnit
getWebTemplateUnit()
protected WebAttributeForms
getWorkingSetAttributeForms()
Utility method for obtaining the current working set attribute forms for the unit being analyzedprotected void
internalPopulate()
protected boolean
isFeatureAvailable(java.lang.String featureName)
Utility method for determining if a feature is available or notboolean
isIframeEnabled()
protected boolean
isTrue(java.lang.String fpName)
Utility method for obtaining the boolean value of a given formal parameterprotected void
processBaseForms()
Deprecated.this method is no longer used by the base codeprotected void
processDerivedAttributeForms()
Render forms from Derived Attributes.protected void
processGenericOption()
If enabled, display a "More Options" entry on the context menu for allowing the user to select other Attribute Forms to use on the grid for the current unit being analyzed.protected void
processViewForms()
Render all the view forms of the current unit being analyzed as menu options from where the user can select to remove them from the current grid view or not.protected void
processWorkingSetForms()
Render those forms that exist on the working set but are not currently part of the view forms for the unit being analized.void
setIframeEnabled(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
isIframeEnabled, isValid, setIframeEnabled
-
-
-
-
Constructor Detail
-
AbstractAttributeFormsContextMenuBuilder
public AbstractAttributeFormsContextMenuBuilder(ReportGridDisplayCell.Context context)
Class constructor- Parameters:
context
-ReportGridDisplayCell
's Context instance with the information about the context (cell, transform, etc) where this menu item will be displayed.
-
-
Method Detail
-
getWebTemplateUnit
protected abstract WebTemplateUnit getWebTemplateUnit()
- Returns:
WebTemplateUnit
instance associated with the context menu options being rendered by this class.
-
internalPopulate
protected void internalPopulate()
-
processGenericOption
protected void processGenericOption()
If enabled, display a "More Options" entry on the context menu for allowing the user to select other Attribute Forms to use on the grid for the current unit being analyzed.
-
processViewForms
protected void processViewForms()
Render all the view forms of the current unit being analyzed as menu options from where the user can select to remove them from the current grid view or not.
-
processWorkingSetForms
protected void processWorkingSetForms()
Render those forms that exist on the working set but are not currently part of the view forms for the unit being analized. The user will be given the option to add them to the grid view.
-
processDerivedAttributeForms
protected void processDerivedAttributeForms()
Render forms from Derived Attributes.
-
canDisplayBaseForms
protected boolean canDisplayBaseForms()
Deprecated.this method is no longer used by the code base- Returns:
- boolean value indicating if the user can review and select (add) new base forms of the unit being analyzed to the grid view.
-
processBaseForms
protected void processBaseForms()
Deprecated.this method is no longer used by the base codeRender attribute base forms that do not exist defined as part of the working set. The user will be given the option to add them to the grid view.
-
generateSubMenu
public ContextMenu generateSubMenu()
Description copied from interface:ComposedContextMenuBuilder
Method that generates aContextMenu
instance with all the possible sub menu options enabled for the report cell provided.- Specified by:
generateSubMenu
in interfaceComposedContextMenuBuilder
- Returns:
ContextMenu
instance with the drilling options that can be displayed to the user
-
getViewAttributeForms
protected WebAttributeForms getViewAttributeForms()
Utility method for obtaining the current view attribute forms for the unit being analyzed- Returns:
WebAttributeForms
instance with the attribute forms defined as part of the view. If the process fails obtaining them, it will returnnull
-
getWorkingSetAttributeForms
protected WebAttributeForms getWorkingSetAttributeForms()
Utility method for obtaining the current working set attribute forms for the unit being analyzed- Returns:
WebAttributeForms
instance with the attribute forms defined as part of the working set. The collection might include those that are view forms. If the process fails obtaining them, it will returnnull
-
getBaseForms
protected WebAttributeForms getBaseForms()
Deprecated.this method is no longer used by the base codeUtility method for obtaining the base attribute forms for the unit being analyzed- Returns:
WebAttributeForms
instance with the base attribute forms. If the process fails obtaining them, it will returnnull
-
setIframeEnabled
public void setIframeEnabled(boolean value)
Define if the options to generate will be iframe enabled or not- Specified by:
setIframeEnabled
in interfaceComposedContextMenuBuilder
- Parameters:
value
- boolean value indicating if the options to generate will be iframe enabled or not
-
isIframeEnabled
public boolean isIframeEnabled()
- Specified by:
isIframeEnabled
in interfaceComposedContextMenuBuilder
- Returns:
- boolean value indicating if the options generated by this builder are iframe enabled or not
-
getContext
public TransformContext getContext()
- Returns:
ReportGridDisplayCell.Context
instance with the information about the context (cell, transform, etc) where this menu item will be displayed.
-
getSubMenu
protected ContextMenu getSubMenu()
- Returns:
ContextMenu
instance where the different options this builder will generate will be saved.
-
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.
-
-