Class StylesImpl

    • Field Detail

      • NODE_STYLES

        protected static final java.lang.String NODE_STYLES
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • StylesImpl

        public StylesImpl()
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • getStyle

        public Style getStyle​(int index)
                       throws java.lang.IndexOutOfBoundsException
        Description copied from interface: Styles
        Retrieves a specific Style object by its numeric index.
        Specified by:
        getStyle in interface Styles
        Parameters:
        index - the index of the Style object in collection.
        Returns:
        the Style object in the collection with the given index.
        Throws:
        java.lang.IndexOutOfBoundsException - thrown if the index is invalid.
      • getStyle

        public Style getStyle​(java.lang.String name)
        Description copied from interface: Styles
        Retrieves a specific Style object by its name.
        Returns null if no style exists with the given name in the style catalog.
        Specified by:
        getStyle in interface Styles
        Parameters:
        name - the name of the Style object.
        Returns:
        the Style object in the collection with the given name.
      • newStyle

        public Style newStyle​(java.lang.String styleName)
                       throws java.lang.IllegalArgumentException,
                              java.lang.UnsupportedOperationException
        Description copied from interface: Styles
        Creates a new Style object and adds it to the collection.
        Specified by:
        newStyle in interface Styles
        Parameters:
        styleName - the name of the new Style object.
        Returns:
        the Style object just created.
        Throws:
        java.lang.IllegalArgumentException - thrown if the styleName is used by another Style object in the collection or if the style name is empty.
        java.lang.UnsupportedOperationException - thrown if the collection is read-only.
      • addStyle

        public void addStyle​(Style style)
        Description copied from interface: Styles
        Adds a style object to the collection. If the style already exists, it is overwritten.
        Specified by:
        addStyle in interface Styles
        Parameters:
        style - The style object to be added to the collection.
      • copyContents

        public void copyContents​(Style styleSource,
                                 Style styleDest)
        Description copied from interface: Styles
        Copies the contents of a style into another style.
        Specified by:
        copyContents in interface Styles
        Parameters:
        styleSource - the source style to copy the contents from.
        styleDest - the destination style to copy the contents to.
        Since:
        MicroStrategy Web 9.0.0
      • getListClass

        protected java.lang.Class getListClass()
        Description copied from class: AbstractElementList
        Returns the Class items beloging to this list will be instance of.
        Specified by:
        getListClass in class AbstractElementList
        Since:
        MicroStrategy Web 9.0.0
      • getListNodeName

        protected java.lang.String getListNodeName()
        Description copied from class: AbstractElementList
        Returns the name of the node representing children of this list.
        Specified by:
        getListNodeName in class AbstractElementList
        Since:
        MicroStrategy Web 9.0.0