Decision Center API

ilog.webui.dhtml
Class IlxWStyleMap

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

public abstract class IlxWStyleMap
extends 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
IlxWStyleMap()
           
 
Method Summary
abstract  String get(String name)
          Gets the value for the given style name.
 boolean getBoolean(String name)
          Gets the value for the given style name as a boolean.
 Color getColor(String name)
          Gets the value for the given style name as a Color object.
 int getInteger(String name)
          Gets the value for the given style name as an integer.
 String getString(String name)
          Gets the value for the given style name as a string.
abstract  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 String get(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 Iterator names()
Gets the names of all the styles defined in this map.


getString

public String getString(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(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(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 Color getColor(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.

Decision Center API

© Copyright IBM Corp. 1987, 2013