|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.style.CSSAttributeSet
public class CSSAttributeSet
A straightforward implementation of CSSPropertySet using a hash map.
| Field Summary | |
|---|---|
static CSSAttributeSet |
EMPTY_ATTRIBUTESET
Empty immutable attribute set. |
| Constructor Summary | |
|---|---|
CSSAttributeSet()
Creates a new, empty atribute set. |
|
CSSAttributeSet(CSSAttributeSet source)
Creates a new attribute set based on a supplied set of attributes. |
|
CSSAttributeSet(CSSProperty cssProperty,
String cssPropertyValue)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
Object |
clone()
Clones a set of attributes. |
boolean |
contains(CSSProperty name)
Tells whether a given attribute is defined. |
boolean |
equals(Object o)
|
String |
get(CSSProperty property)
Gets the value of an css property. |
int |
hashCode()
|
boolean |
isEmpty()
Checks whether the set of attributes is empty. |
Map<CSSProperty,String> |
properties()
Gets the Set of defined CSS property names. |
String |
put(CSSProperty name,
String value)
Adds an attribute to the list. |
boolean |
putAll(CSSAttributeSet attributes)
Adds a set of attributes to the list. |
String |
remove(CSSProperty name)
Removes an attribute from the list. |
int |
size()
Gets a count of the number of attributes. |
String |
toString()
Converts the attribute set to a String. |
void |
write(Device d)
Write style definition to the device |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CSSAttributeSet EMPTY_ATTRIBUTESET
| Constructor Detail |
|---|
public CSSAttributeSet()
public CSSAttributeSet(CSSProperty cssProperty,
String cssPropertyValue)
public CSSAttributeSet(CSSAttributeSet source)
source - the set of attributes| Method Detail |
|---|
public final boolean isEmpty()
public final int size()
public final void clear()
public final boolean contains(CSSProperty name)
name - the attribute name
public final Map<CSSProperty,String> properties()
CSSProperty for which this CSSAttributeSet contains a value.public final String get(CSSProperty property)
property - the attribute property
public String put(CSSProperty name,
String value)
name - the attribute namevalue - the attribute valuepublic boolean putAll(CSSAttributeSet attributes)
attributes - the set of attributes to addpublic String remove(CSSProperty name)
name - the attribute name
public Object clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void write(Device d)
throws IOException
write in interface RenderableIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||