public class IlxWComponent.DynamicStyleMap extends IlxWStyleMap implements java.io.Serializable
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.
| Constructor and Description |
|---|
IlxWComponent.DynamicStyleMap() |
| 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.
|
getBoolean, getColor, getInteger, getStringpublic java.lang.String get(java.lang.String name)
IlxWStyleMapget in class IlxWStyleMapname - a non null string.null.public void set(java.lang.String name,
java.lang.String value)
java.lang.IllegalArgumentException - If the value is
null.name - The style name.value - The style value. Must not be null.public void set(java.lang.String name,
boolean value)
The value is converted into a string and calls
setValue(String, String).
public void set(java.lang.String name,
java.awt.Color value)
The value is converted into a string and calls
setValue(String, String).
public void set(java.lang.String name,
int value)
The value is converted into a string and calls
setValue(String, String).
public java.util.Iterator names()
IlxWStyleMapnames in class IlxWStyleMap© Copyright IBM Corp. 1987, 2017