Class FolderCreateReportXHTMLTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
-
- com.microstrategy.web.app.transforms.AbstractFolderTransform
-
- com.microstrategy.web.app.transforms.FolderIconRadioButtonTransform
-
- com.microstrategy.web.app.transforms.FolderCreateReportXHTMLTransform
-
- All Implemented Interfaces:
AppTransform
,LayoutTransform
,Transform
- Direct Known Subclasses:
FolderCreateDocumentTransform
,FolderSummaryCreateReportTransform
public class FolderCreateReportXHTMLTransform extends FolderIconRadioButtonTransform
This class extends theFolderIconRadioButtonTransform
by specializing in showing the new Reports folder content. It has two sections, showing the blank report on top, and on the bottom the rest of the items on the folder.
The output of this Transform generates well-formed XHTML, and it's designed to use external css files for all formatting.- Since:
- MicroStrategy Web 8.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
AbstractFolderTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected WebObjectInfo
_blankObject
protected java.lang.String
_blankObjectDesc
Property for holding a description for the blank objectprotected java.lang.String
_blankObjectHeaderDesc
Property for holding a header description for the blank objectprotected WebObjectInfo
_blankViewReport
protected java.lang.String
_templateHeaderDesc
Property for holding a header description for the templates to show with this transformFormalParameter
blankObjectId
Indicates the object ID of the Blank Report.FormalParameter
blankViewReportId
Indicates the object ID of the View Blank Report.FormalParameter
blankXdaObjectId
Indicates the object ID of the Blank XDA Report.FormalParameter
displaySection
Specifies which sections are to be displayed in the Create Report page (Create Report, Other Reports).static java.lang.String
FP_BLANK_REPORT_ID
Constant specifying the name of the formal parameter for defining the ID of the blank report.static java.lang.String
FP_BLANK_VIEW_REPORT_ID
Constant specifying the name of the formal parameter for defining the ID of the blank report.static java.lang.String
FP_BLANK_XDA_REPORT_ID
FormalParameter
promptCreateStyle
Specifies the name of prompt style to use for transforming selected prompted template in Design Mode.FormalParameter
promptExecuteStyle
Specifies the name of prompt style to use for transforming selected prompted template in View Mode.FormalParameter
promptStyle
Specifies the name of prompt style to use for transforming selected prompted template in Create Repor page.FormalParameter
valueDesignModeCheck
Specifies value for checkbox indicating whether or not to run Report/RWD in Design mode.-
Fields inherited from class com.microstrategy.web.app.transforms.FolderIconRadioButtonTransform
FP_IMG_ANCHOR_JS_FLAG, FP_LABEL_ANCHOR_JS_FLAG, FP_RENDER_FORM_TAG, imgAnchorJS, labelAnchorJS, renderFormTag
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
_bandingIndex, _imgHeight, _imgWidth, _sortedChildUnits, datamartImage, documentImage, execTarget, filterImage, folderImage, FP_CREATE_REPORT_DISPLAY_SECTION, FP_DATAMART_IMAGE, FP_DOCUMENT_IMAGE, FP_EXEC_TARGET, FP_FILTER_IMAGE, FP_FOLDER_IMAGE, FP_GRAPH_IMAGE, FP_GRID_GRAPH_IMAGE, FP_IMAGE_HEIGTH, FP_IMAGE_WIDTH, FP_LEVEL_FLAG, FP_MAX_OBJECT_TYPE_COUNT, FP_REPORT_IMAGE, FP_RW_DOCUMENT_IMAGE, FP_SORT_ASCENDING, FP_SORT_FIELD, FP_TABLE_ID, FP_TEMPLATE_IMAGE, graphImage, gridGraphImage, imageHeight, imageWidth, LEVEL_ALL, LEVEL_CONFIRM_DELETE, LEVEL_DELETE, LEVEL_DESCRIPTION, LEVEL_DISPLAY_HEADERS, LEVEL_EDIT, LEVEL_EMPTY_FOLDER_MESSAGE, LEVEL_EXPORT_EXCEL, LEVEL_EXPORT_PDF, LEVEL_FOLDER_INFORMATION, LEVEL_INCREMENTAL_FETCH, LEVEL_LOCATION, LEVEL_MODIFIED, LEVEL_NAME, LEVEL_OWNER, LEVEL_SEND_NOW, LEVEL_SUBSCRIPTION, levelFlag, maxObjectTypeCount, reportImage, rwDocumentImage, sortAscending, sortField, tableId, templateImage
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
FP_INCREMENTAL_FETCH_NAV_TYPE, FP_INCREMENTAL_FETCH_PAGE_BLOCK, imgBlank, incrementalFetchNavigationType, incrementalFetchPageBlock
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description FolderCreateReportXHTMLTransform()
Default no-argument constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Tag
generateRadioButtonForObject(WebEvent openEvent, WebObjectInfo object, boolean selected)
Overwrites the parent method by assigning JavaScript code to theonclick
event of the input tag if the user is on DHTML mode.protected java.lang.String
getArgumentName(WebEvent event, int argumentID)
For the given event, returns the name of the argument with the given ID.java.lang.String
getCssName(WebObjectInfo object)
Overwrites the parent method by providing a special css style to the blank object.java.lang.String
getObjectDescription(WebObjectInfo object)
Overwrites the parent method by supplying a default description for the blank object as indicated on theblankObjectId
formal parameterjava.lang.String
getObjectName(WebObjectInfo object)
Overwrites the parent method by supplying a default name for the blank object as indicated on theblankObjectId
formal parameterprotected WebEvent
getOpenObjectEvent()
Overwrites the original method for returning theEnumServletEvents.WebEventEditReport
event instead.boolean
hasCreateBlankObjectPrivileges()
Determines if the user has enough privileges for viewing the blank report option with this transformboolean
hasCreateReportPrivileges()
boolean
hasCreateViewReportPrivileges()
boolean
hasCreateXdaReportPrivileges()
void
initializeTransform(Transformable data)
Extends the parent method by searching for the blank report within the content of the folder, as specified on theblankObjectId
formal parameter.protected boolean
isDesignModeOptionChecked()
Indicates whether or not Design mode checkbox is checked.boolean
isEmptyList()
Returnstrue
if the list of elements from this folder available for display (AbstractFolderTransform.getSortedList()
) is empty or not.boolean
isEmptyList(WebDisplayUnits list)
Deprecated.please useisEmptyList()
instead, where the list to be analyzed is the one obtained fromAbstractFolderTransform.getSortedChildUnits()
.boolean
isObjectVisible(WebObjectInfo object)
Extends parent method by returning false if the object is the blank report.void
renderBlankObject(MarkupOutput out)
Renders the first part of the transform, that is the part where the user might pick a "blank" report to start working.void
renderButtonOptions(MarkupOutput out)
If the user has enough privileges, this method will display by default the option for allowing to run the selected report on design mode.protected void
renderDesignModeOption(MarkupOutput out, WebEvent createEvent, boolean designMode)
Render a check box giving the option to have the report selected run in design mode.void
renderIconInfo(MarkupOutput out, WebObjectInfo object)
Overwrites the parent method by rendering only the image of the object as an anchor if it's ofEnumDSSXMLObjectTypes.DssXmlTypeFolder
type.void
renderList(MarkupOutput out, WebDisplayUnits list)
Deprecated.This method will later on not be called from by default logic on the application, please overwrite theAbstractFolderTransform.renderList(MarkupOutput out)
method instead for customizations, the list of elements that the equivalent method for renderTemplateList will obtain the children to display from theAbstractFolderTransform.getSortedList()
output.void
renderNameInfo(MarkupOutput out, WebObjectInfo object)
Overwrites the parent method by rendering only the name of the object if it's ofEnumDSSXMLObjectTypes.DssXmlTypeFolder
type.void
renderTemplateList(MarkupOutput out)
Renders the list of templates in this folder.void
renderTemplateList(MarkupOutput out, WebDisplayUnits list)
Renders the list of templates in this folder.protected void
setBoneProperties(JsonGenerator boneProps)
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.-
Methods inherited from class com.microstrategy.web.app.transforms.FolderIconRadioButtonTransform
generateAnchor, getDescription, renderDescriptionInfo, renderFormInputInfo, renderItems, renderNextButton, renderObject, renderObjectDescription, renderObjectImage, renderObjectName, transformForRequestSuccessful, wereItemsRendered
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractFolderTransform
addScriptDependency, canCreateSubscription, canDelete, canEdit, canExecute, canExport, canExportToPDF, canSendNow, checkLevel, getBlockPosition, getBlockSize, getChildCount, getContext, getContextMenu, getContextMenuAttributes, getDeleteEvent, getDeleteEvent, getEditEvent, getEvent, getExportEvent, getExportEvent, getFeatures, getFlashExportEvent, getFolderBean, getFolderChildCount, getGoToArgument, getGoToEvent, getHtmlExportEvent, getImageName, getImageSrc, getListComparator, getMstrExportEvent, getOringalChildCount, getPDFExportEvent, getSendNowEvent, getSortedChildUnits, getSortedList, getSubscriptionsEvent, getSupportedBeanType, getViewMediaReportEvent, getViewMediaRWEvent, initializeCss, initializeImages, initializeSelectedItemsList, isFeatureAvailable, isFolderEmpty, isObjectRunableinPauseMode, isObjectSelected, isViewableReport, newContext, renderEmptyList, renderEmptyList, renderImage, renderJavaScript, renderList, renderObjectCount
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractObjectInfoListTransform
addCSSForObjectType, getDereferenceShortcuts, getImageTooltip, getIncrementalFetchComponent, getListItemAttributes, getNameWrapperTag, getObjectAbbreviation, getObjectModificationTime, getOwnerName, getPathTransform, getVisualizationMode, getVisualizationMode, isUserEnabled, isVisualizationObject, isVisualizationObject, renderAbbreviationInfo, renderAbbreviationInfo, renderDescriptionInfo, renderIncrementalFetch, renderIsUserEnabled, renderIsUserEnabled, renderLayeredIconInfo, renderLayeredIconInfo, renderLocationInfo, renderModifiedInfo, renderOwnerInfo
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getAttributesShellDiv, getBeanPath, getBoneId, getCancelEvent, getClientSideHelper, getContainerServices, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorMessage, getErrorTitle, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getID, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isIFrameDisplayMode, isIFrameEnabled, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestInError, transformForRequestNotInited, transformForRequestProcessing, transformForRequestWaitingForUserInput
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports, supports
-
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.transform.LayoutTransform
getLayoutDefinition, setLayoutDefinition
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, supports, supports, transform
-
-
-
-
Field Detail
-
blankObjectId
public FormalParameter blankObjectId
Indicates the object ID of the Blank Report.
If found, it will display it inside its own box while rendering the contents of the folder.
-
_blankObject
protected WebObjectInfo _blankObject
-
blankXdaObjectId
public FormalParameter blankXdaObjectId
Indicates the object ID of the Blank XDA Report.- Since:
- MicroStrategy Web 8.0.2
-
promptExecuteStyle
public FormalParameter promptExecuteStyle
Specifies the name of prompt style to use for transforming selected prompted template in View Mode.
This formal parameters will denote a text to be used as the name of the prompt style that tells to display 'Save' button in prompted report or Document.
-
promptCreateStyle
public FormalParameter promptCreateStyle
Specifies the name of prompt style to use for transforming selected prompted template in Design Mode.
This formal parameters will denote a text to be used as the name of the prompt style that tells to display 'Save' button in prompted report or Document.
-
displaySection
public FormalParameter displaySection
Specifies which sections are to be displayed in the Create Report page (Create Report, Other Reports).
This formal parameters will denote a number to be used as a flag for the two sections of this page.
-
valueDesignModeCheck
public FormalParameter valueDesignModeCheck
Specifies value for checkbox indicating whether or not to run Report/RWD in Design mode.
This formal parameter can take any of the following values:
- 0 - Unchecked
- 1 - Checked
Keep in mind that this FP will indicate whether or not to check this checkbox. However, there another rule which user must have WebFeatureWebModifyReportList feature enabled.
-
promptStyle
public FormalParameter promptStyle
Specifies the name of prompt style to use for transforming selected prompted template in Create Repor page.
This formal parameters will denote a text to be used as the name of the prompt style. This value will be passed as an event argument for EnumPageEvents.WebEventEditReport event which will be set in getOpenObjectEvent method.
that tells to display 'Save' button in prompted report or Document.
-
blankViewReportId
public FormalParameter blankViewReportId
Indicates the object ID of the View Blank Report.
If found, it will display it inside its own box while rendering the contents of the folder.- Since:
- MicroStrategy Web 9.0.0
-
_blankViewReport
protected WebObjectInfo _blankViewReport
- Since:
- MicroStrategy Web 9.0.0
-
FP_BLANK_REPORT_ID
public static final java.lang.String FP_BLANK_REPORT_ID
Constant specifying the name of the formal parameter for defining the ID of the blank report. Value is blankObjectId.- See Also:
- Constant Field Values
-
FP_BLANK_XDA_REPORT_ID
public static final java.lang.String FP_BLANK_XDA_REPORT_ID
- Since:
- MicroStrategy Web 8.0.2
- See Also:
- Constant Field Values
-
FP_BLANK_VIEW_REPORT_ID
public static final java.lang.String FP_BLANK_VIEW_REPORT_ID
Constant specifying the name of the formal parameter for defining the ID of the blank report. Value is blankObjectId.- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
_templateHeaderDesc
protected java.lang.String _templateHeaderDesc
Property for holding a header description for the templates to show with this transform
-
_blankObjectHeaderDesc
protected java.lang.String _blankObjectHeaderDesc
Property for holding a header description for the blank object
-
_blankObjectDesc
protected java.lang.String _blankObjectDesc
Property for holding a description for the blank object
-
-
Method Detail
-
initializeTransform
public void initializeTransform(Transformable data)
Extends the parent method by searching for the blank report within the content of the folder, as specified on theblankObjectId
formal parameter.- Specified by:
initializeTransform
in interfaceAppTransform
- Overrides:
initializeTransform
in classAbstractFolderTransform
- Parameters:
data
-Transformable
instance with the bean to be transformed.
-
hasCreateBlankObjectPrivileges
public boolean hasCreateBlankObjectPrivileges()
Determines if the user has enough privileges for viewing the blank report option with this transform- Returns:
- boolean value indicating if the blank object should be available to the user or not.
-
hasCreateXdaReportPrivileges
public boolean hasCreateXdaReportPrivileges()
- Returns:
- boolean value indicating if the XDA blank report should be available to the user.
- Since:
- MicroStrategy Web 8.0.2
-
hasCreateViewReportPrivileges
public boolean hasCreateViewReportPrivileges()
- Returns:
- boolean value indicating if the blank view report should be available to the user.
- Since:
- MicroStrategy Web 9.0.0
-
hasCreateReportPrivileges
public boolean hasCreateReportPrivileges()
- Returns:
- boolean value indicating if the blank view report should be available to the user.
- Since:
- MicroStrategy Web 9.0.0
-
renderList
public void renderList(MarkupOutput out, WebDisplayUnits list)
Deprecated.This method will later on not be called from by default logic on the application, please overwrite theAbstractFolderTransform.renderList(MarkupOutput out)
method instead for customizations, the list of elements that the equivalent method for renderTemplateList will obtain the children to display from theAbstractFolderTransform.getSortedList()
output.Extends the original method by calling instead two methods to render the folder contents to show to the user:renderBlankObject(MarkupOutput out)
andrenderTemplateList(MarkupOutput out, WebDisplayUnits list)
- Overrides:
renderList
in classFolderIconRadioButtonTransform
- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.list
-WebDisplayUnits
instance with the list of objects that will be rendered by this transform, as contents of the folder being analyzed.
-
generateRadioButtonForObject
protected Tag generateRadioButtonForObject(WebEvent openEvent, WebObjectInfo object, boolean selected)
Overwrites the parent method by assigning JavaScript code to theonclick
event of the input tag if the user is on DHTML mode.- Overrides:
generateRadioButtonForObject
in classFolderIconRadioButtonTransform
- Parameters:
openEvent
-WebEvent
representing the action to do with the given objectobject
-WebObjectInfo
currently being processedselected
- boolean indicating if the radio button should be selected or not- Returns:
- the
Tag
initialized instance corresponding to the radio button generated.
-
isEmptyList
public boolean isEmptyList()
Description copied from class:AbstractFolderTransform
Returnstrue
if the list of elements from this folder available for display (AbstractFolderTransform.getSortedList()
) is empty or not.- Overrides:
isEmptyList
in classAbstractFolderTransform
- Returns:
true
if the underlying object list is empty.- Since:
- MicroStrategy Web 9.0.0
-
isEmptyList
public boolean isEmptyList(WebDisplayUnits list)
Deprecated.please useisEmptyList()
instead, where the list to be analyzed is the one obtained fromAbstractFolderTransform.getSortedChildUnits()
.Indicates if there will be objects to display from the instance sent in as parameter. The check by default is the count of report objects included on the list.- Parameters:
list
-WebDisplayUnits
list instance initialized with the objects to render- Returns:
- boolean value indicating if there are objects to be displayed out of this list.
-
getObjectDescription
public java.lang.String getObjectDescription(WebObjectInfo object)
Overwrites the parent method by supplying a default description for the blank object as indicated on theblankObjectId
formal parameter- Overrides:
getObjectDescription
in classAbstractObjectInfoListTransform
- Parameters:
object
-WebObjectInfo
instance from where to retrieve the description- Returns:
- String with the object's description as defined, or a specific descriptor
if the object being analyzed is the one defined on the
blankObjectId
formal parameter.
-
getObjectName
public java.lang.String getObjectName(WebObjectInfo object)
Overwrites the parent method by supplying a default name for the blank object as indicated on theblankObjectId
formal parameter- Overrides:
getObjectName
in classAbstractObjectInfoListTransform
- Parameters:
object
-WebObjectInfo
instance from where to retrieve the name- Returns:
- String with the object's name as defined, or a specific descriptor
if the object being analyzed is the one defined on the
blankObjectId
formal parameter.
-
renderBlankObject
public void renderBlankObject(MarkupOutput out)
Renders the first part of the transform, that is the part where the user might pick a "blank" report to start working. If the option is to be shown to the user, it then calls for theFolderIconRadioButtonTransform.renderObject(MarkupOutput out, WebObjectInfo object)
method for the blank template.- Parameters:
out
-MarkupOutput
instance to modify with the transform's output. be rendered by this transform, as contents of the folder being analyzed.
-
getCssName
public java.lang.String getCssName(WebObjectInfo object)
Overwrites the parent method by providing a special css style to the blank object.- Overrides:
getCssName
in classAbstractObjectInfoListTransform
- Parameters:
object
- TheWebObjectInfo
for which it's image name is required.- Returns:
- a
String
with the name of the CSS class that should be associated with theWebObjectInfo
information to display. If the type specified does not match the predefined list of styles, then it returns an empty string. If the object analyzed corresponds to the one specified on theblankObjectId
formal parameter then returns"blank"
.
-
renderTemplateList
public void renderTemplateList(MarkupOutput out) throws WebBeanException, WebObjectsException
Renders the list of templates in this folder. Calls for the other interface of the method sending the sorted child list as parameter.- Parameters:
out
-MarkupOutput
instance to modify with the transform's output. be rendered by this transform, as contents of the folder being analyzed.- Throws:
WebBeanException
- if an error happens while rendering this informationWebObjectsException
- if an error happens while rendering this information
-
renderTemplateList
public void renderTemplateList(MarkupOutput out, WebDisplayUnits list)
Renders the list of templates in this folder.- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.list
-WebDisplayUnits
instance with the list of objects that will be rendered by this transform, as contents of the folder being analyzed.
-
renderNameInfo
public void renderNameInfo(MarkupOutput out, WebObjectInfo object)
Overwrites the parent method by rendering only the name of the object if it's ofEnumDSSXMLObjectTypes.DssXmlTypeFolder
type. No radio button is to be created for it.- Overrides:
renderNameInfo
in classFolderIconRadioButtonTransform
- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.object
-WebObjectInfo
to have its name rendered.- Since:
- MicroStrategy Web 9.0.0
-
renderIconInfo
public void renderIconInfo(MarkupOutput out, WebObjectInfo object)
Overwrites the parent method by rendering only the image of the object as an anchor if it's ofEnumDSSXMLObjectTypes.DssXmlTypeFolder
type.- Overrides:
renderIconInfo
in classFolderIconRadioButtonTransform
- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.object
-WebObjectInfo
to have its image rendered.- Since:
- MicroStrategy Web 9.0.0
-
isDesignModeOptionChecked
protected boolean isDesignModeOptionChecked()
Indicates whether or not Design mode checkbox is checked.
It readsvalueDesignModeCheck
which is a custom property end-user can toggled on or off checkbox.- Returns:
- boolean value indicating if the design mode option is checked or not.
-
renderButtonOptions
public void renderButtonOptions(MarkupOutput out)
If the user has enough privileges, this method will display by default the option for allowing to run the selected report on design mode.- Parameters:
out
-MarkupOutput
instance to modify with the transform's output.
-
isObjectVisible
public boolean isObjectVisible(WebObjectInfo object)
Extends parent method by returning false if the object is the blank report. We don't want to display this object as part of the template list since it has already been rendered by its own.- Overrides:
isObjectVisible
in classAbstractFolderTransform
- Parameters:
object
-WebObjectInfo
instance to check for.- Returns:
True
if object requested is visible, otherwise returnsFalse
-
getOpenObjectEvent
protected WebEvent getOpenObjectEvent()
Overwrites the original method for returning theEnumServletEvents.WebEventEditReport
event instead.- Overrides:
getOpenObjectEvent
in classFolderIconRadioButtonTransform
- Returns:
- a
WebEvent
instance intialized if the application supports it. Otherwise, returnsnull
-
getArgumentName
protected java.lang.String getArgumentName(WebEvent event, int argumentID)
For the given event, returns the name of the argument with the given ID. When overriding an specificgetEvent
method, clients can override this method as well to provide the corresponding argument for the new event. Since thegetOpenObjectEvent()
method was redefined, this method is also updated for returning the correct object identifier argument from it.- Overrides:
getArgumentName
in classAbstractAppTransform
- Parameters:
event
-WebEvent
from which retrieve the argumentargumentID
- argument Id from where to get its name.- Returns:
- the argument name as defined by the event.
-
renderDesignModeOption
protected void renderDesignModeOption(MarkupOutput out, WebEvent createEvent, boolean designMode)
Render a check box giving the option to have the report selected run in design mode. If the event has been customized, then this method should also be overwritten for the event argument identifiers to be correct.- Parameters:
out
-MarkupOutput
where the HTML output will be savedcreateEvent
-WebEvent
representing the action to do with the given objectdesignMode
-boolean
indicating if design mode is selected.
-
setBoneProperties
protected void setBoneProperties(JsonGenerator boneProps)
Description copied from class:AbstractAppTransform
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.- Overrides:
setBoneProperties
in classAbstractFolderTransform
- Parameters:
boneProps
- the JsonGenerator object that contains the collection of bone properties.
-
-