Class MojoRWDTransform.RWLayoutContextDefn
- java.lang.Object
-
- com.microstrategy.web.app.transforms.MojoRWDTransform.RWLayoutContext
-
- com.microstrategy.web.app.transforms.MojoRWDTransform.RWLayoutContextDefn
-
- All Implemented Interfaces:
RWBeanVisitor,RWBeanVisitor2
- Direct Known Subclasses:
MojoIVETransform.IVELayoutContextDefn
- Enclosing class:
- MojoRWDTransform
protected class MojoRWDTransform.RWLayoutContextDefn extends MojoRWDTransform.RWLayoutContext
This class is used to walk the Report Writer Document's definition tree (it implementsRWBeanVisitor2and extendsMojoRWDTransform.RWLayoutContextwhich walks the RWD's data tree)and holds state about what it has encountered... e
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.MojoRWDTransform.RWLayoutContext
bRWLayoutDef, subsectionBlockStack, subsectionBoundingBoxMap
-
-
Constructor Summary
Constructors Constructor Description RWLayoutContextDefn(Block bRWLayoutDef, Block bRWLayout, boolean docWidthModeAuto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRWTemplateDefProperties(RWGridGraphDef gridGraphDef, RWUnit rwUnit, Block bRWTemplateDef, ViewBean vb)protected BlockcreateRWControlDefBlock(RWControlDef unitDef, RWUnit rwUnit)protected BlockcreateRWPanelDefBlock(RWSubsectionDef panelDef, RWSection panel)protected BlockcreateRWPanelStackDefBlock(RWSectionDef sectionDef, RWSection rwSection)protected RWDataSetgetDatasetForSearchBox(java.lang.String srcObjId)java.util.Map<java.lang.String,com.microstrategy.web.app.transforms.FormatPropertyConverterFactory.SubsectionBoundingBox>getSubsectionBoundingBoxMap()protected booleangetViewBeanHasTitleProperty(ViewBean viewBean, RWGridGraphDef gridGraphDef, Block bRWUnitDef, WebFormat wf)protected booleanisPSAsFilterPanel(RWUnitDef def)voidonEnd(MarkupOutput mo)Called on iteration endvoidonEndSection(RWSection section, MarkupOutput mo)voidonEndSubsection(RWSection subsection, MarkupOutput mo, boolean isBordered)A subsection border occurs between two subsections, or if the subsection is the very last section in the document.voidonObject(RWBean rwBean, RWObject ob, MarkupOutput mo)Specific case whereRWObject#getDefinition().getType == EnumRWUnitTypes.RWUNIT_SUBREPORT.voidonObject(ViewBean viewBean, RWObject ob, MarkupOutput mo)Specific case whereRWObject#getDefinition().getType == EnumRWUnitTypes.RWUNIT_GRIDGRAPHThe corresponding data value is encapsulated in a ViewBean for ease of use.voidonObject(RWObject ob, MarkupOutput mo)This is invoked as a fallback if the more specificonObjectdeclarations are not matched.voidonStartSection(RWSection section, MarkupOutput mo)voidonStartSubsection(RWSection subsection, MarkupOutput mo)Called on start of subsectionprotected voidsetSelectorTitleProperties(Block bRWSelectorDef, RWControlDef controlDef, WebFormat ctlFormat)protected booleanshuoldIncludeSelectorTitleProperties(RWControlDef controlDef)-
Methods inherited from class com.microstrategy.web.app.transforms.MojoRWDTransform.RWLayoutContext
addRWTemplateProperties, addTemplateExtraInfo, createNumberFormatsBlock, createRWEditableTextBlock, createRWGridBlock, createRWHTMLContainerBlock, firstException, forceShowAsGrid, getAndroidVisualization, getEffectiveDisplayMode, getThresholdKey, getXtabTransformInstance, hasExceptions, ignoreSection, isAndroidVisualization, isMojoVisualization, isQuickSwitchEnabled, isVisualization, onStart, skipSubsection, storeException
-
-
-
-
Method Detail
-
getSubsectionBoundingBoxMap
public java.util.Map<java.lang.String,com.microstrategy.web.app.transforms.FormatPropertyConverterFactory.SubsectionBoundingBox> getSubsectionBoundingBoxMap()
-
onStartSection
public void onStartSection(RWSection section, MarkupOutput mo)
- Specified by:
onStartSectionin interfaceRWBeanVisitor- Overrides:
onStartSectionin classMojoRWDTransform.RWLayoutContext- Parameters:
section- the report writing document section.mo- the markup output.- See Also:
RWVisitor.onStartSection(RWSection)
-
onStartSubsection
public void onStartSubsection(RWSection subsection, MarkupOutput mo)
Description copied from interface:RWBeanVisitor2Called on start of subsection- Specified by:
onStartSubsectionin interfaceRWBeanVisitor2- Overrides:
onStartSubsectionin classMojoRWDTransform.RWLayoutContext- Parameters:
subsection- subsectionmo- markup output
-
onEndSubsection
public void onEndSubsection(RWSection subsection, MarkupOutput mo, boolean isBordered)
Description copied from interface:RWBeanVisitor2A subsection border occurs between two subsections, or if the subsection is the very last section in the document.- Specified by:
onEndSubsectionin interfaceRWBeanVisitor2- Overrides:
onEndSubsectionin classMojoRWDTransform.RWLayoutContext- Parameters:
subsection- the subsection before the border.mo- the markup output.
-
onEndSection
public void onEndSection(RWSection section, MarkupOutput mo)
- Specified by:
onEndSectionin interfaceRWBeanVisitor- Overrides:
onEndSectionin classMojoRWDTransform.RWLayoutContext- Parameters:
section- the report writing document section.mo- the markup output.- See Also:
RWVisitor.onEndSection(RWSection)
-
onEnd
public void onEnd(MarkupOutput mo)
Description copied from interface:RWBeanVisitor2Called on iteration end- Specified by:
onEndin interfaceRWBeanVisitor2- Overrides:
onEndin classMojoRWDTransform.RWLayoutContext- Parameters:
mo- markup output
-
onObject
public void onObject(RWBean rwBean, RWObject ob, MarkupOutput mo)
Description copied from interface:RWBeanVisitorSpecific case where
RWObject#getDefinition().getType == EnumRWUnitTypes.RWUNIT_SUBREPORT. The corresponding data value is encapsulated in a RWBean for ease of use.- Specified by:
onObjectin interfaceRWBeanVisitor- Overrides:
onObjectin classMojoRWDTransform.RWLayoutContext- Parameters:
rwBean- an embedded bean.ob- the report writing document object.mo- the markup output.- See Also:
RWVisitor.onObject(RWObject)
-
onObject
public void onObject(RWObject ob, MarkupOutput mo)
Description copied from interface:RWBeanVisitorThis is invoked as a fallback if the more specific
onObjectdeclarations are not matched.- Specified by:
onObjectin interfaceRWBeanVisitor- Overrides:
onObjectin classMojoRWDTransform.RWLayoutContext- Parameters:
ob- the report writing document object.mo- the markup output.- See Also:
RWVisitor.onObject(RWObject)
-
onObject
public void onObject(ViewBean viewBean, RWObject ob, MarkupOutput mo)
Description copied from interface:RWBeanVisitorSpecific case where
RWObject#getDefinition().getType == EnumRWUnitTypes.RWUNIT_GRIDGRAPHThe corresponding data value is encapsulated in a ViewBean for ease of use.- Specified by:
onObjectin interfaceRWBeanVisitor- Overrides:
onObjectin classMojoRWDTransform.RWLayoutContext- Parameters:
viewBean- an embedded bean.ob- the report writing document object.mo- the markup output.- See Also:
RWVisitor.onObject(RWObject)
-
getViewBeanHasTitleProperty
protected boolean getViewBeanHasTitleProperty(ViewBean viewBean, RWGridGraphDef gridGraphDef, Block bRWUnitDef, WebFormat wf)
-
createRWPanelStackDefBlock
protected Block createRWPanelStackDefBlock(RWSectionDef sectionDef, RWSection rwSection) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDatasetForSearchBox
protected RWDataSet getDatasetForSearchBox(java.lang.String srcObjId) throws WebObjectsException, WebBeanException
- Throws:
WebObjectsExceptionWebBeanException
-
shuoldIncludeSelectorTitleProperties
protected boolean shuoldIncludeSelectorTitleProperties(RWControlDef controlDef)
-
setSelectorTitleProperties
protected void setSelectorTitleProperties(Block bRWSelectorDef, RWControlDef controlDef, WebFormat ctlFormat)
-
createRWPanelDefBlock
protected Block createRWPanelDefBlock(RWSubsectionDef panelDef, RWSection panel) throws java.lang.Exception
- Throws:
java.lang.Exception
-
addRWTemplateDefProperties
protected void addRWTemplateDefProperties(RWGridGraphDef gridGraphDef, RWUnit rwUnit, Block bRWTemplateDef, ViewBean vb) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createRWControlDefBlock
protected Block createRWControlDefBlock(RWControlDef unitDef, RWUnit rwUnit) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isPSAsFilterPanel
protected boolean isPSAsFilterPanel(RWUnitDef def)
-
-