com.microstrategy.web.transform.Styles |
![]() |
The Styles interface exposes a collection of Style objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addStyle(Style style)
Adds a style object to the collection.
| ||||||||||
abstract void |
clear()
Removes all of the Style objects from the collection
| ||||||||||
abstract void |
copyContents(Style styleSource, Style styleDest)
Copies the contents of a style into another style.
| ||||||||||
abstract int |
getCount()
Returns the number of Style objects in the collection.
| ||||||||||
abstract Style |
getStyle(String name)
Retrieves a specific Style object by its name.
| ||||||||||
abstract Style |
getStyle(int index)
Retrieves a specific Style object by its numeric index.
| ||||||||||
abstract Style |
newStyle(String styleName)
Creates a new Style object and adds it to the collection.
| ||||||||||
abstract void |
remove(int index)
Removes the Style object at the specified position in the collection.
| ||||||||||
abstract void |
remove(String name)
Removes the Style object with the specified name from the collection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a style object to the collection. If the style already exists, it is overwritten.
style | The style object to be added to the collection. |
---|
Removes all of the Style objects from the collection
UnsupportedOperationException | thrown if the collection is read-only. |
---|
Copies the contents of a style into another style.
styleSource | the source style to copy the contents from. |
---|---|
styleDest | the destination style to copy the contents to. |
Returns the number of Style objects in the collection.
Retrieves a specific Style object by its name.
Returns null
if no style exists with the given name in the style catalog.
name | the name of the Style object. |
---|
Style
object in the collection with the given name.
Retrieves a specific Style object by its numeric index.
index | the index of the Style object in collection. |
---|
Style
object in the collection with the given index.IndexOutOfBoundsException | thrown if the index is invalid. |
---|
Creates a new Style object and adds it to the collection.
styleName | the name of the new Style object. |
---|
Style
object just created.IllegalArgumentException | thrown if the styleName is used by another Style object in the collection or if the style name is empty. |
---|---|
UnsupportedOperationException | thrown if the collection is read-only. |
Removes the Style object at the specified position in the collection.
index | the index of the Style object to remove. |
---|
thrown if the specified index is out of range. | |
UnsupportedOperationException | thrown if the collection is read-only. |
IndexOutOfBoundsException |
Removes the Style object with the specified name from the collection.
name | the name of the Style object to remove. |
---|
IllegalArgumentException | thrown if no style has the given name in the collection. |
---|---|
UnsupportedOperationException | thrown if the collection is read-only. |