com.microstrategy.web.objects.WebTemplateUnit |
The WebTemplateUnit interface represents a template unit on a report. This
object can generally be obtained from either a WebTemplate
or
WebAxis
object. This object contains many methods used to get
information about or change the configuration of a template unit. In
addition, this object is the argument to many of the methods on
WebTemplate
and WebAxis
which modify the template.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
clear()
Clears the template unit.
| ||||||||||
abstract String |
getAlias()
Returns the alias of the template unit.
| ||||||||||
abstract int |
getAxisIndex()
Returns the index of the
WebAxis which this template unit is on. | ||||||||||
abstract RWControl |
getControl()
Returns control associated with this template unit
| ||||||||||
abstract WebElement |
getCurrentElement()
Returns the current element of the template unit, if specified, or null if it is unspecified.
| ||||||||||
abstract int |
getCurrentElementStatus()
Returns the current element status of this template unit.
| ||||||||||
abstract WebDrillMap |
getDrillMap()
Returns the collection of
WebDrillPath objects for this Template Unit as a WebDrillMap object. | ||||||||||
abstract WebFormatContainer |
getFormatContainer()
Returns the Format Container on this Unit, which contains the 4
WebFormat objects. | ||||||||||
abstract int |
getKey()
Returns the key of the template unit.
| ||||||||||
abstract String |
getName()
Returns the standard name for the template unit.
| ||||||||||
abstract WebObjectInfo | getOI() | ||||||||||
abstract int |
getPosition()
Returns the position of the template unit on its axis.
| ||||||||||
abstract Object |
getTarget()
Returns the target of this template unit.
| ||||||||||
abstract int |
getUnitType()
Returns the type of template unit, from
EnumDSSXMLTemplateUnitType . | ||||||||||
abstract boolean |
hasUnitLimit()
Returns whether this template unit has a unit limit on it
| ||||||||||
abstract boolean |
isLocked()
Returns whether the template unit is locked.
| ||||||||||
abstract void |
lock()
Locks the template unit.
| ||||||||||
abstract void |
setAlias(String alias)
Sets the alias of the template unit.
| ||||||||||
abstract void |
setCurrentElement(String elementID)
Sets the current element of this template unit by element ID.
| ||||||||||
abstract void |
setCurrentElement(String elementID, int elementStatus)
Set the current element of this template unit by element ID, using the status as the specified elementStatus.
| ||||||||||
abstract void |
setCurrentElementStatus(int elementStatus)
Sets the current element status of this template unit.
| ||||||||||
abstract void |
unlock()
Unlocks the template unit.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Clears the template unit. This causes the unit to act as if it was just added to the template.
Returns the alias of the template unit. This may or may not be the same as the unit name.
Returns the index of the WebAxis
which this template unit is on.
EnumDSSXMLAxisName
.
Returns control associated with this template unit
Returns the current element of the template unit, if specified, or null if it is unspecified.
WebElement
which describes the current element of the template unit.Returns the current element status of this template unit.
EnumDSSXMLCurrentElementStatus
.
Returns the collection of WebDrillPath
objects for this Template Unit as a WebDrillMap
object.
WebDrillPath
objects as a WebDrillMap
object.WebObjectsException | if the Server encountered an error in generating the default drill paths. |
---|
Returns the key of the template unit. This can be used to uniquely identify the template unit within this template.
Returns the standard name for the template unit.
Returns the position of the template unit on its axis. This value is 1-based.
Returns the target of this template unit. This will be either a WebTemplateAttribute
,
WebTemplateCustomGroup
, WebTemplateConsolidation
, WebTemplateDimension
,
or WebTemplateMetrics
object.
It is the responsibility of the user to determine which type of object is returned.
WebObjectInfo
interface or the
WebTemplateMetrics
object.
Returns the type of template unit, from EnumDSSXMLTemplateUnitType
.
EnumDSSXMLTemplateUnitType
.
Returns whether this template unit has a unit limit on it
Returns whether the template unit is locked. A locked template unit serves as a hint that the report designer did not want the user to remove this unit. Note that locking is not enforced by the Intelligence Server, instead allowing the API user to determine whether to enforce the lock state.
Locks the template unit.
Sets the alias of the template unit.
alias | The alias to use for the template unit. |
---|
Sets the current element of this template unit by element ID.
elementID | The unique ID of the element to be made the current element. |
---|
UnsupportedOperationException | Thrown if the template is read-only. |
---|---|
IllegalArgumentException | Thrown if the given element ID does not exist. |
Set the current element of this template unit by element ID, using the status as the specified elementStatus.
elementID | The unique ID of the element to be made the current element. |
---|---|
elementStatus | A value from EnumDSSXMLCurrentElementStatus . |
UnsupportedOperationException | Thrown if the template is read-only. |
---|---|
IllegalArgumentException | Thrown if the given element ID does not exist, or elementStatus is not a valid status. |
Sets the current element status of this template unit.
elementStatus | A value from enumeration EnumDSSXMLCurrentElementStatus |
---|
IllegalArgumentException will be throw if the input value is not one in the enumeration. | |
IllegalArgumentException |
Unlocks the template unit.