Package com.microstrategy.web.objects.rw
Interface RWSectionDef
- 
- All Superinterfaces:
 RWUnitDef,WebThresholdsContainer
- All Known Subinterfaces:
 RWLayoutSectionDef,RWPanelStackDef,RWSubsectionDef
public interface RWSectionDef extends RWUnitDef
Represents section definition- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RWUnitDefaddChild(int unitType)Adds the specified child unitRWUnitDefaddChild(int unitType, java.lang.String unitKey)Adds the specified child unitRWUnitDefaddChild(int unitType, java.lang.String unitKey, java.lang.String beforeKey)Adds the specified child unitRWControlDefaddControl(java.lang.String key, int type)Adds control unit to this sectionRWControlDefaddControl(java.lang.String key, int type, EnumWebControlSubType subType, java.lang.String ctlNodeKey)RWControlDefaddControl(java.lang.String key, int type, java.lang.String ctlNodeKey)RWUnitDefgetChild(int index)Returns i-th child unit definition.RWUnitDefgetChildByKey(java.lang.String key)Returns child definition with specified key.intgetChildCount()Return a number of childrenRWFieldGroupDefgetFieldGroup()RWGroupBygetGroupBy()Returns a group by object associated with this sectionintgetGroupByLevel()Returns a group by level of the sectionintindexOf(RWUnitDef child)Returns an index of specified childbooleanisHorizontal()Returntrueorfalsedepending on whether the section is horizontal or verticalRWUnitDefremoveChildByKey(java.lang.String key)Removes child unit with specified keyvoidsetHorizontal(boolean isHorizontal)Sets the orientation of the section to be either horizontal (true) or verticalfalse.voidsortChildren(java.util.Comparator comparator)Sorts children based on the specified comparator- 
Methods inherited from interface com.microstrategy.web.objects.rw.RWUnitDef
copyFormat, flushFormatChanges, getAllControlGroupBys, getElementControlGroupBys, getFilterDetailsFormatting, getFormat, getFormat, getFormat, getFormatTypes, getKey, getKeyContext, getName, getParent, getRwDefinition, getTheme, getThreshold, getThreshold, getThresholdCount, getTreeType, getType, isFirst, isLast, isVisible, nextSibling, prevSibling, revertToFormatDefaults, setName, setVisible 
- 
Methods inherited from interface com.microstrategy.web.objects.WebThresholdsContainer
getID, getObjectType, getThresholds, getTransactions, initElementSource 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getGroupBy
RWGroupBy getGroupBy()
Returns a group by object associated with this section- Returns:
 - a group by object associated with this section
 
 
- 
getGroupByLevel
int getGroupByLevel()
Returns a group by level of the section- Returns:
 - a group by level of the section
 
 
- 
getChildCount
int getChildCount()
Return a number of children- Returns:
 - a number of children
 
 
- 
getChild
RWUnitDef getChild(int index)
Returns i-th child unit definition.- Parameters:
 index-- Returns:
 - i-th child unit definition
 
 
- 
getChildByKey
RWUnitDef getChildByKey(java.lang.String key)
Returns child definition with specified key. (This method is not used in prototype).- Parameters:
 key-- Returns:
 - child definition with specified key.
 
 
- 
addChild
RWUnitDef addChild(int unitType)
Adds the specified child unit- Parameters:
 unitType- unit type- Returns:
 - the specified child unit
 
 
- 
addChild
RWUnitDef addChild(int unitType, java.lang.String unitKey)
Adds the specified child unit- Parameters:
 unitType- unit typeunitKey- unit key- Returns:
 - added unit
 
 
- 
addChild
RWUnitDef addChild(int unitType, java.lang.String unitKey, java.lang.String beforeKey)
Adds the specified child unit- Parameters:
 unitType- unit typeunitKey- unit keybeforeKey- the existing unit key before which to insert a new one- Returns:
 - added unit
 
 
- 
removeChildByKey
RWUnitDef removeChildByKey(java.lang.String key)
Removes child unit with specified key- Parameters:
 key-- Returns:
 - child unit with specified key
 
 
- 
indexOf
int indexOf(RWUnitDef child)
Returns an index of specified child- Parameters:
 child- a child unit- Returns:
 - an index of specified child
 
 
- 
sortChildren
void sortChildren(java.util.Comparator comparator)
Sorts children based on the specified comparator- Parameters:
 comparator- Comparator
 
- 
addControl
RWControlDef addControl(java.lang.String key, int type)
Adds control unit to this section- Parameters:
 key- control unit keytype- control type- Returns:
 - new control unit
 - Since:
 - MicroStrategy Web 8.1.0
 
 
- 
addControl
RWControlDef addControl(java.lang.String key, int type, java.lang.String ctlNodeKey)
 
- 
addControl
RWControlDef addControl(java.lang.String key, int type, EnumWebControlSubType subType, java.lang.String ctlNodeKey)
 
- 
isHorizontal
boolean isHorizontal()
Returntrueorfalsedepending on whether the section is horizontal or vertical- Returns:
 trueis the section is oriented horizontally
falseif the section is oriented vertically- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setHorizontal
void setHorizontal(boolean isHorizontal) throws WebObjectsExceptionSets the orientation of the section to be either horizontal (true) or verticalfalse. If the orientation is horizontal, this call will also set the height of all children subsections to be the same as the first subsection.- Parameters:
 isHorizontal- boolean to indicate whether horizontal or vertical- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getFieldGroup
RWFieldGroupDef getFieldGroup()
- Returns:
 - the filedGroup element in this section
 
 
 - 
 
 -