com.microstrategy.web.objects.WebTemplateSubtotals |
The WebTemplateSubtotals object represents the collection of subtotals on a template
This object can be used to get the list of available subtotals, active subtotals etc,
turn on a subtotal by position (axis), across level (unit) or grouped by some template units.
Each object in the collection is of type WebTemplateSubtotal
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebTemplateSubtotal |
activateAxisSubtotal(int index, int subtotalStyle, int axisIndex)
Adds an axis or 'By Position' subtotal of the given type, with the given style, to the given axis.
| ||||||||||
abstract WebTemplateSubtotal |
activateGroupBySubtotal(int index, WebObjectInfo[][] units)
Adds a 'Group by' subtotal of the given type, grouped by the units defined in the
array of units.
| ||||||||||
abstract WebTemplateSubtotal |
activateUnitSubtotal(int index, WebObjectInfo[] units)
Adds a Unit or 'Across Level' subtotal of the given type across the given set of template
units.
| ||||||||||
abstract void |
deActivate(int index)
Inactivates the
WebTemplateSubtotal object with the given index in the collection. | ||||||||||
abstract void |
deActivateAll()
Inactivates all active subtotal objects from the collection.
| ||||||||||
abstract Enumeration |
elements()
Returns a java.util.Enumeration containing the objects in the collections.
| ||||||||||
abstract WebTemplateSubtotal |
get(int index)
Returns the
WebTemplateSubtotal object with the given index in this collection. | ||||||||||
abstract Enumeration |
getActiveSubtotals()
Returns an enumeration or collection of
WebTemplateSubtotal objects
that are active for the report. | ||||||||||
abstract WebTemplateSubtotal |
getByType(int type)
Returns the
WebTemplateSubtotal object with the given type. | ||||||||||
abstract int |
getSubtotalsPosition(int axis)
Returns the subtotals position property for the given axis, from
EnumDSSXMLSubtotalsPosition | ||||||||||
abstract boolean |
isEmpty()
Returns whether the collection is empty.
| ||||||||||
abstract boolean |
isTypeActive(int subTotalType)
Returns whether the collection contains an object of the given subtotal type
which is active (meaning that it is turned on for some axis or unit or group by).
| ||||||||||
abstract void |
setSubtotalsPosition(int axis, int position)
Sets the subtotals position property for the given axis, from
EnumDSSXMLSubtotalsPosition | ||||||||||
abstract int |
size()
Returns the number of items in the collection.
|
Adds an axis or 'By Position' subtotal of the given type, with the given style, to the given axis.
index | The index of the subtotal in the collection. |
---|---|
subtotalStyle | The style of subtotal to add, from EnumDSSXMLSubtotalStyle . |
axisIndex | The axis to add the subtotal to, from EnumDSSXMLAxisName . |
IllegalArgumentException | Thrown if one of the parameters is invalid. |
---|
Adds a 'Group by' subtotal of the given type, grouped by the units defined in the array of units.
index | The index of the subtotal in the collection. |
---|---|
units | Array of array of template units. |
IllegalArgumentException |
---|
Adds a Unit or 'Across Level' subtotal of the given type across the given set of template units.
index | The index of the subtotal in the collection. |
---|---|
units | Array of WebObjectInfo objects across which to add the subtotal. |
IllegalArgumentException | Thrown if one of the parameters are invalid. |
---|
Inactivates the WebTemplateSubtotal
object with the given index in the collection.
index | The index of the item to render inactive. |
---|
IndexOutOfBoundsException | Thrown if no item with the given index can be found. |
---|
Inactivates all active subtotal objects from the collection. This will effectively remove all subtotals instances associated with each subtotal
Returns a java.util.Enumeration containing the objects in the collections.
WebTemplateSubtotal
objects in the collection.
Returns the WebTemplateSubtotal
object with the given index in this collection.
index | The index to return in the collection. |
---|
WebTemplateSubtotal
object at the given index.IndexOutOfBoundsException | Thrown if the index does not exist in the collection. |
---|
Returns an enumeration or collection of WebTemplateSubtotal
objects
that are active for the report.
WebTemplateSubtotal
objects
Returns the WebTemplateSubtotal
object with the given type.
If no such subtotal with the given type exists for the template, this will
return null. If there are more than 1 subtotal with the given type, it will
return the first such subtotal
type | from EnumDSSXMLMetricType
|
---|
Returns the subtotals position property for the given axis, from EnumDSSXMLSubtotalsPosition
axis | The axis for which the subtotal position is requested, from EnumDSSXMLAxisName |
---|
EnumDSSXMLSubtotalsPosition
Returns whether the collection is empty.
Returns whether the collection contains an object of the given subtotal type which is active (meaning that it is turned on for some axis or unit or group by).
subTotalType | The type of subtotal to check for, from EnumDSSXMLMetricType . |
---|
Sets the subtotals position property for the given axis, from EnumDSSXMLSubtotalsPosition
axis | The axis for which the subtotal position is requested, from EnumDSSXMLAxisName |
---|---|
position | The subtotals position property for the axis |
Returns the number of items in the collection.