ilog.webui.dhtml

Class IlxWStyleMap

  • java.lang.Object
    • ilog.webui.dhtml.IlxWStyleMap
  • Direct Known Subclasses:
    IlxWComponent.DynamicStyleMap


    public abstract class IlxWStyleMap
    extends java.lang.Object
    Abstract class representing a map of CSS styles. The value associated to a style name can be retrieved through the various getter methods provided by the class.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlxWStyleMap() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      abstract java.lang.String get(java.lang.String name)
      Gets the value for the given style name.
      boolean getBoolean(java.lang.String name)
      Gets the value for the given style name as a boolean.
      java.awt.Color getColor(java.lang.String name)
      Gets the value for the given style name as a Color object.
      int getInteger(java.lang.String name)
      Gets the value for the given style name as an integer.
      java.lang.String getString(java.lang.String name)
      Gets the value for the given style name as a string.
      abstract java.util.Iterator names()
      Gets the names of all the styles defined in this map.
      • Methods inherited from class java.lang.Object

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

      • IlxWStyleMap

        public IlxWStyleMap()
    • Method Detail

      • get

        public abstract java.lang.String get(java.lang.String name)
        Gets the value for the given style name.
        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.
      • names

        public abstract java.util.Iterator names()
        Gets the names of all the styles defined in this map.
      • getString

        public java.lang.String getString(java.lang.String name)
        Gets the value for the given style name as a string.
        Parameters:
        name - a non null string.
        Returns:
        a string. If the style is not defined, returns null.
      • getBoolean

        public boolean getBoolean(java.lang.String name)
        Gets the value for the given style name as a boolean.
        Parameters:
        name - a non null string.
        Returns:
        true is the value in the map is "true". False otherwise.
      • getInteger

        public int getInteger(java.lang.String name)
        Gets the value for the given style name as an integer.
        Parameters:
        name - a non null string.
        Returns:
        the value of the style converted to an integer, if possible. Otherwise returns 0.
      • getColor

        public java.awt.Color getColor(java.lang.String name)
        Gets the value for the given style name as a Color object.
        Parameters:
        name - a non null string.
        Returns:
        the value of the style converted to a color, if possible. Otherwise returns null.

© Copyright IBM Corp. 1987, 2017