Package com.microstrategy.web.beans
Interface Transformable
-
- All Known Subinterfaces:
AddressListBean,AdminBean,AdminTabBean,AlertsEditorBean,AllObjectBrowserBean,AnnotationBean,AppComponent,AppSchemaBean,AssociatedSchedulesBean,AttributeBean,AttributeFormsEditorBean,AttributeFormsQualificationBean,ChangePasswordBean,ColorGradientEditorBean,ColorPickerEditorBean,ConfirmOverwriteDialogBean,ConstantPromptBean,ContactsBrowserBean,ControlToolbarBean,CustomGroupBean,DataExplorerBean,DatasetObjectExplorerBean,DerivedElementBean,DerivedElementFormatEditorBean,DerivedElementsBrowserBean,DerivedElementsConvertDialogBean,DerivedElementsEditorBean,DiagnosticsBean,DimtyPromptBean,DirectExportBean,DocumentBean,DocumentFrameBean,DocumentFrameElement,DrillEditorBean,DrillFilterEditorBean,EditableObjectAppBean,EditableObjectBean,ElementPickerBean,ElementPromptBean,ExportBean,ExportOptionsEditorBean,ExpressionBean,ExpressionDisplayBean,ExpressionObject,ExpressionPromptBean,FilterAppBean,FilterBean,FilterDetailsFormattingEditorBean,FilterEditorBean,FilterElementBean,FilterFrameBean,FlashTabBean,FolderBean,FolderFrameBean,FolderObjectExplorerBean,FormatColorLinesTabBean,FormatNumberTabBean,FormatTabBean,FormatTabManagerBean,FormatToolbarBean,FormulaBarBean,FrameBean,FrameElement,FunctionEditorBean,GraphBean,GraphColorGradientEditorBean,GraphFormatEditorBean,GraphFormatToolbarBean,GraphTitleTabBean,GridAutoStylesBean,GridColorGradientEditorBean,GridFormatBean,GridFormatEditorBean,GridFormatToolbarBean,GroupbyPropertiesEditorBean,GroupPathBean,ImportDerivedElementsBean,ImportWizardBean,InboxBean,LimitExpressionBean,LoginBean,LogoutBean,MetricQualLevelEditorBean,ObjectBean,ObjectBrowserBean,ObjectBrowserManagerBean,ObjectBrowserTabBean,ObjectExplorerBean,ObjectManipulationDialogBean,ObjectPromptBean,ObjectSelectionBean,OMDCreateFolderBean,OptionsBean,PageByBean,PageComponent,PageSetupHTMLEditorBean,PathBean,PDFBean,PerformanceMonitorBean,PreferencesBean,PrintBean,ProjectBrowser,ProjectsBean,ProjectStatusBean,PromptAnswerBean,PromptAppBean,PromptBean,PromptConstantAppBean,PromptDefinitionAppBean,PromptDefinitionBean,PromptDetailsBean,PromptDimtyAppBean,PromptElementsAppBean,PromptExpressionAppBean,PromptHierarchyAppBean,PromptObject,PromptObjectAppBean,PromptsBean,PromptsContainerBean,PromptsContainerFrameBean,ReportBean,ReportDetailsBean,ReportFrameBean,ReportFrameElement,ReportObjectsTabBean,ReportWorkingSetBrowserTabBean,ResizeEditorBean,ResultSetBean,ResultSetFrameBean,RibbonBean,RWActionControlEditorBean,RWBean,RWDColorGradientEditorBean,RWFrameBean,RWGraphDropZonesEditorBean,RWProjectBrowserTabBean,RWViewBean,RWViewExpressionBean,RWWorkingSetBrowserTabBean,SaveAsBean,SaveObjectAsDialogBean,ScheduleBean,SearchBean,SecondaryDataSourcesEditorBean,SecurityFilterBean,SecurityFilterFrameBean,SecurityRoleBean,SecurityRoleUserEntitiesSelectorBean,SortEditorBean,SubscriptionBean,SubscriptionContactsBrowserBean,SubscriptionEditorBean,SubscriptionFolderBean,SubscriptionFrameBean,SubsetUnitLimitBean,SubsetUnitLimitElementBean,SubtotalsEditorBean,TabBean,TabManagerBean,TemplateElementsBean,TemplateFilterExecBean,ThresholdEditorBean,ThresholdExpressionBean,ToolbarBean,ToolbarSetBean,UserBean,UserContactsBrowserBean,UserEntitiesBean,UserEntitiesBrowserBean,UserEntitiesSelectorBean,UserEntityBean,UserGroupBean,UserSearchBean,ViewBean,ViewBeanParserBean,ViewFilterElementPanelBean,VisualizationPropertiesEditorBean,VisualizationsEditorBean,WebBean,WebHyperLinkEditorBean,WizardBean,WizardStepBean,XDADataExplorerBean
- All Known Implementing Classes:
AbstractAppComponent,AbstractColorGradientEditorBeanImpl,AbstractFrameEditorBean,AbstractLimitExpressionBean,AbstractObjectBrowserTabBean,AbstractObjectExplorerBean,AbstractPersistableAppComponent,AbstractPersistableFrameElement,AbstractTemplateElementsBean,AbstractTransformable,AbstractViewBeanParserBean,AbstractWebComponent,AccordionTabManagerBeanImpl,AllObjectBrowserBeanImpl,AssociatedSchedulesBeanImpl,AttributeFormsQualificationBeanImpl,ColorGradientEditorBeanImpl,ControlToolbarBeanImpl,CreditsBean,CSRFConfirmationPageComponentImpl,DatasetObjectExplorerBeanImpl,DerivedElementBeanImpl,DerivedElementsBrowserBeanImpl,DesktopPageComponentImpl,DocumentPageComponentImpl,DrillEditorBeanImpl,EditPromptPageComponentImpl,ElementPickerBeanImpl,FilterDetailsFormattingEditorBeanImpl,FolderObjectExplorerBeanImpl,FolderPageComponentImpl,GraphColorGradientEditorBeanImpl,GraphTitleTabBeanImpl,GridColorGradientEditorBeanImpl,HistoryListPageComponentImpl,IOSSmartBannerBeanImpl,MySubscriptionsPageComponentImpl,NewWindowPageComponentImpl,OptimizedTabBeanImpl,OptionsBeanImpl,PageSetupHTMLEditorBeanImpl,PageSubscriptionsEdit,PathBeanImpl,PreferencesBeanImpl,PreferenceSettingPageComponentImpl,PreferencesPageComponentImpl,ProjectBrowserBeanImpl,PromptDetailsBeanImpl,ReportDetailsBeanImpl,ReportFrameBeanImpl,ReportPageComponentImpl,ResultSetPageComponentImpl,RibbonBeanImpl,RWDColorGradientEditorBeanImpl,RWGraphDropZonesEditorBeanImpl,RWOIVMPageComponent,RWPageComponentImpl,RWPromptsPageComponent,RWSaveAsPageComponentImpl,SearchPageComponentImpl,SecondaryDataSourcesEditorBeanImpl,SecurityRoleUserEntitiesSelectorBeanImpl,ServletWebComponent,SharingConfirmationPageComponentImpl,SimplePageComponentImpl,ThresholdExpressionBeanImpl,ViewFilterElementPanelBeanImpl,VisualizationPropertiesEditorBeanImpl,VisualizationsEditorBeanImpl,XDADataExplorerBeanImpl
public interface TransformableThis interface represents objects that supportTransformfunctionality.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransformInstanceaddTransform(Transform transform)Adds aTransformobject into the collection of transforms.TransformInstanceaddTransformByClass(java.lang.String transformClass)Adds into the collection of transforms aTransformobject with the specified fully qualified class name.TransformInstanceaddTransformByStyle(java.lang.String styleName)Adds into the collection of transforms aTransformobject with the specified style name.TransformInstanceaddTransformByStyle(java.lang.String styleName, StyleRequestContext context)Adds into the collection of transforms aTransformobject with the specified style name.voidclearTransforms()Deletes all transforms added to the objectBeanContextgetBeanContext()Returns theBeanContextinstance.java.lang.StringgetMessageString(java.lang.String key)Returns the string descriptor from aMessagesinstance, which is in turn retrieved from theBeanContextif any.java.util.EnumerationgetMyTransformInstances()TransformInstancegetTransformInstance()Returns the defaultTransformInstanceobjectTransformInstancegetTransformInstance(java.lang.String key)Returns theTransformInstanceobject with the specified key.java.util.EnumerationgetTransformInstances()Retuns ajava.util.Enumerationover all theTransformInstanceobjects.intgetType()Returns the transformable type as inEnumWebTransformableType.booleanhasTransform()Returns a boolean value indicating whether there is a defaultTransformInstanceobject.booleanhasTransform(java.lang.String key)Returns a boolean value indicating whether there is such aTransformInstanceobject with the specified key.voidinvalidateTransformCache()This method is called by any transformable object after collecting datavoidsetBeanContext(BeanContext beanContext)Sets an instance ofBeanContexton the current Transformable object.MarkupOutputtransform()Performs transform on a component by the defaultTransformInstanceobject.MarkupOutputtransform(java.lang.String key)Performs transform on a component by theTransformInstancewith the specified key.
-
-
-
Method Detail
-
getType
int getType()
Returns the transformable type as inEnumWebTransformableType.- Returns:
- the transformable type.
-
addTransform
TransformInstance addTransform(Transform transform)
Adds aTransformobject into the collection of transforms. The first transform added is automatically set to be the default transform. Any transform added has a key of value null.The collection of
TransformInstanceis a synchronized collection.- Parameters:
transform- aTransformto add- Returns:
- a TransformInstance holding the transform added.
-
addTransformByClass
TransformInstance addTransformByClass(java.lang.String transformClass) throws WebTransformException
Adds into the collection of transforms aTransformobject with the specified fully qualified class name. The first transform added is automatically set to be the default transform. Any transform added has a key of value null.The collection of
TransformInstanceis a synchronized collection.- Parameters:
transformClass- the fully qualified class name of theTransformobject to be added.- Returns:
- a TransformInstance holding the transform added.
- Throws:
WebTransformException- thrown if the specified transform can not be found or instantiated.
-
addTransformByStyle
TransformInstance addTransformByStyle(java.lang.String styleName) throws WebTransformException
Adds into the collection of transforms aTransformobject with the specified style name. The first transform added is automatically set to be the default transform. Any transform added has a key of value null.The collection of
TransformInstanceis a synchronized collection.- Parameters:
styleName- the style name in a style catalog.- Returns:
- a TransformInstance holding the transform added.
- Throws:
WebTransformException- thrown if the specified transform can not be instantiated.
-
hasTransform
boolean hasTransform()
Returns a boolean value indicating whether there is a defaultTransformInstanceobject.- Returns:
- true if there is a default transform.
-
hasTransform
boolean hasTransform(java.lang.String key)
Returns a boolean value indicating whether there is such aTransformInstanceobject with the specified key.- Parameters:
key- the key of aTransform- Returns:
- true if there is such a
TransformInstancewith the specified key.
-
getTransformInstance
TransformInstance getTransformInstance()
Returns the defaultTransformInstanceobject- Returns:
- the default
TransformInstanceobject; null if there is no defaultTransformInstanceobject.
-
getTransformInstance
TransformInstance getTransformInstance(java.lang.String key) throws KeyDoesNotExistException
Returns theTransformInstanceobject with the specified key.- Parameters:
key- the key of aTransformInstance.- Returns:
- the
TransformInstanceobject with the specified key. - Throws:
KeyDoesNotExistException- thrown if the key is not found.
-
transform
MarkupOutput transform() throws TransformDoesNotExistException
Performs transform on a component by the defaultTransformInstanceobject. This method is synchronized on theTransformInstanceobject.- Returns:
- a
MarkupOutputobject containing the result of transform. - Throws:
TransformDoesNotExistException- thrown if there is no defaultTransformInstanceor the transform can not be performed.
-
transform
MarkupOutput transform(java.lang.String key) throws KeyDoesNotExistException, TransformDoesNotExistException
Performs transform on a component by theTransformInstancewith the specified key. This method is synchronized on theTransformInstanceobject.- Parameters:
key- the key of aTransformInstanceobject.- Returns:
- a
MarkupOutputobject containing the result of transform. - Throws:
TransformDoesNotExistException- thrown if there is no such aTransformInstanceor the transform can not be performed.KeyDoesNotExistException- thrown if the key is not found.
-
getTransformInstances
java.util.Enumeration getTransformInstances()
Retuns ajava.util.Enumerationover all theTransformInstanceobjects.- Returns:
- a
java.util.Enumerationover all theTransformInstanceobjects.
-
getBeanContext
BeanContext getBeanContext()
Returns theBeanContextinstance.- Returns:
- the
BeanContextinstance.
-
setBeanContext
void setBeanContext(BeanContext beanContext)
Sets an instance ofBeanContexton the current Transformable object.- Parameters:
beanContext- aBeanContextobject.
-
getMessageString
java.lang.String getMessageString(java.lang.String key)
Returns the string descriptor from aMessagesinstance, which is in turn retrieved from theBeanContextif any. The string descriptor is mapped by the specified key. A String of value "ERROR" is returned if there is no such a string descriptor.- Parameters:
key- the key mapped to a string descriptor in a Messages- Returns:
- the string descriptor from a
Messages.
-
invalidateTransformCache
void invalidateTransformCache()
This method is called by any transformable object after collecting data- Since:
- MicroStrategy Web 8.0.0
-
clearTransforms
void clearTransforms()
Deletes all transforms added to the object- Since:
- MicroStrategy Web 8.0.0
-
addTransformByStyle
TransformInstance addTransformByStyle(java.lang.String styleName, StyleRequestContext context) throws WebTransformException
Adds into the collection of transforms aTransformobject with the specified style name. The first transform added is automatically set to be the default transform. Any transform added has a key of value null.The collection of
TransformInstanceis a synchronized collection.- Parameters:
styleName- the style name in a style catalog.context- theStyleRequestContextobject.- Returns:
- a TransformInstance holding the transform added.
- Throws:
WebTransformException- thrown if the specified transform can not be instantiated.- Since:
- MicroStrategy Web 8.0.1
-
getMyTransformInstances
java.util.Enumeration getMyTransformInstances()
- Since:
- MicroStrategy Web 9.0.0
-
-