Package com.microstrategy.web.app.beans
Class ReportFrameBeanImpl
- java.lang.Object
-
- com.microstrategy.utils.serialization.AbstractPersistable
-
- com.microstrategy.web.beans.AbstractTransformable
-
- com.microstrategy.web.beans.AbstractWebComponent
-
- com.microstrategy.web.app.beans.AbstractAppComponent
-
- com.microstrategy.web.app.beans.AbstractPersistableAppComponent
-
- com.microstrategy.web.app.beans.ReportFrameBeanImpl
-
- All Implemented Interfaces:
EnumWebPersistableState,Persistable,AppComponent,FrameBean,ReportFrameBean,RequestPersistable,Transformable,WebComponent
public class ReportFrameBeanImpl extends AbstractPersistableAppComponent implements ReportFrameBean
The ReportFrameBeanImpl is a container for the ReportBean and all the beans associated with it, such as editors, formula bar, etc.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_editorLocal property which value reflects the current editorprotected java.lang.String_promptStyleLocal property which stores the actual prompt style used.protected static java.lang.StringREPORT_FILTER_NAMEprotected static java.lang.StringREPORT_LIMIT_NAMEprotected static java.lang.StringVIEW_FILTER_NAMEprotected static java.lang.StringVIEW_LIMIT_NAME-
Fields inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
STATE_DELIMITOR, STATE_ITEM_SEPARATOR
-
Fields inherited from class com.microstrategy.web.beans.AbstractWebComponent
_features, _hasJustOpened
-
Fields inherited from class com.microstrategy.web.beans.AbstractTransformable
_beanContext
-
Fields inherited from class com.microstrategy.utils.serialization.AbstractPersistable
scriptEndTagEncoder
-
Fields inherited from interface com.microstrategy.web.app.beans.AppComponent
COMPONENT_POSITION_NOT_INITIALIZED
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
Fields inherited from interface com.microstrategy.web.app.beans.ReportFrameBean
COMPONENT_DESIGN_MODE_BUTTONS, COMPONENT_FORMAT_EDITOR, COMPONENT_GRAPH_TOOLBAR, COMPONENT_GRID_EDITOR, COMPONENT_GRID_TOOLBAR, COMPONENT_MESSAGE_BEFORE_DATA, COMPONENT_OBJECT_BROWSER, COMPONENT_PAGE_BY, COMPONENT_PROMPT_DETAILS, COMPONENT_REPORT_DATA, COMPONENT_REPORT_ERROR, COMPONENT_REPORT_FILTER, COMPONENT_REPORT_LAST_UPDATE, COMPONENT_REPORT_LIMIT, COMPONENT_REPORT_MENUS, COMPONENT_REPORT_PAGEBY, COMPONENT_REPORT_TOOLBAR, COMPONENT_VIEW_FILTER, COMPONENT_VIEW_LIMIT, COMPONENT_VISUALIZATION_PROPS_EDITOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddChild(java.lang.String key, WebComponent child)Adds a child component to the currentWebComponent.voidaddChildStateInfo(ParameterBuilder paramBldr)Adds children state information into an existingParameterBuilderinstance.voidaddChildStateInfo(ParameterBuilder paramBldr, int howMuchState)Adds children state information into an existingParameterBuilderinstance.voidcloseElement(FrameElement element)Mark as closed the corresponding ReportFrameElementvoidcollectData()We need to over-ride the collectdata on the ReportFrame so that we can clear the promptStyle property when the report bean is successful or ends in errorvoiddoCollectData()For performance, this method overrides the default collectData() by checking if the ReportBean will be displayed, and if not it will not trigger it's collectData().protected voiddoFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)Proceses the save/restore state opperation of the AppComponentMarkupOutputgenerateOutput()This method creates aReportFrameClassicTransformand returns the result of transforming it.AttributeFormsEditorBeangetAttributeFormsEditorBean()WebComponentgetChild(java.lang.String key)Get the child instance based on the key passed as argumentFrameElementgetCurrentEditor()It returns which is the current editor to be displayied.intgetDefaultStateLevel()Returns the default state level.DerivedElementsEditorBeangetDerivedElementsEditor()intgetDesignMode()Returns the view mode of the report frame bean (a value from EnumReportViewModes)intgetDesignModeStage()Check the preferences for the name of the editor that will be displayed with this request.DocumentBeangetDocumentBean()Returns the report bean associated with this report frame bean.DrillEditorBeangetDrillEditorBean()Returns the drill editor bean within this report frame bean.DrillFilterEditorBeangetDrillFilterEditorBean()java.lang.StringgetDynamicMenuName()Name of the Shortcut object to use as Dynamic Menujava.lang.StringgetEditorMessage()This method is used to set a message related with an Editor action.intgetExecutionMode()Returns the view mode of the report frame bean (a value from EnumReportViewModes)WebFeaturesgetFeaturesManager()Return the WebFeatures implementation associated with this WebComponentFilterElementBeangetFilterElement(int type)FormulaBarBeangetFormulaBarBean()Returns the formular bar bean within this report frame bean.GraphFormatEditorBeangetGraphFormatEditorBean()Returns the graph format editor bean within this report frame bean.GraphFormatToolbarBeangetGraphFormatToolbarBean()Returns the graph format toolbar bean within this report frame bean.GridFormatEditorBeangetGridFormatEditorBean()Returns the grid format editor bean within this report frame bean.GridFormatToolbarBeangetGridFormatToolbarBean()Returns the grid format toolbar bean within this report frame bean.java.lang.ObjectgetIFrameComponent(java.lang.String name)Returns the associated object associated with the iFrame component.booleangetIsDesignMode()Returns whether the view mode of the report frame bean (a value from EnumReportViewModes) is equal toEnumReportViewModes.ReportViewModeDesignMenugetMenus()Returns the menus for this FrameBean based on the dynamicMenuName property.java.lang.StringgetMessageBeforeData()Deprecated.ObjectBrowserBeangetObjectBrowserBean()Deprecated.This method should no longer be used.ObjectBrowserManagerBeangetObjectBrowserTabMgrBean()Returns the ObjectBrowser bean associated with this report frame bean.PageByBeangetPageByBean()Returns the PageBy editor bean.PromptDetailsBeangetPromptDetailsBean()Returns aPromptDetailsBeanobject corresponding to the prompt details.PromptsContainerBeangetPromptsContainerBean()Returns aPromptsContainerBeanobject corresponding to the prompts container.java.lang.StringgetPromptStyle()Indicates actual prompt style used.booleangetRefreshGrid()Retrieves the flag indicating whether to refresh the grid or not.ReportBeangetReportBean()Returns the report bean associated with this report frame bean.ReportDetailsBeangetReportDetailsBean()Returns aReportDetailsBeanobject corresponding to the report details.java.lang.StringgetReportEditorName()Retrieves the name of the current open report editorFilterEditorBeangetReportFilterEditor()Returns the report filter editor bean within this report frame bean.FilterElementBeangetReportFilterElement()Returns aFilterElementBeanobject corresponding to the report filter.FilterElementBeangetReportLimitElement()java.lang.StringgetReportStyleLocalizedName()ResizeEditorBeangetResizeEditorBean()RWBeangetRWBean()Returns the rw bean associated with this report frame bean.SubscriptionEditorBeangetSchedulesEditorBean()SubscriptionEditorBeangetSendNowEditorBean()SortEditorBeangetSortEditorBean()SubscriptionEditorBeangetSubscriptionsEditorBean()WebComponentgetTargetBean()Returns the target bean associated with this FrameBean.booleangetUseIFrame()Returns if the ReportFrame uses IFramesFilterEditorBeangetViewFilterEditor()Returns the view filter editor bean within this report frame bean.FilterElementBeangetViewFilterElement()Returns aFilterElementBeanobject corresponding to the view filter.FilterElementBeangetViewLimitElement()VisualizationPropertiesEditorBeangetVisualizationPropertiesEditorBean()intgetXMLStatus()Returns the EnumRequestStatus status of the bean.booleanhasChanged()Verifies the state of the component has changedbooleanisEventNeedsToCollectData()booleanisIframeEnabled()Determines if the instance is enabled to work on IFrame environmentsprotected booleanisIFrameRequest()Utility method that determines if it's an IFrame type of request.booleanisNoActionFlagRemoved()protected booleanisObjectBrowserOpen()Checks if the given ObjectBrowserManagerBean is openbooleanisOpen(FrameElement element)Identifies if the given ReportFrameElement is open.booleanisReportToolbarEnabled()Returns true if the report toolbar should be enabledprotected WebEventHandlernewDefaultEventHandler()voidopenElement(FrameElement element)Mark as opened the corresponding ReportFrameElementprotected WebComponentsearchChildByClass(java.lang.Class beanClass)protected voidsetCookie(java.lang.String key, java.lang.String value)Set a cookie value as specifiedvoidsetDesignMode(int designMode)Sets the view mode of the report frame bean (a value from EnumReportViewModes)voidsetDesignModeStage(int designModeStage)Sets the design mode stage of the report frame beanvoidsetDynamicMenuName(java.lang.String dynamicMenuName)Set the name of the dynamic menu to be associated with this instancevoidsetEditorMessage(java.lang.String message)This method is used to set a message related with an Editor action.voidsetEventNeedsToCollectData(boolean needsToCollectData)voidsetExecutionMode(int executeMode)Sets the view mode of the report frame bean (a value from EnumReportViewModes)voidsetMessageBeforeData(java.lang.String message)Deprecated.voidsetNoActionFlagRemoved(boolean noActionFlagRemoved)Set this to true if we just removed the noAction flag from the executionFlags when switch a report from design mode to view modevoidsetPromptStyle(java.lang.String style)Specifies which style to use for prompt transforms.voidsetRefreshGrid(boolean value)Sets a flag indicating whether to refresh the grid or not.voidsetReportEditorName(java.lang.String value)Sets the name of the report editor to be openvoidsetUseIFrame(boolean value)Defines if the ReportFrame should use IFramevoidsetXMLStatus(int value)Sets the EnumRequestStatus status of the bean.booleanshouldDisplayContent(java.lang.String name)Returns false if an iFrame component needs not to be rendered in an iFrame request.-
Methods inherited from class com.microstrategy.web.app.beans.AbstractPersistableAppComponent
isCookieOpen, isSaveStateEnabled, saveState, saveState, saveState, saveState
-
Methods inherited from class com.microstrategy.web.app.beans.AbstractAppComponent
collectMinimalData, compareChildsTargetWithCurrent, createTransformInstance, doCollectMinimalData, getAppContext, getContactInfo, getContainerServices, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getObjectSource, getResultFilterMode, getSession, getTop, getType, getWebObjectsFactory, getWebObjectsFactory, hasTargetBeanChanged, haveChildrenChanged, initComponent, internalCollectData, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, isOpen, newDefaultBeanContext, newHiddenInputBuilder, newNamespaceEncoder, newStyleRequestContext, newURIBuilder, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setOutputFormat, setTop
-
Methods inherited from class com.microstrategy.web.beans.AbstractWebComponent
addChildStateInfo, addChildStateInfo, addChildStateInfo, addStateInfo, childValues, clearChildren, clearStateCache, getCachedState, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isChangeComparisonFlagSet, isFeatureAvailable, prepareForReuse, removeChild, removeChild, restoreState, restoreStateFromRequest, restoreStateFromRequest, saveXMLState, saveXMLState, saveXMLState, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setParent, setPersistMode, setRenderingFilter, setStateCache, setTargetBean, setTargetBeanPath, setWebEventHandler
-
Methods inherited from class com.microstrategy.web.beans.AbstractTransformable
addTransform, addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, createTransformInstance, getBeanContext, getDefaultTransform, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, hasTransform, hasTransform, internalCollectData, internalCollectData, invalidateTransformCache, isTransformSuitable, transform, transform, transform, transform
-
Methods inherited from class com.microstrategy.utils.serialization.AbstractPersistable
doFlatState, getStateHandler, isXMLStateZipped, restoreState, restoreXMLState, saveXMLState
-
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.beans.AppComponent
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getLeft, getResultFilterMode, getTop, isDialog, isForcedChildrenStateSaving, isModal, isModalOpen, isOpen, setExtraInput, setExtraUrl, setForcedChildrenStateSaving, setHasJustOpened, setIsDialog, setIsModal, setIsOpen, setLeft, setTop
-
Methods inherited from interface com.microstrategy.web.app.beans.FrameBean
getDynamicMenuName, getEditorMessage, getMenus, getMessageBeforeData, getPromptStyle, getUseIFrame, setDynamicMenuName, setEditorMessage, setMessageBeforeData, setPromptStyle, setUseIFrame
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.web.app.beans.ReportFrameBean
getAttributeFormsEditorBean, getDrillEditorBean, getDrillFilterEditorBean, getFormulaBarBean, getGraphFormatEditorBean, getGraphFormatToolbarBean, getGridFormatEditorBean, getGridFormatToolbarBean, getReportBean, getReportFilterEditor, getResizeEditorBean, getSchedulesEditorBean, getSendNowEditorBean, getSortEditorBean, getSubscriptionsEditorBean, getViewFilterEditor
-
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest
-
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
-
Methods inherited from interface com.microstrategy.web.beans.WebComponent
collectMinimalData, getBeanContext, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, handleRequest, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler
-
-
-
-
Field Detail
-
REPORT_FILTER_NAME
protected static final java.lang.String REPORT_FILTER_NAME
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
REPORT_LIMIT_NAME
protected static final java.lang.String REPORT_LIMIT_NAME
- Since:
- MicroStrategy Web 8.0.2
- See Also:
- Constant Field Values
-
VIEW_FILTER_NAME
protected static final java.lang.String VIEW_FILTER_NAME
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
VIEW_LIMIT_NAME
protected static final java.lang.String VIEW_LIMIT_NAME
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
_editor
protected java.lang.String _editor
Local property which value reflects the current editor- Since:
- MicroStrategy Web 8.0.0
-
_promptStyle
protected java.lang.String _promptStyle
Local property which stores the actual prompt style used.- Since:
- MicroStrategy Web 7.5.1
-
-
Method Detail
-
getTargetBean
public WebComponent getTargetBean()
Returns the target bean associated with this FrameBean. The target bean is the one with the main data.- Specified by:
getTargetBeanin interfaceFrameBean- Specified by:
getTargetBeanin interfaceWebComponent- Overrides:
getTargetBeanin classAbstractAppComponent- Returns:
- the target bean for this Frame.
- Since:
- MicroStrategy Web 8.0.0
-
getIFrameComponent
public java.lang.Object getIFrameComponent(java.lang.String name)
Description copied from interface:FrameBeanReturns the associated object associated with the iFrame component. An iFrame component is any part of the interface that can be refreshed independently when using iFrames, for example a Bean, the current editor, the menus or the editor's message.- Specified by:
getIFrameComponentin interfaceFrameBean- Parameters:
name- String with the name of the iframe component to look for- Returns:
- the corresponding iFrame component for the given name
- Since:
- MicroStrategy Web 8.0.0
-
generateOutput
public MarkupOutput generateOutput()
This method creates aReportFrameClassicTransformand returns the result of transforming it.- Specified by:
generateOutputin interfaceWebComponent- Overrides:
generateOutputin classAbstractAppComponent- Returns:
- the
MarkupOutputgenerated by theReportFrameClassicTransform.
-
getDesignMode
public int getDesignMode()
Returns the view mode of the report frame bean (a value from EnumReportViewModes)- Specified by:
getDesignModein interfaceReportFrameBean- Returns:
- the view mode of the report frame bean (a value from EnumReportViewModes)
-
getIsDesignMode
public boolean getIsDesignMode()
Returns whether the view mode of the report frame bean (a value from EnumReportViewModes) is equal toEnumReportViewModes.ReportViewModeDesign- Specified by:
getIsDesignModein interfaceReportFrameBean- Returns:
- boolean true if the the report frame bean is in design mode
TQMS 249689, add this method to interface
ReportFrameBean - Since:
- MicroStrategy Web 9.0.0
-
getExecutionMode
public int getExecutionMode()
Returns the view mode of the report frame bean (a value from EnumReportViewModes)- Specified by:
getExecutionModein interfaceReportFrameBean- Returns:
- the view mode of the report frame bean (a value from EnumReportViewModes)
-
setDesignMode
public void setDesignMode(int designMode)
Sets the view mode of the report frame bean (a value from EnumReportViewModes)- Specified by:
setDesignModein interfaceReportFrameBean- Parameters:
designMode- the view mode of the report frame bean (a value from EnumReportViewModes)
-
setExecutionMode
public void setExecutionMode(int executeMode)
Sets the view mode of the report frame bean (a value from EnumReportViewModes)- Specified by:
setExecutionModein interfaceReportFrameBean- Parameters:
executeMode- the view mode of the report frame bean (a value from EnumReportViewModes)
-
setDesignModeStage
public void setDesignModeStage(int designModeStage)
Sets the design mode stage of the report frame bean- Specified by:
setDesignModeStagein interfaceReportFrameBean- Parameters:
designModeStage- the design mode stage of the report frame bean (a value from EnumReportDesignMode)
-
getDesignModeStage
public int getDesignModeStage()
Check the preferences for the name of the editor that will be displayed with this request.- Specified by:
getDesignModeStagein interfaceReportFrameBean- Returns:
- the name of the editor to be displayed for this frame
-
getCurrentEditor
public FrameElement getCurrentEditor()
It returns which is the current editor to be displayied. Formatting editors (Grid or Graph), if current, are not considered.- Specified by:
getCurrentEditorin interfaceFrameBean- Returns:
- the current editor,
-
shouldDisplayContent
public boolean shouldDisplayContent(java.lang.String name)
Description copied from interface:FrameBeanReturns false if an iFrame component needs not to be rendered in an iFrame request.- Specified by:
shouldDisplayContentin interfaceFrameBean- Parameters:
name- the component to render- Returns:
- false if the component should not be rendered, true otherwise.
-
doFlatState
protected void doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Description copied from class:AbstractPersistableAppComponentProceses the save/restore state opperation of the AppComponent- Parameters:
serializer- an instance of theFlatStateSerializerobject to usehowMuchState- defines how much information needs to be savedtokenizer- an instance of theFlatStateTokenizerobject to use
-
collectData
public void collectData() throws WebBeanExceptionWe need to over-ride the collectdata on the ReportFrame so that we can clear the promptStyle property when the report bean is successful or ends in error- Specified by:
collectDatain interfaceWebComponent- Overrides:
collectDatain classAbstractAppComponent- Throws:
WebBeanException- thrown if there is any exception
-
getFeaturesManager
public WebFeatures getFeaturesManager()
Description copied from class:AbstractAppComponentReturn the WebFeatures implementation associated with this WebComponent- Specified by:
getFeaturesManagerin interfaceWebComponent- Overrides:
getFeaturesManagerin classAbstractAppComponent- Returns:
- a WebFeatures instance
-
isReportToolbarEnabled
public boolean isReportToolbarEnabled()
Description copied from interface:ReportFrameBeanReturns true if the report toolbar should be enabled- Specified by:
isReportToolbarEnabledin interfaceReportFrameBean- Returns:
- isReportToolbarEnabled
-
openElement
public void openElement(FrameElement element)
Mark as opened the corresponding ReportFrameElement- Specified by:
openElementin interfaceFrameBean- Parameters:
element- the element to open- See Also:
isOpen(com.microstrategy.web.app.beans.FrameElement)
-
closeElement
public void closeElement(FrameElement element)
Mark as closed the corresponding ReportFrameElement- Specified by:
closeElementin interfaceFrameBean- Parameters:
element- the element to open- See Also:
isOpen(com.microstrategy.web.app.beans.FrameElement)
-
isOpen
public boolean isOpen(FrameElement element)
Identifies if the given ReportFrameElement is open. To identify whether a FrameElement is open, The ReportFrameBean checks the following:- In design mode:
- the object-browser and page-by section are always opened.
- the view and report filters are opened only when editing the filter.
- all other elements are closed.
- In View mode:
- The object browser depends on the
EnumWebBrowserSettings.WebBrowserSettingObjBrowserViewbrowser setting - The page-by depends on the
EnumWebBrowserSettings.WebBrowserSettingPageBySectionbrowser setting - The grid and graph toolbar depends on a browser setting whose name is
this ReportFrameBean name + "_" +
EnumWebBrowserSettings.WebBrowserSettingFormatToolbari.e.:
key = getName() + "_" + element.getName(); - Other elements depends on a browser setting whose is this ReportFrameBean name + "_" + the element's name, i.e.:
key = getName() + "_" + element.getName();
- The object browser depends on the
- Specified by:
isOpenin interfaceFrameBean- Parameters:
element-FrameElementinstance to check if it's opened or not- Returns:
- true if the element is open.
- In design mode:
-
isObjectBrowserOpen
protected boolean isObjectBrowserOpen()
Checks if the given ObjectBrowserManagerBean is open- Returns:
- true if the element is open.
- Since:
- MicroStrategy Web 8.0.0
-
doCollectData
public void doCollectData()
For performance, this method overrides the default collectData() by checking if the ReportBean will be displayed, and if not it will not trigger it's collectData().- Overrides:
doCollectDatain classAbstractAppComponent- Since:
- MicroStrategy Web 8.0.0
-
addChildStateInfo
public void addChildStateInfo(ParameterBuilder paramBldr, int howMuchState)
Adds children state information into an existingParameterBuilderinstance. It is up to the suppliedParameterBuilderto determine how this information is serialized. OverridesaddChildStateInfo()for the smartCollectData case: When doing smartCollectData we change some settings in the Result flags or the WindowSettings of the report data to bring less information. We don't want these changes to be saved in the state of the report bean, so its state is saved before this changes and this method appends that state, instead of the current one.- Specified by:
addChildStateInfoin interfaceWebComponent- Overrides:
addChildStateInfoin classAbstractPersistableAppComponent- Parameters:
paramBldr- TheParameterBuilderinstance which has child state information added to it.howMuchState- How much persistable state ofEnumWebPersistableStateto return from its children.- Since:
- MicroStrategy Web 8.0.0
-
addChildStateInfo
public void addChildStateInfo(ParameterBuilder paramBldr)
Description copied from interface:WebComponentAdds children state information into an existingParameterBuilderinstance. It is up to the suppliedParameterBuilderto determine how this information is serialized. EachWebComponentthe hierarchy serializes its state according to its ownWebComponent.getDefaultStateLevel().- Specified by:
addChildStateInfoin interfaceWebComponent- Overrides:
addChildStateInfoin classAbstractAppComponent- Parameters:
paramBldr- TheParameterBuilderinstance which has child state information added to it.- Since:
- MicroStrategy Web 9.0.0
-
getReportStyleLocalizedName
public java.lang.String getReportStyleLocalizedName()
- Specified by:
getReportStyleLocalizedNamein interfaceReportFrameBean- Returns:
- the report bean's localized style name. It's used for old-formatting reports to apply style first before other formattig manipulation. For new-formatting reports, it returns "".
-
getXMLStatus
public int getXMLStatus()
Returns the EnumRequestStatus status of the bean. By default the status of this bean is EnumRequestStatus.WebBeanRequestSuccessful.- Specified by:
getXMLStatusin interfaceWebComponent- Overrides:
getXMLStatusin classAbstractAppComponent- Returns:
- the
EnumRequestStatusof the component.
-
setXMLStatus
public void setXMLStatus(int value)
Sets the EnumRequestStatus status of the bean.- Specified by:
setXMLStatusin interfaceReportFrameBean- Parameters:
value- The XML status value ofor this bean.
-
getObjectBrowserBean
public ObjectBrowserBean getObjectBrowserBean()
Deprecated.This method should no longer be used. UsegetObjectBrowserTabMgrBeaninstead.Returns the ObjectBrowser bean associated with this report frame bean.- Specified by:
getObjectBrowserBeanin interfaceReportFrameBean- Returns:
- the DynamicMenu bean associated with this report frame bean
-
getDerivedElementsEditor
public DerivedElementsEditorBean getDerivedElementsEditor()
- Specified by:
getDerivedElementsEditorin interfaceReportFrameBean- Since:
- MicroStrategy Web 9.0.0
-
getObjectBrowserTabMgrBean
public ObjectBrowserManagerBean getObjectBrowserTabMgrBean()
Returns the ObjectBrowser bean associated with this report frame bean. The Object Browser is now a TabManager bean.- Specified by:
getObjectBrowserTabMgrBeanin interfaceReportFrameBean- Returns:
- TabManagerBean
- Since:
- MicroStrategy Web 8.0.0
-
getVisualizationPropertiesEditorBean
public VisualizationPropertiesEditorBean getVisualizationPropertiesEditorBean()
-
getPageByBean
public PageByBean getPageByBean()
Description copied from interface:ReportFrameBeanReturns the PageBy editor bean.- Specified by:
getPageByBeanin interfaceReportFrameBean- Returns:
PageByBeaninstance associated with this bean- Since:
- MicroStrategy Web 9.0.0
-
setReportEditorName
public void setReportEditorName(java.lang.String value)
Sets the name of the report editor to be open- Specified by:
setReportEditorNamein interfaceReportFrameBean- Parameters:
value- The name of the report editor to be open- Since:
- MicroStrategy Web 8.0.0
-
getReportEditorName
public java.lang.String getReportEditorName()
Retrieves the name of the current open report editor- Specified by:
getReportEditorNamein interfaceReportFrameBean- Returns:
- The name of the current open report editor
- Since:
- MicroStrategy Web 8.0.0
-
getReportFilterElement
public FilterElementBean getReportFilterElement()
Description copied from interface:ReportFrameBeanReturns aFilterElementBeanobject corresponding to the report filter.- Specified by:
getReportFilterElementin interfaceReportFrameBean- Returns:
- A
FilterElementBeancorresponding to the report filter. - Since:
- MicroStrategy Web 8.0.0
-
getReportLimitElement
public FilterElementBean getReportLimitElement()
- Specified by:
getReportLimitElementin interfaceReportFrameBean- Since:
- MicroStrategy Web 8.0.2
-
getViewFilterElement
public FilterElementBean getViewFilterElement()
Description copied from interface:ReportFrameBeanReturns aFilterElementBeanobject corresponding to the view filter.- Specified by:
getViewFilterElementin interfaceReportFrameBean- Returns:
- A
FilterElementBeancorresponding to the view filter. - Since:
- MicroStrategy Web 8.0.0
-
getViewLimitElement
public FilterElementBean getViewLimitElement()
- Specified by:
getViewLimitElementin interfaceReportFrameBean- Since:
- MicroStrategy Web 9.0.0
-
getFilterElement
public FilterElementBean getFilterElement(int type)
- Specified by:
getFilterElementin interfaceReportFrameBean- Since:
- MicroStrategy Web 8.0.2
-
getChild
public WebComponent getChild(java.lang.String key)
Get the child instance based on the key passed as argument- Specified by:
getChildin interfaceWebComponent- Overrides:
getChildin classAbstractWebComponent- Parameters:
key- String value with the name to look for- Returns:
WebComponentinstance corresponding to the key- Since:
- MicroStrategy Web 8.0.0
-
getPromptDetailsBean
public PromptDetailsBean getPromptDetailsBean()
Description copied from interface:ReportFrameBeanReturns aPromptDetailsBeanobject corresponding to the prompt details.- Specified by:
getPromptDetailsBeanin interfaceReportFrameBean- Returns:
- A
PromptDetailsBeancorresponding to the prompt details. - Since:
- MicroStrategy Web 8.0.1
- See Also:
ReportFrameBean.getPromptDetailsBean()
-
getReportDetailsBean
public ReportDetailsBean getReportDetailsBean()
Description copied from interface:ReportFrameBeanReturns aReportDetailsBeanobject corresponding to the report details.- Specified by:
getReportDetailsBeanin interfaceReportFrameBean- Returns:
- A
ReportDetailsBeancorresponding to the report details. - Since:
- MicroStrategy Web 9.0.0
-
getPromptsContainerBean
public PromptsContainerBean getPromptsContainerBean()
Description copied from interface:ReportFrameBeanReturns aPromptsContainerBeanobject corresponding to the prompts container.- Specified by:
getPromptsContainerBeanin interfaceReportFrameBean- Returns:
- A
PromptsContainerBeancorresponding to the prompts Container. - Since:
- MicroStrategy Web 9.0.0
- See Also:
ReportFrameBean.getPromptDetailsBean()
-
isEventNeedsToCollectData
public boolean isEventNeedsToCollectData()
- Returns:
- Returns the _eventNeedsToCollectData.
- Since:
- MicroStrategy Web 8.0.1
-
setEventNeedsToCollectData
public void setEventNeedsToCollectData(boolean needsToCollectData)
- Parameters:
needsToCollectData- The _eventNeedsToCollectData to set.- Since:
- MicroStrategy Web 8.0.1
-
setRefreshGrid
public void setRefreshGrid(boolean value)
Description copied from interface:ReportFrameBeanSets a flag indicating whether to refresh the grid or not. This flag is only read when attribute forms editor is opened.- Specified by:
setRefreshGridin interfaceReportFrameBean- Since:
- MicroStrategy Web 8.1.1
-
getRefreshGrid
public boolean getRefreshGrid()
Description copied from interface:ReportFrameBeanRetrieves the flag indicating whether to refresh the grid or not. This flag is only read when attribute forms editor is opened.- Specified by:
getRefreshGridin interfaceReportFrameBean- Since:
- MicroStrategy Web 8.1.1
-
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
newDefaultEventHandlerin classAbstractWebComponent- Since:
- MicroStrategy Web 9.0.0
-
addChild
public void addChild(java.lang.String key, WebComponent child)Description copied from class:AbstractWebComponentAdds a child component to the currentWebComponent. This call invalidates the cached states.- Specified by:
addChildin interfaceWebComponent- Overrides:
addChildin classAbstractWebComponent- Parameters:
key- the key mapped to the child component.child- the child component to add.- Since:
- MicroStrategy Web 9.0.0
-
getDefaultStateLevel
public int getDefaultStateLevel()
Description copied from class:AbstractWebComponentReturns the default state level. If not set, the default state level isEnumWebPersistableState.MINIMAL_STATE_INFO.- Specified by:
getDefaultStateLevelin interfaceWebComponent- Overrides:
getDefaultStateLevelin classAbstractWebComponent- Returns:
- the defautl state level.
- Since:
- MicroStrategy Web 9.0.0
-
setNoActionFlagRemoved
public void setNoActionFlagRemoved(boolean noActionFlagRemoved)
Description copied from interface:ReportFrameBeanSet this to true if we just removed the noAction flag from the executionFlags when switch a report from design mode to view mode- Specified by:
setNoActionFlagRemovedin interfaceReportFrameBean- Parameters:
noActionFlagRemoved- boolean true indicates we just remove the noAction flag from the executionFlags when switch a report from design mode to view mode
-
isNoActionFlagRemoved
public boolean isNoActionFlagRemoved()
- Specified by:
isNoActionFlagRemovedin interfaceReportFrameBean- Returns:
- whether we have just removed the noAction flag from the executionFlags when switch a report from design mode to view mode
-
isIframeEnabled
public boolean isIframeEnabled()
Determines if the instance is enabled to work on IFrame environments- Returns:
- boolean value indicating whether IFrame is enabled for this component
-
setUseIFrame
public void setUseIFrame(boolean value)
Description copied from interface:FrameBeanDefines if the ReportFrame should use IFrame- Specified by:
setUseIFramein interfaceFrameBean- Parameters:
value- if true, the ReportFrame will use IFrames
-
getUseIFrame
public boolean getUseIFrame()
Description copied from interface:FrameBeanReturns if the ReportFrame uses IFrames- Specified by:
getUseIFramein interfaceFrameBean- Returns:
- true if frames are used.
-
isIFrameRequest
protected boolean isIFrameRequest()
Description copied from class:AbstractAppComponentUtility method that determines if it's an IFrame type of request.- Overrides:
isIFrameRequestin classAbstractAppComponent- Returns:
booleanvalue indicating if the request is of type IFrame or not. By default it is based only on information available on theRequestKeysassociated with this instance.
-
setEditorMessage
public void setEditorMessage(java.lang.String message)
This method is used to set a message related with an Editor action. The Editor after performing it's operation might set this message to inform the user about the success/failure of the action.- Specified by:
setEditorMessagein interfaceFrameBean- Parameters:
message- the message to be shown.- Since:
- MicroStrategy Web 8.0.0
-
getEditorMessage
public java.lang.String getEditorMessage()
This method is used to set a message related with an Editor action. The Editor after performing it's operation might set this message to inform the user about the success/failure of the action.- Specified by:
getEditorMessagein interfaceFrameBean- Returns:
- the message to be shown.
- Since:
- MicroStrategy Web 8.0.0
-
getFormulaBarBean
public FormulaBarBean getFormulaBarBean()
Returns the formular bar bean within this report frame bean.- Returns:
- the formular bar bean within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getAttributeFormsEditorBean
public AttributeFormsEditorBean getAttributeFormsEditorBean()
- Returns:
AttributeFormsEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getGridFormatToolbarBean
public GridFormatToolbarBean getGridFormatToolbarBean()
Returns the grid format toolbar bean within this report frame bean.- Returns:
- the grid format toolbar within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getGraphFormatToolbarBean
public GraphFormatToolbarBean getGraphFormatToolbarBean()
Returns the graph format toolbar bean within this report frame bean.- Returns:
- the graph format toolbar within this report frame bean
- Since:
- MicroStrategy Web 8.0.0
-
getReportFilterEditor
public FilterEditorBean getReportFilterEditor()
Returns the report filter editor bean within this report frame bean.- Returns:
- the report filter editor bean within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getViewFilterEditor
public FilterEditorBean getViewFilterEditor()
Returns the view filter editor bean within this report frame bean.- Returns:
- the view filter editor bean within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getGridFormatEditorBean
public GridFormatEditorBean getGridFormatEditorBean()
Returns the grid format editor bean within this report frame bean.- Returns:
- the grid format editor within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getGraphFormatEditorBean
public GraphFormatEditorBean getGraphFormatEditorBean()
Returns the graph format editor bean within this report frame bean.- Returns:
- the graph format editor within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getDrillEditorBean
public DrillEditorBean getDrillEditorBean()
Returns the drill editor bean within this report frame bean.- Returns:
- the drill editor bean within this report frame bean.
- Since:
- MicroStrategy Web 8.0.0
-
getDrillFilterEditorBean
public DrillFilterEditorBean getDrillFilterEditorBean()
- Returns:
DrillFilterEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSortEditorBean
public SortEditorBean getSortEditorBean()
- Returns:
SortEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getResizeEditorBean
public ResizeEditorBean getResizeEditorBean()
- Returns:
ResizeEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSchedulesEditorBean
public SubscriptionEditorBean getSchedulesEditorBean()
- Returns:
SubscriptionEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSubscriptionsEditorBean
public SubscriptionEditorBean getSubscriptionsEditorBean()
- Returns:
SubscriptionEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSendNowEditorBean
public SubscriptionEditorBean getSendNowEditorBean()
- Returns:
SubscriptionEditorBeaninstance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getMenus
public Menu getMenus()
Description copied from interface:FrameBeanReturns the menus for this FrameBean based on the dynamicMenuName property.
-
setDynamicMenuName
public void setDynamicMenuName(java.lang.String dynamicMenuName)
Set the name of the dynamic menu to be associated with this instance- Specified by:
setDynamicMenuNamein interfaceFrameBean- Parameters:
dynamicMenuName-Stringwith the name of the dynamic menu to be associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getDynamicMenuName
public java.lang.String getDynamicMenuName()
Description copied from interface:FrameBeanName of the Shortcut object to use as Dynamic Menu- Specified by:
getDynamicMenuNamein interfaceFrameBean- Returns:
- the name of the dynamic menu associated with this instance
- Since:
- MicroStrategy Web 8.0.0
-
getReportBean
public ReportBean getReportBean()
Returns the report bean associated with this report frame bean.- Returns:
- the report bean associated with this report frame bean
- Since:
- MicroStrategy Web 8.0.0
-
getDocumentBean
public DocumentBean getDocumentBean()
Returns the report bean associated with this report frame bean.- Returns:
- the report bean associated with this report frame bean
- Since:
- MicroStrategy Web 8.0.0
-
getRWBean
public RWBean getRWBean()
Returns the rw bean associated with this report frame bean.- Returns:
- the rw bean associated with this report frame bean
- Since:
- MicroStrategy Web 8.0.0
-
setMessageBeforeData
public void setMessageBeforeData(java.lang.String message)
Deprecated.- Specified by:
setMessageBeforeDatain interfaceFrameBean- Parameters:
message- String
-
getMessageBeforeData
public java.lang.String getMessageBeforeData()
Deprecated.- Specified by:
getMessageBeforeDatain interfaceFrameBean- Returns:
- editor message
-
hasChanged
public boolean hasChanged()
Description copied from class:AbstractWebComponentVerifies the state of the component has changed- Specified by:
hasChangedin interfaceWebComponent- Overrides:
hasChangedin classAbstractAppComponent- Returns:
booleanvalue indicating if the current instance has changed.- Since:
- MicroStrategy Web 8.0.0
-
setCookie
protected void setCookie(java.lang.String key, java.lang.String value)Set a cookie value as specified- Parameters:
key- name of the cookie to modifyvalue-Stringwith the value to assign to the specified cookie key- Since:
- MicroStrategy Web 8.0.0
-
setPromptStyle
public void setPromptStyle(java.lang.String style)
Specifies which style to use for prompt transforms.
This property indicates what prompt style to use when transforming a prompted Bean.- Specified by:
setPromptStylein interfaceFrameBean- Parameters:
style- String- Since:
- MicroStrategy Web 7.5.1
-
getPromptStyle
public java.lang.String getPromptStyle()
Indicates actual prompt style used.- Specified by:
getPromptStylein interfaceFrameBean- Returns:
- String name of prompt style.
- Since:
- MicroStrategy Web 7.5.1
-
searchChildByClass
protected WebComponent searchChildByClass(java.lang.Class beanClass)
-
-