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
_editor
Local property which value reflects the current editorprotected java.lang.String
_promptStyle
Local property which stores the actual prompt style used.protected static java.lang.String
REPORT_FILTER_NAME
protected static java.lang.String
REPORT_LIMIT_NAME
protected static java.lang.String
VIEW_FILTER_NAME
protected static java.lang.String
VIEW_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 void
addChild(java.lang.String key, WebComponent child)
Adds a child component to the currentWebComponent
.void
addChildStateInfo(ParameterBuilder paramBldr)
Adds children state information into an existingParameterBuilder
instance.void
addChildStateInfo(ParameterBuilder paramBldr, int howMuchState)
Adds children state information into an existingParameterBuilder
instance.void
closeElement(FrameElement element)
Mark as closed the corresponding ReportFrameElementvoid
collectData()
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 errorvoid
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().protected void
doFlatState(FlatStateSerializer serializer, int howMuchState, FlatStateTokenizer tokenizer)
Proceses the save/restore state opperation of the AppComponentMarkupOutput
generateOutput()
This method creates aReportFrameClassicTransform
and returns the result of transforming it.AttributeFormsEditorBean
getAttributeFormsEditorBean()
WebComponent
getChild(java.lang.String key)
Get the child instance based on the key passed as argumentFrameElement
getCurrentEditor()
It returns which is the current editor to be displayied.int
getDefaultStateLevel()
Returns the default state level.DerivedElementsEditorBean
getDerivedElementsEditor()
int
getDesignMode()
Returns the view mode of the report frame bean (a value from EnumReportViewModes)int
getDesignModeStage()
Check the preferences for the name of the editor that will be displayed with this request.DocumentBean
getDocumentBean()
Returns the report bean associated with this report frame bean.DrillEditorBean
getDrillEditorBean()
Returns the drill editor bean within this report frame bean.DrillFilterEditorBean
getDrillFilterEditorBean()
java.lang.String
getDynamicMenuName()
Name of the Shortcut object to use as Dynamic Menujava.lang.String
getEditorMessage()
This method is used to set a message related with an Editor action.int
getExecutionMode()
Returns the view mode of the report frame bean (a value from EnumReportViewModes)WebFeatures
getFeaturesManager()
Return the WebFeatures implementation associated with this WebComponentFilterElementBean
getFilterElement(int type)
FormulaBarBean
getFormulaBarBean()
Returns the formular bar bean within this report frame bean.GraphFormatEditorBean
getGraphFormatEditorBean()
Returns the graph format editor bean within this report frame bean.GraphFormatToolbarBean
getGraphFormatToolbarBean()
Returns the graph format toolbar bean within this report frame bean.GridFormatEditorBean
getGridFormatEditorBean()
Returns the grid format editor bean within this report frame bean.GridFormatToolbarBean
getGridFormatToolbarBean()
Returns the grid format toolbar bean within this report frame bean.java.lang.Object
getIFrameComponent(java.lang.String name)
Returns the associated object associated with the iFrame component.boolean
getIsDesignMode()
Returns whether the view mode of the report frame bean (a value from EnumReportViewModes) is equal toEnumReportViewModes.ReportViewModeDesign
Menu
getMenus()
Returns the menus for this FrameBean based on the dynamicMenuName property.java.lang.String
getMessageBeforeData()
Deprecated.ObjectBrowserBean
getObjectBrowserBean()
Deprecated.This method should no longer be used.ObjectBrowserManagerBean
getObjectBrowserTabMgrBean()
Returns the ObjectBrowser bean associated with this report frame bean.PageByBean
getPageByBean()
Returns the PageBy editor bean.PromptDetailsBean
getPromptDetailsBean()
Returns aPromptDetailsBean
object corresponding to the prompt details.PromptsContainerBean
getPromptsContainerBean()
Returns aPromptsContainerBean
object corresponding to the prompts container.java.lang.String
getPromptStyle()
Indicates actual prompt style used.boolean
getRefreshGrid()
Retrieves the flag indicating whether to refresh the grid or not.ReportBean
getReportBean()
Returns the report bean associated with this report frame bean.ReportDetailsBean
getReportDetailsBean()
Returns aReportDetailsBean
object corresponding to the report details.java.lang.String
getReportEditorName()
Retrieves the name of the current open report editorFilterEditorBean
getReportFilterEditor()
Returns the report filter editor bean within this report frame bean.FilterElementBean
getReportFilterElement()
Returns aFilterElementBean
object corresponding to the report filter.FilterElementBean
getReportLimitElement()
java.lang.String
getReportStyleLocalizedName()
ResizeEditorBean
getResizeEditorBean()
RWBean
getRWBean()
Returns the rw bean associated with this report frame bean.SubscriptionEditorBean
getSchedulesEditorBean()
SubscriptionEditorBean
getSendNowEditorBean()
SortEditorBean
getSortEditorBean()
SubscriptionEditorBean
getSubscriptionsEditorBean()
WebComponent
getTargetBean()
Returns the target bean associated with this FrameBean.boolean
getUseIFrame()
Returns if the ReportFrame uses IFramesFilterEditorBean
getViewFilterEditor()
Returns the view filter editor bean within this report frame bean.FilterElementBean
getViewFilterElement()
Returns aFilterElementBean
object corresponding to the view filter.FilterElementBean
getViewLimitElement()
VisualizationPropertiesEditorBean
getVisualizationPropertiesEditorBean()
int
getXMLStatus()
Returns the EnumRequestStatus status of the bean.boolean
hasChanged()
Verifies the state of the component has changedboolean
isEventNeedsToCollectData()
boolean
isIframeEnabled()
Determines if the instance is enabled to work on IFrame environmentsprotected boolean
isIFrameRequest()
Utility method that determines if it's an IFrame type of request.boolean
isNoActionFlagRemoved()
protected boolean
isObjectBrowserOpen()
Checks if the given ObjectBrowserManagerBean is openboolean
isOpen(FrameElement element)
Identifies if the given ReportFrameElement is open.boolean
isReportToolbarEnabled()
Returns true if the report toolbar should be enabledprotected WebEventHandler
newDefaultEventHandler()
void
openElement(FrameElement element)
Mark as opened the corresponding ReportFrameElementprotected WebComponent
searchChildByClass(java.lang.Class beanClass)
protected void
setCookie(java.lang.String key, java.lang.String value)
Set a cookie value as specifiedvoid
setDesignMode(int designMode)
Sets the view mode of the report frame bean (a value from EnumReportViewModes)void
setDesignModeStage(int designModeStage)
Sets the design mode stage of the report frame beanvoid
setDynamicMenuName(java.lang.String dynamicMenuName)
Set the name of the dynamic menu to be associated with this instancevoid
setEditorMessage(java.lang.String message)
This method is used to set a message related with an Editor action.void
setEventNeedsToCollectData(boolean needsToCollectData)
void
setExecutionMode(int executeMode)
Sets the view mode of the report frame bean (a value from EnumReportViewModes)void
setMessageBeforeData(java.lang.String message)
Deprecated.void
setNoActionFlagRemoved(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 modevoid
setPromptStyle(java.lang.String style)
Specifies which style to use for prompt transforms.void
setRefreshGrid(boolean value)
Sets a flag indicating whether to refresh the grid or not.void
setReportEditorName(java.lang.String value)
Sets the name of the report editor to be openvoid
setUseIFrame(boolean value)
Defines if the ReportFrame should use IFramevoid
setXMLStatus(int value)
Sets the EnumRequestStatus status of the bean.boolean
shouldDisplayContent(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:
getTargetBean
in interfaceFrameBean
- Specified by:
getTargetBean
in interfaceWebComponent
- Overrides:
getTargetBean
in 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:FrameBean
Returns 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:
getIFrameComponent
in 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 aReportFrameClassicTransform
and returns the result of transforming it.- Specified by:
generateOutput
in interfaceWebComponent
- Overrides:
generateOutput
in classAbstractAppComponent
- Returns:
- the
MarkupOutput
generated by theReportFrameClassicTransform
.
-
getDesignMode
public int getDesignMode()
Returns the view mode of the report frame bean (a value from EnumReportViewModes)- Specified by:
getDesignMode
in 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:
getIsDesignMode
in 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:
getExecutionMode
in 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:
setDesignMode
in 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:
setExecutionMode
in 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:
setDesignModeStage
in 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:
getDesignModeStage
in 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:
getCurrentEditor
in interfaceFrameBean
- Returns:
- the current editor,
-
shouldDisplayContent
public boolean shouldDisplayContent(java.lang.String name)
Description copied from interface:FrameBean
Returns false if an iFrame component needs not to be rendered in an iFrame request.- Specified by:
shouldDisplayContent
in 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:AbstractPersistableAppComponent
Proceses the save/restore state opperation of the AppComponent- Parameters:
serializer
- an instance of theFlatStateSerializer
object to usehowMuchState
- defines how much information needs to be savedtokenizer
- an instance of theFlatStateTokenizer
object to use
-
collectData
public void collectData() throws WebBeanException
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 error- Specified by:
collectData
in interfaceWebComponent
- Overrides:
collectData
in classAbstractAppComponent
- Throws:
WebBeanException
- thrown if there is any exception
-
getFeaturesManager
public WebFeatures getFeaturesManager()
Description copied from class:AbstractAppComponent
Return the WebFeatures implementation associated with this WebComponent- Specified by:
getFeaturesManager
in interfaceWebComponent
- Overrides:
getFeaturesManager
in classAbstractAppComponent
- Returns:
- a WebFeatures instance
-
isReportToolbarEnabled
public boolean isReportToolbarEnabled()
Description copied from interface:ReportFrameBean
Returns true if the report toolbar should be enabled- Specified by:
isReportToolbarEnabled
in interfaceReportFrameBean
- Returns:
- isReportToolbarEnabled
-
openElement
public void openElement(FrameElement element)
Mark as opened the corresponding ReportFrameElement- Specified by:
openElement
in 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:
closeElement
in 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.WebBrowserSettingObjBrowserView
browser setting - The page-by depends on the
EnumWebBrowserSettings.WebBrowserSettingPageBySection
browser setting - The grid and graph toolbar depends on a browser setting whose name is
this ReportFrameBean name + "_" +
EnumWebBrowserSettings.WebBrowserSettingFormatToolbar
i.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:
isOpen
in interfaceFrameBean
- Parameters:
element
-FrameElement
instance 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:
doCollectData
in classAbstractAppComponent
- Since:
- MicroStrategy Web 8.0.0
-
addChildStateInfo
public void addChildStateInfo(ParameterBuilder paramBldr, int howMuchState)
Adds children state information into an existingParameterBuilder
instance. It is up to the suppliedParameterBuilder
to 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:
addChildStateInfo
in interfaceWebComponent
- Overrides:
addChildStateInfo
in classAbstractPersistableAppComponent
- Parameters:
paramBldr
- TheParameterBuilder
instance which has child state information added to it.howMuchState
- How much persistable state ofEnumWebPersistableState
to return from its children.- Since:
- MicroStrategy Web 8.0.0
-
addChildStateInfo
public void addChildStateInfo(ParameterBuilder paramBldr)
Description copied from interface:WebComponent
Adds children state information into an existingParameterBuilder
instance. It is up to the suppliedParameterBuilder
to determine how this information is serialized. EachWebComponent
the hierarchy serializes its state according to its ownWebComponent.getDefaultStateLevel()
.- Specified by:
addChildStateInfo
in interfaceWebComponent
- Overrides:
addChildStateInfo
in classAbstractAppComponent
- Parameters:
paramBldr
- TheParameterBuilder
instance which has child state information added to it.- Since:
- MicroStrategy Web 9.0.0
-
getReportStyleLocalizedName
public java.lang.String getReportStyleLocalizedName()
- Specified by:
getReportStyleLocalizedName
in 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:
getXMLStatus
in interfaceWebComponent
- Overrides:
getXMLStatus
in classAbstractAppComponent
- Returns:
- the
EnumRequestStatus
of the component.
-
setXMLStatus
public void setXMLStatus(int value)
Sets the EnumRequestStatus status of the bean.- Specified by:
setXMLStatus
in interfaceReportFrameBean
- Parameters:
value
- The XML status value ofor this bean.
-
getObjectBrowserBean
public ObjectBrowserBean getObjectBrowserBean()
Deprecated.This method should no longer be used. UsegetObjectBrowserTabMgrBean
instead.Returns the ObjectBrowser bean associated with this report frame bean.- Specified by:
getObjectBrowserBean
in interfaceReportFrameBean
- Returns:
- the DynamicMenu bean associated with this report frame bean
-
getDerivedElementsEditor
public DerivedElementsEditorBean getDerivedElementsEditor()
- Specified by:
getDerivedElementsEditor
in 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:
getObjectBrowserTabMgrBean
in interfaceReportFrameBean
- Returns:
- TabManagerBean
- Since:
- MicroStrategy Web 8.0.0
-
getVisualizationPropertiesEditorBean
public VisualizationPropertiesEditorBean getVisualizationPropertiesEditorBean()
-
getPageByBean
public PageByBean getPageByBean()
Description copied from interface:ReportFrameBean
Returns the PageBy editor bean.- Specified by:
getPageByBean
in interfaceReportFrameBean
- Returns:
PageByBean
instance 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:
setReportEditorName
in 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:
getReportEditorName
in interfaceReportFrameBean
- Returns:
- The name of the current open report editor
- Since:
- MicroStrategy Web 8.0.0
-
getReportFilterElement
public FilterElementBean getReportFilterElement()
Description copied from interface:ReportFrameBean
Returns aFilterElementBean
object corresponding to the report filter.- Specified by:
getReportFilterElement
in interfaceReportFrameBean
- Returns:
- A
FilterElementBean
corresponding to the report filter. - Since:
- MicroStrategy Web 8.0.0
-
getReportLimitElement
public FilterElementBean getReportLimitElement()
- Specified by:
getReportLimitElement
in interfaceReportFrameBean
- Since:
- MicroStrategy Web 8.0.2
-
getViewFilterElement
public FilterElementBean getViewFilterElement()
Description copied from interface:ReportFrameBean
Returns aFilterElementBean
object corresponding to the view filter.- Specified by:
getViewFilterElement
in interfaceReportFrameBean
- Returns:
- A
FilterElementBean
corresponding to the view filter. - Since:
- MicroStrategy Web 8.0.0
-
getViewLimitElement
public FilterElementBean getViewLimitElement()
- Specified by:
getViewLimitElement
in interfaceReportFrameBean
- Since:
- MicroStrategy Web 9.0.0
-
getFilterElement
public FilterElementBean getFilterElement(int type)
- Specified by:
getFilterElement
in 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:
getChild
in interfaceWebComponent
- Overrides:
getChild
in classAbstractWebComponent
- Parameters:
key
- String value with the name to look for- Returns:
WebComponent
instance corresponding to the key- Since:
- MicroStrategy Web 8.0.0
-
getPromptDetailsBean
public PromptDetailsBean getPromptDetailsBean()
Description copied from interface:ReportFrameBean
Returns aPromptDetailsBean
object corresponding to the prompt details.- Specified by:
getPromptDetailsBean
in interfaceReportFrameBean
- Returns:
- A
PromptDetailsBean
corresponding to the prompt details. - Since:
- MicroStrategy Web 8.0.1
- See Also:
ReportFrameBean.getPromptDetailsBean()
-
getReportDetailsBean
public ReportDetailsBean getReportDetailsBean()
Description copied from interface:ReportFrameBean
Returns aReportDetailsBean
object corresponding to the report details.- Specified by:
getReportDetailsBean
in interfaceReportFrameBean
- Returns:
- A
ReportDetailsBean
corresponding to the report details. - Since:
- MicroStrategy Web 9.0.0
-
getPromptsContainerBean
public PromptsContainerBean getPromptsContainerBean()
Description copied from interface:ReportFrameBean
Returns aPromptsContainerBean
object corresponding to the prompts container.- Specified by:
getPromptsContainerBean
in interfaceReportFrameBean
- Returns:
- A
PromptsContainerBean
corresponding 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:ReportFrameBean
Sets a flag indicating whether to refresh the grid or not. This flag is only read when attribute forms editor is opened.- Specified by:
setRefreshGrid
in interfaceReportFrameBean
- Since:
- MicroStrategy Web 8.1.1
-
getRefreshGrid
public boolean getRefreshGrid()
Description copied from interface:ReportFrameBean
Retrieves the flag indicating whether to refresh the grid or not. This flag is only read when attribute forms editor is opened.- Specified by:
getRefreshGrid
in interfaceReportFrameBean
- Since:
- MicroStrategy Web 8.1.1
-
newDefaultEventHandler
protected WebEventHandler newDefaultEventHandler()
- Overrides:
newDefaultEventHandler
in classAbstractWebComponent
- Since:
- MicroStrategy Web 9.0.0
-
addChild
public void addChild(java.lang.String key, WebComponent child)
Description copied from class:AbstractWebComponent
Adds a child component to the currentWebComponent
. This call invalidates the cached states.- Specified by:
addChild
in interfaceWebComponent
- Overrides:
addChild
in 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:AbstractWebComponent
Returns the default state level. If not set, the default state level isEnumWebPersistableState.MINIMAL_STATE_INFO
.- Specified by:
getDefaultStateLevel
in interfaceWebComponent
- Overrides:
getDefaultStateLevel
in classAbstractWebComponent
- Returns:
- the defautl state level.
- Since:
- MicroStrategy Web 9.0.0
-
setNoActionFlagRemoved
public void setNoActionFlagRemoved(boolean noActionFlagRemoved)
Description copied from interface:ReportFrameBean
Set 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:
setNoActionFlagRemoved
in 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:
isNoActionFlagRemoved
in 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:FrameBean
Defines if the ReportFrame should use IFrame- Specified by:
setUseIFrame
in interfaceFrameBean
- Parameters:
value
- if true, the ReportFrame will use IFrames
-
getUseIFrame
public boolean getUseIFrame()
Description copied from interface:FrameBean
Returns if the ReportFrame uses IFrames- Specified by:
getUseIFrame
in interfaceFrameBean
- Returns:
- true if frames are used.
-
isIFrameRequest
protected boolean isIFrameRequest()
Description copied from class:AbstractAppComponent
Utility method that determines if it's an IFrame type of request.- Overrides:
isIFrameRequest
in classAbstractAppComponent
- Returns:
boolean
value indicating if the request is of type IFrame or not. By default it is based only on information available on theRequestKeys
associated 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:
setEditorMessage
in 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:
getEditorMessage
in 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:
AttributeFormsEditorBean
instance 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:
DrillFilterEditorBean
instance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSortEditorBean
public SortEditorBean getSortEditorBean()
- Returns:
SortEditorBean
instance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getResizeEditorBean
public ResizeEditorBean getResizeEditorBean()
- Returns:
ResizeEditorBean
instance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSchedulesEditorBean
public SubscriptionEditorBean getSchedulesEditorBean()
- Returns:
SubscriptionEditorBean
instance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSubscriptionsEditorBean
public SubscriptionEditorBean getSubscriptionsEditorBean()
- Returns:
SubscriptionEditorBean
instance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getSendNowEditorBean
public SubscriptionEditorBean getSendNowEditorBean()
- Returns:
SubscriptionEditorBean
instance associated with this bean- Since:
- MicroStrategy Web 8.0.0
-
getMenus
public Menu getMenus()
Description copied from interface:FrameBean
Returns 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:
setDynamicMenuName
in interfaceFrameBean
- Parameters:
dynamicMenuName
-String
with 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:FrameBean
Name of the Shortcut object to use as Dynamic Menu- Specified by:
getDynamicMenuName
in 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:
setMessageBeforeData
in interfaceFrameBean
- Parameters:
message
- String
-
getMessageBeforeData
public java.lang.String getMessageBeforeData()
Deprecated.- Specified by:
getMessageBeforeData
in interfaceFrameBean
- Returns:
- editor message
-
hasChanged
public boolean hasChanged()
Description copied from class:AbstractWebComponent
Verifies the state of the component has changed- Specified by:
hasChanged
in interfaceWebComponent
- Overrides:
hasChanged
in classAbstractAppComponent
- Returns:
boolean
value 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
-String
with 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:
setPromptStyle
in interfaceFrameBean
- Parameters:
style
- String- Since:
- MicroStrategy Web 7.5.1
-
getPromptStyle
public java.lang.String getPromptStyle()
Indicates actual prompt style used.- Specified by:
getPromptStyle
in interfaceFrameBean
- Returns:
- String name of prompt style.
- Since:
- MicroStrategy Web 7.5.1
-
searchChildByClass
protected WebComponent searchChildByClass(java.lang.Class beanClass)
-
-