Class AbstractStyleKeyFactory

    • Constructor Detail

      • AbstractStyleKeyFactory

        protected AbstractStyleKeyFactory()
        Creates a new factory.
    • Method Detail

      • addKey

        public void addKey​(StyleKey key)
        Registers a key.
        Parameters:
        key - the key.
      • getStyleKey

        public StyleKey getStyleKey​(String name)
        Returns the key with the given name.
        Specified by:
        getStyleKey in interface StyleKeyFactory
        Parameters:
        name - the name.
        Returns:
        The key.
      • loadFromClass

        protected void loadFromClass​(Class c)
        Loads all public static stylekeys which are declared in the given class.
        Parameters:
        c - the class from where to load the stylekeys.
        Throws:
        SecurityException - if the current security settings deny class access.
      • getRegisteredKeys

        public Iterator getRegisteredKeys()
        Returns an iterator that provides access to the registered keys.
        Specified by:
        getRegisteredKeys in interface StyleKeyFactory
        Returns:
        The iterator.
      • equals

        public boolean equals​(Object o)
        Indicated whether an other object is equal to this one.
        Overrides:
        equals in class Object
        Parameters:
        o - the other object.
        Returns:
        true, if the object is equal, false otherwise.
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Computes an hashcode for this factory.
        Overrides:
        hashCode in class Object
        Returns:
        the hashcode.
        See Also:
        Object.hashCode()