ilog.webui.dhtml

Class IlxWComponent.DynamicStyleMap

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    IlxWComponent


    public class IlxWComponent.DynamicStyleMap
    extends IlxWStyleMap
    implements java.io.Serializable
    Dynamic style map.

    This map contains the styles added at runtime through the IlxWComponent.getStyle() API. Dynamic styles always override styles that may have been defined by a cascading style sheet.

    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String get(java.lang.String name)
      Gets the value for the given style name.
      java.util.Iterator names()
      Gets the names of all the styles defined in this map.
      void set(java.lang.String name, boolean value)
      Convenient method for setting a boolean style.
      void set(java.lang.String name, java.awt.Color value)
      Convenient method for setting a color style.
      void set(java.lang.String name, int value)
      Convenient method for setting an integer style.
      void set(java.lang.String name, java.lang.String value)
      Sets the given style with the given value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlxWComponent.DynamicStyleMap

        public IlxWComponent.DynamicStyleMap()
    • Method Detail

      • get

        public java.lang.String get(java.lang.String name)
        Description copied from class: IlxWStyleMap
        Gets the value for the given style name.
        Specified by:
        get in class IlxWStyleMap
        Parameters:
        name - a non null string.
        Returns:
        a string. If the style is not defined in the map, the empty string is returned. Cannot return null.
      • set

        public void set(java.lang.String name,
               java.lang.String value)
        Sets the given style with the given value.

        Throws:
        java.lang.IllegalArgumentException - If the value is null.
        Parameters:
        name - The style name.
        value - The style value. Must not be null.
      • set

        public void set(java.lang.String name,
               boolean value)
        Convenient method for setting a boolean style.

        The value is converted into a string and calls setValue(String, String).

        See Also:
        set(java.lang.String,java.lang.String)
      • set

        public void set(java.lang.String name,
               java.awt.Color value)
        Convenient method for setting a color style.

        The value is converted into a string and calls setValue(String, String).

        See Also:
        set(java.lang.String,java.lang.String)
      • set

        public void set(java.lang.String name,
               int value)
        Convenient method for setting an integer style.

        The value is converted into a string and calls setValue(String, String).

        See Also:
        set(java.lang.String,java.lang.String)
      • names

        public java.util.Iterator names()
        Description copied from class: IlxWStyleMap
        Gets the names of all the styles defined in this map.
        Specified by:
        names in class IlxWStyleMap

© Copyright IBM Corp. 1987, 2017