public class

StylesImpl

extends AbstractStyleCatalogList
implements Styles
java.lang.Object
   ↳ com.microstrategy.utils.config.AbstractConfigurationElement
     ↳ com.microstrategy.utils.config.AbstractElementList
       ↳ com.microstrategy.web.transform.AbstractStyleCatalogList
         ↳ com.microstrategy.web.transform.StylesImpl

Summary

Constants
String NODE_STYLES
[Expand]
Inherited Constants
From class com.microstrategy.utils.config.AbstractConfigurationElement
Public Constructors
StylesImpl()
Public Methods
void addStyle(Style style)
Adds a style object to the collection.
void copyContents(Style styleSource, Style styleDest)
Copies the contents of a style into another style.
Style getStyle(int index)
Retrieves a specific Style object by its numeric index.
Style getStyle(String name)
Retrieves a specific Style object by its name.
Style newStyle(String styleName)
Creates a new Style object and adds it to the collection.
Protected Methods
Class getListClass()
Returns the Class items beloging to this list will be instance of.
String getListNodeName()
Returns the name of the node representing children of this list.
[Expand]
Inherited Methods
From class com.microstrategy.web.transform.AbstractStyleCatalogList
From class com.microstrategy.utils.config.AbstractElementList
From class com.microstrategy.utils.config.AbstractConfigurationElement
From class java.lang.Object
From interface com.microstrategy.utils.config.ConfigurationElement
From interface com.microstrategy.utils.config.ConfigurationFile
From interface com.microstrategy.web.transform.Styles

Constants

protected static final String NODE_STYLES

Constant Value: "Styles"

Public Constructors

public StylesImpl ()

Public Methods

public void addStyle (Style style)

Adds a style object to the collection. If the style already exists, it is overwritten.

Parameters
style The style object to be added to the collection.

public void copyContents (Style styleSource, Style styleDest)

Copies the contents of a style into another style.

Parameters
styleSource the source style to copy the contents from.
styleDest the destination style to copy the contents to.

public Style getStyle (int index)

Retrieves a specific Style object by its numeric index.

Parameters
index the index of the Style object in collection.
Returns
  • the Style object in the collection with the given index.
Throws
IndexOutOfBoundsException

public Style getStyle (String name)

Retrieves a specific Style object by its name.
Returns null if no style exists with the given name in the style catalog.

Parameters
name the name of the Style object.
Returns
  • the Style object in the collection with the given name.

public Style newStyle (String styleName)

Creates a new Style object and adds it to the collection.

Parameters
styleName the name of the new Style object.
Returns
  • the Style object just created.
Throws
IllegalArgumentException
UnsupportedOperationException

Protected Methods

protected Class getListClass ()

Returns the Class items beloging to this list will be instance of.

protected String getListNodeName ()

Returns the name of the node representing children of this list.