com.microstrategy.web.objects.WebFormatContainer |
![]() |
This is a container of WebFormat
objects. It exists on the template, as part of every
WebTemplateUnit
, WebAxis
, and WebTemplateMetric
object.
This class contains the formatting information for the object which it came from, and can
be modified to change the formatting of the owner object.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebFormat |
getGridFormat()
Returns the grid format object.
| ||||||||||
abstract WebFormat |
getHeaderFormat()
Returns the header format object.
| ||||||||||
abstract WebFormat |
getSubtotalGridFormat()
Returns the subtotal grid format object.
| ||||||||||
abstract WebFormat |
getSubtotalHeaderFormat()
Returns the subtotal header format object.
| ||||||||||
abstract void |
setDefaultForProperty(int formatType, String propertySetName, String propertyName)
Set the default value for a specific format property.
| ||||||||||
abstract void |
setDefaultForProperty(int formatType, String propertySetName, String propertyName, boolean propagate)
Set the default value for a specific format property.
| ||||||||||
abstract void |
setDefaultFormat(int formatType, boolean propagate)
Set the indicated type of format (header, grid, subtotal header, or subtotal grid)
object to its default value.
| ||||||||||
abstract void |
setDefaultFormat(int formatType)
Set the indicated type of format (header, grid, subtotal header, or subtotal grid)
object to its default value.
| ||||||||||
abstract void |
setDefaultFormats(boolean propagate)
Sets all format objects in this container to the default format.
| ||||||||||
abstract void |
setDefaultFormats()
This method sets all format objects in this container to the default values.
| ||||||||||
abstract void |
setFormatProperty(int formatType, String propertySetName, String propertyName, String value, boolean propagate)
Sets the value for a specific format property.
| ||||||||||
abstract void |
setFormatProperty(int formatType, String propertySetName, String propertyName, String value)
Sets the value for a specific format property.
|
Returns the grid format object. This can be used to examine or change the grid format of the object.
WebFormat
object, which contains all of the grid format information.
Returns the header format object. This can be used to examine or change the header format of the object.
WebFormat
object, which contains all of the header format information.
Returns the subtotal grid format object. This can be used to examine or change the subtotal grid
format of the object. Note that if the format container came from a WebTemplateMetric
object, it
has no subtotal grid format associated with it.
WebFormat
object, which contains all of the subtotal grid format information.UnsupportedOperationException | Thrown if the object which the format container came
from was a WebTemplateMetric object.
|
---|
Returns the subtotal header format object. This can be used to examine or change the subtotal header
format of the object. Note that if the format container came from a WebTemplateMetric
object, it
has no subtotal header format associated with it.
WebFormat
object, which contains all of the subtotal header format information.UnsupportedOperationException | Thrown if the object which the format container came
from was a WebTemplateMetric object.
|
---|
Set the default value for a specific format property.
formatType | A value from EnumWebFormatType which indicates the format type. |
---|---|
propertySetName | The name of the property set. |
propertyName | The name of the property. |
IllegalArgumentException | Thrown if the formatType is not one of the
values in EnumWebFormatType . |
---|---|
UnsupportedOperationException | Thrown if the format type given does not exist in this format container. This will happen when specifying one of the subtotal format objects when the format container came from a template metric. |
Set the default value for a specific format property. If the propagate option is set to true, then if the unit which contains this format container has child units which can contain format containers, this method will propagate the changes made by this method to those objects.
formatType | A value from EnumWebFormatType which indicates the format type. |
---|---|
propertySetName | The name of the property set. |
propertyName | The name of the property. |
propagate | If this is true, the effects of this method will be propagated to child units of the unit the format container came from. |
IllegalArgumentException | Thrown if the formatType is not one of the
values in EnumWebFormatType . |
---|---|
UnsupportedOperationException | Thrown if the format type given does not exist in this format container. This will happen when specifying one of the subtotal format objects when the format container came from a template metric. |
Set the indicated type of format (header, grid, subtotal header, or subtotal grid) object to its default value. If the propagate option is set to true, then if the unit which contains this format container has child units which can contain format containers, this method will also set those format objects to the default values.
formatType | A value from EnumWebFormatType to indicate the format type
which will be reset to its default value. |
---|---|
propagate | If this is true, the effects of this method will be propagated to child units of the unit the format container came from. |
IllegalArgumentException | If formatType is not in the EnumWebFormatType
enumeration, this error will be thrown. |
---|---|
UnsupportedOperationException | If the type passed in does not exist on the object this format container was obtained from (i.e. a subtotal-related format on a metric), this error will be thrown. |
Set the indicated type of format (header, grid, subtotal header, or subtotal grid) object to its default value.
formatType | A value from EnumWebFormatType to indicate the format type
which will be reset to its default value. |
---|
IllegalArgumentException | If formatType is not in the EnumWebFormatType
enumeration, or the type passed in does not exist on the object this format container
was obtained from, this error will be thrown. |
---|---|
UnsupportedOperationException | If the type passed in does not exist on the object this format container was obtained from (i.e. a subtotal-related format on a metric), this error will be thrown. |
Sets all format objects in this container to the default format. If the propagate option is set to true, then if the unit which contains this format container has child units which can contain format containers, this method will also set those objects to the default values.
propagate | If this is true, the effects of this method will be propagated to child units of the unit the format container came from. |
---|
This method sets all format objects in this container to the default values.
Sets the value for a specific format property. If the propagate option is set to true, then if the unit which contains this format container has child units which can contain format containers, this method will propagate the changes made by this method to those objects.
formatType | A value from EnumWebFormatType specifying the format object whose
value will be changed. |
---|---|
propertySetName | The name of the property set. |
propertyName | The name of the property. |
value | The value to be set for the specified property. |
propagate | If this is true, the effects of this method will be propagated to child units of the unit the format container came from. |
IllegalArgumentException | Thrown if the format type is not a valid type. |
---|---|
UnsupportedOperationException | Thrown if the given format type does not exist for the object which the format container was obtained from. |
Sets the value for a specific format property.
formatType | A value from EnumWebFormatType specifying the format object whose
value will be changed. |
---|---|
propertySetName | The name of the property set. |
propertyName | The name of the property. |
value | The value to be set for the specified property. |
IllegalArgumentException | Thrown if the format type is not a valid type. |
---|---|
UnsupportedOperationException | Thrown if the given format type does not exist for the object which the format container was obtained from. |