| java.lang.Object | ||||||
| ↳ | com.microstrategy.web.transform.AbstractTransform | |||||
| ↳ | com.microstrategy.web.transform.AbstractLayoutTransform | |||||
| ↳ | com.microstrategy.web.app.transforms.AbstractAppTransform | |||||
| ↳ | com.microstrategy.web.app.transforms.AbstractPreferencesTransform | |||||
| ↳ | com.microstrategy.web.app.transforms.PreferencesGenericTransform | |||||
| ↳ | com.microstrategy.web.app.transforms.AbstractOptionsTransform | |||||
Known Direct Subclasses
|
Known Indirect Subclasses
|
This abstract class is the base for print/pdf/export options Transforms.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ACTION_TYPE_EXPORT | ||||||||||
| String | ACTION_TYPE_PDF | ||||||||||
| String | ACTION_TYPE_PRINT | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.PreferencesGenericTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractPreferencesTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected ReportPreferencePropertyListMapper | mapper | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.AbstractPreferencesTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
AbstractOptionsTransform()
Default empty constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String |
getDescription()
Returns the textual description of the transform
| ||||||||||
| Class |
getSupportedBeanType()
Returns the supported bean type.
| ||||||||||
| String | getTitle() | ||||||||||
| WebEvent |
getValidatePreferencesEvent()
Returns the event used to validate preferences before exporting.
| ||||||||||
| void |
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform, such as width and height. | ||||||||||
| boolean |
isGraphOptions()
Determines if the editor is being used to display grid options.
| ||||||||||
| boolean |
isGridGraphOptions()
Determines if the editor is being used to display grid/graph options.
| ||||||||||
| boolean |
isGridOptions()
Determines if the editor is being used to display grid options.
| ||||||||||
| boolean |
isReportPageByNotEmpty()
Determin whether the page-by in the report is empty
| ||||||||||
| boolean |
isShowingOptions()
This method is used to determine whether the transform is being used to display
user preferences or report export options
| ||||||||||
| void |
renderHeaderAndFooterButton(MarkupOutput out, String groupName)
Renders link to edit custom header and footer.
| ||||||||||
| void |
renderSaveMessage(MarkupOutput out)
If a preference was updated and there were no errors, this method shows a success message to the user.
| ||||||||||
| void |
transformForRequestInError(MarkupOutput out)
Generates the graphical output for the PreferencesBean when the bean is
in Error.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | getActionType() | ||||||||||
| String |
getExportEventID()
Returns the ID of the export event used when this transform is used for the Options Page (examples are Export, PDF and Print)
This will be used to pass as the "eventToForwardTo" on the Save Report Properties page.
| ||||||||||
| OptionsBean |
getOptionsBean()
Returns the current OptionsBean
| ||||||||||
| String |
getPreference(String name)
Overwrites implementation to check for report properties if set.
| ||||||||||
| WebEvent | getSaveReportPropertiesEvent() | ||||||||||
| int | getSaveReportPropertiesEventID() | ||||||||||
| void | renderCustomHeaderFooterButton(MarkupOutput out, WebEvent evt) | ||||||||||
| void |
renderOutlineModeHiddenInput(MarkupOutput out)
Render the Hidden Inputs for the Outline Mode to be passed to the PDF.
| ||||||||||
| void |
renderPreferenceBodyText(MarkupOutput out, String preferenceName, String text, String tagID)
Renders the text of a Preference.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.web.app.transforms.PreferencesGenericTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractPreferencesTransform
| |||||||||||
From class
com.microstrategy.web.app.transforms.AbstractAppTransform
| |||||||||||
From class
com.microstrategy.web.transform.AbstractLayoutTransform
| |||||||||||
From class
com.microstrategy.web.transform.AbstractTransform
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.web.app.transforms.AppTransform
| |||||||||||
From interface
com.microstrategy.web.transform.LayoutTransform
| |||||||||||
From interface
com.microstrategy.web.transform.Transform
| |||||||||||
Default empty constructor. Initialize formal parameters.
Returns the textual description of the transform
Returns the supported bean type. This abstract Transform supports all WebComponents
so every sub-class should override this method to return the class of the Bean
the Transform is expecting, for example:
public class CustomReportClass extends AbstractAppTransform {
public Class getSupportedBeanType() {
//This Transform is expected to work only with a ReportBean,
//therefore this method needs to return this class:
return ReportBean.class;
}
}
Returns the event used to validate preferences before exporting.
This method initialize the private and protected fields of the transform, such as
width and height.
It also invokes the initializeWebComponent, initializeImages
and initializeCss methods.
transform method. Transforms which
would like to invoke other methods in this instance directly (for example, to invoke
some render methods), need first to call this method to
guarantee that the Transform is ready to generate output.| data | the bean to transform. |
|---|
Determines if the editor is being used to display grid options.
true if the options bean is being used to display grid optionsDetermines if the editor is being used to display grid/graph options.
true if the options bean is being used to display grid optionsDetermines if the editor is being used to display grid options.
true if the options bean is being used to display grid optionsDetermin whether the page-by in the report is empty
true if the transform is displaying print options and there are template
units in the page-by.This method is used to determine whether the transform is being used to display user preferences or report export options
true if used to display exporting/printing options.Renders link to edit custom header and footer.
| out | the output object |
|---|
If a preference was updated and there were no errors, this method shows a success message to the user.
| out | where to write the output of the method. |
|---|
Generates the graphical output for the PreferencesBean when the bean is
in Error. It will call the parent method if it is not invoked from the options page or
if has an error object which is not null or if it ha no preference validation errors.
If there are preference validation errors from the options page then it will render and
error message and make a call to transformForRequestWaitingForUserInput so the user
might change Preferences again and get a chance to correct them.
| out | where to create the output |
|---|
ACTION_TYPE_PDF, ACTION_TYPE_PRINT or ACTION_TYPE_EXPORT)Returns the ID of the export event used when this transform is used for the Options Page (examples are Export, PDF and Print) This will be used to pass as the "eventToForwardTo" on the Save Report Properties page.
Overwrites implementation to check for report properties if set.
| name | name of the preference |
|---|
Render the Hidden Inputs for the Outline Mode to be passed to the PDF.
| out | where to write the output of the method. |
|---|
Renders the text of a Preference. This method associate the text label to its corresponding radiobox or checkbox.
| out | where to create the output |
|---|---|
| preferenceName | the preference name |
| text | the title to display |
| tagID | the element ID with which this text is associated |