@DOMObjectAttribute @DOMNameAttribute(name="CSSValue") public abstract class CSSValue extends DOMObject
Represents a simple or a complex value. A CSSValue object only occurs in a context of a CSS property.
Modifier and Type | Field and Description |
---|---|
static int |
CSS_CUSTOM
The value is a custom value.
|
static int |
CSS_INHERIT
The value is inherited and the cssText contains "inherit".
|
static int |
CSS_PRIMITIVE_VALUE
The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
|
static int |
CSS_VALUE_LIST
The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
|
PropertyChanged, PropertyChangedDelegate
Modifier | Constructor and Description |
---|---|
protected |
CSSValue(int valueType)
Initializes a new instance of the
CSSValue class. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
equals(CSSValue obj)
Determines whether the specified object is equal to this instance.
|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object is equal to this instance. |
abstract java.lang.String |
getCSSText()
A string representation of the current value.
|
int |
getCSSValueType()
A code defining the type of the value.
|
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(CSSValue left,
CSSValue right)
Implements the operator ==.
|
static boolean |
op_Inequality(CSSValue left,
CSSValue right)
Implements the operator !
|
abstract void |
setCSSText(java.lang.String value)
A string representation of the current value.
|
java.lang.String |
toString()
Returns a
String that represents this instance. |
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public static final int CSS_INHERIT
The value is inherited and the cssText contains "inherit".
public static final int CSS_PRIMITIVE_VALUE
The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
public static final int CSS_VALUE_LIST
The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
public static final int CSS_CUSTOM
The value is a custom value.
protected CSSValue(int valueType)
Initializes a new instance of the CSSValue
class.
valueType
- Type of the value.public static boolean op_Equality(CSSValue left, CSSValue right)
Implements the operator ==.
left
- The left element.right
- The right element.public static boolean op_Inequality(CSSValue left, CSSValue right)
Implements the operator !=.
left
- The left element.right
- The right element.@DOMNameAttribute(name="cssText") public abstract java.lang.String getCSSText()
A string representation of the current value.
Value: The CSS text.@DOMNameAttribute(name="cssText") public abstract void setCSSText(java.lang.String value)
A string representation of the current value.
Value: The CSS text.@DOMNameAttribute(name="cssValueType") public int getCSSValueType()
A code defining the type of the value.
Value: The type of the CSS value.public java.lang.String toString()
Returns a String
that represents this instance.
toString
in class java.lang.Object
String
that represents this instance.protected boolean equals(CSSValue obj)
Determines whether the specified object is equal to this instance.
obj
- The object to compare with this instance.true
if the specified CSSValue
is equal to this instance; otherwise, false
.public boolean equals(java.lang.Object obj)
Determines whether the specified Object
is equal to this instance.
equals
in class java.lang.Object
obj
- The Object
to compare with this instance.true
if the specified Object
is equal to this instance; otherwise, false
.com.aspose.ms.System.NullReferenceException
- The obj
parameter is null.public int hashCode()
Returns a hash code for this instance.
hashCode
in class java.lang.Object