public class Property extends CSSOMObjectImpl implements CSSFormatable
Constructor and Description |
---|
Property()
Constructor.
|
Property(String name,
org.w3c.dom.css.CSSValue value,
boolean important)
Creates new Property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCssText()
Same as
getCssText(CSSFormat) but using the default format. |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
String |
getName()
Returns the name.
|
org.w3c.dom.css.CSSValue |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
isImportant()
Returns true if the important flag is set.
|
void |
setImportant(boolean important)
Sets the important flag to a new value.
|
void |
setName(String name)
Sets the name to a new value.
|
void |
setValue(org.w3c.dom.css.CSSValue value)
Sets the value to a new value.
|
String |
toString() |
getUserData, getUserDataMap, setUserData, setUserDataMap
public Property(String name, org.w3c.dom.css.CSSValue value, boolean important)
name
- the namevalue
- the valueimportant
- true if the important flag setpublic Property()
public String getName()
public void setName(String name)
name
- the new namepublic org.w3c.dom.css.CSSValue getValue()
public boolean isImportant()
public void setValue(org.w3c.dom.css.CSSValue value)
value
- the new CSSValuepublic void setImportant(boolean important)
important
- the new flag valuepublic String getCssText()
getCssText(CSSFormat)
but using the default format.public String getCssText(CSSFormat format)
getCssText
in interface CSSFormatable
format
- the formatting rulespublic boolean equals(Object obj)
equals
in class CSSOMObjectImpl
public int hashCode()
hashCode
in class CSSOMObjectImpl
Copyright © 1999–2022. All rights reserved.