Decision Center API

ilog.webui.dhtml
Class IlxWComponent.DynamicStyleMap

java.lang.Object
  extended by ilog.webui.dhtml.IlxWStyleMap
      extended by ilog.webui.dhtml.IlxWComponent.DynamicStyleMap
All Implemented Interfaces:
Serializable
Enclosing class:
IlxWComponent

public class IlxWComponent.DynamicStyleMap
extends IlxWStyleMap
implements 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

Constructor Summary
IlxWComponent.DynamicStyleMap()
           
 
Method Summary
 String get(String name)
          Gets the value for the given style name.
 Iterator names()
          Gets the names of all the styles defined in this map.
 void set(String name, boolean value)
          Convenient method for setting a boolean style.
 void set(String name, Color value)
          Convenient method for setting a color style.
 void set(String name, int value)
          Convenient method for setting an integer style.
 void set(String name, String value)
          Sets the given style with the given value.
 
Methods inherited from class ilog.webui.dhtml.IlxWStyleMap
getBoolean, getColor, getInteger, getString
 
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 String get(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(String name,
                String value)
Sets the given style with the given value.

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

set

public void set(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(String name,
                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(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 Iterator names()
Description copied from class: IlxWStyleMap
Gets the names of all the styles defined in this map.

Specified by:
names in class IlxWStyleMap

Decision Center API

© Copyright IBM Corp. 1987, 2013