Class AbstractStyleCatalogList

    • Constructor Detail

      • AbstractStyleCatalogList

        public AbstractStyleCatalogList()
    • Method Detail

      • newItem

        protected AbstractStyleCatalogElement newItem​(java.lang.String name)
                                               throws java.lang.IllegalArgumentException
        Creates a new item for this list with the given name as a key. The item is automatically set the "name" attribute with the given name, and added to this list.
        Throws:
        java.lang.IllegalArgumentException - if the name is empty or if the name is already in used.
      • remove

        public void remove​(java.lang.String key)
        Removes an element from the collection
        Parameters:
        key - the key of the object to remove
      • remove

        public void remove​(int index)
        Removes an element from the collection.
        Parameters:
        index - The position within the valid elements of the element to remove.
      • getCount

        public int getCount()
        Retuns the size of the collection
        Returns:
        the size of the collection
      • clearCaches

        protected void clearCaches()
        This method is invoked whenever the structure of the style catalog has changed and caches to other objects in the structure needs to be updated.
      • getStyleCatalog

        protected StyleCatalog getStyleCatalog()
        Returns the instance of the StyleCatalog containing all the elements.
        Returns:
        StyleCatalog