Top Inners Fields Constructors Methods
com.sun.webkit.dom

public Class CSSStyleDeclarationImpl

extends Object
implements CSSStyleDeclaration
Class Inheritance
All Implemented Interfaces
org.w3c.dom.css.CSSStyleDeclaration
Imports
com.sun.webkit.Disposer, .DisposerRecord, org.w3c.dom.DOMException, org.w3c.dom.css.CSSRule, .CSSStyleDeclaration, .CSSValue

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static CSSStyleDeclaration
create(long peer)

private static native void
dispose(long peer)

public boolean
equals(Object
the reference object with which to compare.
that
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public String
getCssText()

Implements org.w3c.dom.css.CSSStyleDeclaration.getCssText.

The parsable textual representation of the declaration block (excluding the surrounding curly braces).

pack-priv static native String
getCssTextImpl(long peer)

pack-priv static CSSStyleDeclaration
getImpl(long peer)

public int
getLength()

Implements org.w3c.dom.css.CSSStyleDeclaration.getLength.

The number of properties that have been explicitly set in this declaration block.

pack-priv static native int
getLengthImpl(long peer)

public CSSRule
getParentRule()

Implements org.w3c.dom.css.CSSStyleDeclaration.getParentRule.

The CSS rule that contains this declaration block or null if this CSSStyleDeclaration is not attached to a CSSRule.

pack-priv static native long
getParentRuleImpl(long peer)

pack-priv long
pack-priv static long
public CSSValue
getPropertyCSSValue(String
The name of the CSS property. See the CSS property index.
propertyName
)

Implements org.w3c.dom.css.CSSStyleDeclaration.getPropertyCSSValue.

Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block.

pack-priv static native long
getPropertyCSSValueImpl(long peer, String propertyName)

public String
getPropertyPriority(String
The name of the CSS property. See the CSS property index.
propertyName
)

Implements org.w3c.dom.css.CSSStyleDeclaration.getPropertyPriority.

Used to retrieve the priority of a CSS property (e.g. the "important" qualifier) if the priority has been explicitly set in this declaration block.

pack-priv static native String
getPropertyPriorityImpl(long peer, String propertyName)

public String
pack-priv static native String
getPropertyShorthandImpl(long peer, String propertyName)

public String
getPropertyValue(String
The name of the CSS property. See the CSS property index.
propertyName
)

Implements org.w3c.dom.css.CSSStyleDeclaration.getPropertyValue.

Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.

pack-priv static native String
getPropertyValueImpl(long peer, String propertyName)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public boolean
isPropertyImplicit(String propertyName)

pack-priv static native boolean
isPropertyImplicitImpl(long peer, String propertyName)

public String
item(int
Index of the property name to retrieve.
index
)

Implements org.w3c.dom.css.CSSStyleDeclaration.item.

Used to retrieve the properties that have been explicitly set in this declaration block.

pack-priv static native String
itemImpl(long peer, int index)

public String
removeProperty(String
The name of the CSS property. See the CSS property index.
propertyName
)

Implements org.w3c.dom.css.CSSStyleDeclaration.removeProperty.

Used to remove a CSS property if it has been explicitly set within this declaration block.

pack-priv static native String
removePropertyImpl(long peer, String propertyName)

public void
setCssText(String value)

Implements org.w3c.dom.css.CSSStyleDeclaration.setCssText.

The parsable textual representation of the declaration block (excluding the surrounding curly braces).

pack-priv static native void
setCssTextImpl(long peer, String value)

public void
setProperty(String
The name of the CSS property. See the CSS property index.
propertyName
,
String
The new value of the property.
value
,
String
The new priority of the property (e.g. "important") or the empty string if none.
priority
)

Implements org.w3c.dom.css.CSSStyleDeclaration.setProperty.

Used to set a property value and priority within this declaration block.

pack-priv static native void
setPropertyImpl(long peer, String propertyName, String value, String priority)

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
private final long peer

Constructor Detail

CSSStyleDeclarationImplback to summary
pack-priv CSSStyleDeclarationImpl(long peer)

Method Detail

createback to summary
pack-priv static CSSStyleDeclaration create(long peer)
disposeback to summary
private static native void dispose(long peer)
equalsback to summary
public boolean equals(Object that)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
that:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getCssTextback to summary
public String getCssText()

Implements org.w3c.dom.css.CSSStyleDeclaration.getCssText.

Doc from org.w3c.dom.css.CSSStyleDeclaration.getCssText.

The parsable textual representation of the declaration block (excluding the surrounding curly braces). Setting this attribute will result in the parsing of the new value and resetting of all the properties in the declaration block including the removal or addition of properties.

getCssTextImplback to summary
pack-priv static native String getCssTextImpl(long peer)
getImplback to summary
pack-priv static CSSStyleDeclaration getImpl(long peer)
getLengthback to summary
public int getLength()

Implements org.w3c.dom.css.CSSStyleDeclaration.getLength.

Doc from org.w3c.dom.css.CSSStyleDeclaration.getLength.

The number of properties that have been explicitly set in this declaration block. The range of valid indices is 0 to length-1 inclusive.

getLengthImplback to summary
pack-priv static native int getLengthImpl(long peer)
getParentRuleback to summary
public CSSRule getParentRule()

Implements org.w3c.dom.css.CSSStyleDeclaration.getParentRule.

Doc from org.w3c.dom.css.CSSStyleDeclaration.getParentRule.

The CSS rule that contains this declaration block or null if this CSSStyleDeclaration is not attached to a CSSRule.

getParentRuleImplback to summary
pack-priv static native long getParentRuleImpl(long peer)
getPeerback to summary
pack-priv long getPeer()
getPeerback to summary
pack-priv static long getPeer(CSSStyleDeclaration arg)
getPropertyCSSValueback to summary
public CSSValue getPropertyCSSValue(String propertyName)

Implements org.w3c.dom.css.CSSStyleDeclaration.getPropertyCSSValue.

Doc from org.w3c.dom.css.CSSStyleDeclaration.getPropertyCSSValue.

Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. This method returns null if the property is a shorthand property. Shorthand property values can only be accessed and modified as strings, using the getPropertyValue and setProperty methods.

Parameters
propertyName:String

The name of the CSS property. See the CSS property index.

Returns:CSSValue

Returns the value of the property if it has been explicitly set for this declaration block. Returns null if the property has not been set.

getPropertyCSSValueImplback to summary
pack-priv static native long getPropertyCSSValueImpl(long peer, String propertyName)
getPropertyPriorityback to summary
public String getPropertyPriority(String propertyName)

Implements org.w3c.dom.css.CSSStyleDeclaration.getPropertyPriority.

Doc from org.w3c.dom.css.CSSStyleDeclaration.getPropertyPriority.

Used to retrieve the priority of a CSS property (e.g. the "important" qualifier) if the priority has been explicitly set in this declaration block.

Parameters
propertyName:String

The name of the CSS property. See the CSS property index.

Returns:String

A string representing the priority (e.g. "important") if the property has been explicitly set in this declaration block and has a priority specified. The empty string otherwise.

getPropertyPriorityImplback to summary
pack-priv static native String getPropertyPriorityImpl(long peer, String propertyName)
getPropertyShorthandback to summary
public String getPropertyShorthand(String propertyName)
getPropertyShorthandImplback to summary
pack-priv static native String getPropertyShorthandImpl(long peer, String propertyName)
getPropertyValueback to summary
public String getPropertyValue(String propertyName)

Implements org.w3c.dom.css.CSSStyleDeclaration.getPropertyValue.

Doc from org.w3c.dom.css.CSSStyleDeclaration.getPropertyValue.

Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.

Parameters
propertyName:String

The name of the CSS property. See the CSS property index.

Returns:String

Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set.

getPropertyValueImplback to summary
pack-priv static native String getPropertyValueImpl(long peer, String propertyName)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
isPropertyImplicitback to summary
public boolean isPropertyImplicit(String propertyName)
isPropertyImplicitImplback to summary
pack-priv static native boolean isPropertyImplicitImpl(long peer, String propertyName)
itemback to summary
public String item(int index)

Implements org.w3c.dom.css.CSSStyleDeclaration.item.

Doc from org.w3c.dom.css.CSSStyleDeclaration.item.

Used to retrieve the properties that have been explicitly set in this declaration block. The order of the properties retrieved using this method does not have to be the order in which they were set. This method can be used to iterate over all properties in this declaration block.

Parameters
index:int

Index of the property name to retrieve.

Returns:String

The name of the property at this ordinal position. The empty string if no property exists at this position.

itemImplback to summary
pack-priv static native String itemImpl(long peer, int index)
removePropertyback to summary
public String removeProperty(String propertyName) throws DOMException

Implements org.w3c.dom.css.CSSStyleDeclaration.removeProperty.

Doc from org.w3c.dom.css.CSSStyleDeclaration.removeProperty.

Used to remove a CSS property if it has been explicitly set within this declaration block.

Parameters
propertyName:String

The name of the CSS property. See the CSS property index.

Returns:String

Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set or the property name does not correspond to a known CSS property.

Exceptions
DOMException:
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or the property is readonly.
removePropertyImplback to summary
pack-priv static native String removePropertyImpl(long peer, String propertyName)
setCssTextback to summary
public void setCssText(String value) throws DOMException

Implements org.w3c.dom.css.CSSStyleDeclaration.setCssText.

Doc from org.w3c.dom.css.CSSStyleDeclaration.setCssText.

The parsable textual representation of the declaration block (excluding the surrounding curly braces). Setting this attribute will result in the parsing of the new value and resetting of all the properties in the declaration block including the removal or addition of properties.

Exceptions
DOMException:
SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or a property is readonly.
setCssTextImplback to summary
pack-priv static native void setCssTextImpl(long peer, String value)
setPropertyback to summary
public void setProperty(String propertyName, String value, String priority) throws DOMException

Implements org.w3c.dom.css.CSSStyleDeclaration.setProperty.

Doc from org.w3c.dom.css.CSSStyleDeclaration.setProperty.

Used to set a property value and priority within this declaration block. setProperty permits to modify a property or add a new one in the declaration block. Any call to this method may modify the order of properties in the item method.

Parameters
propertyName:String

The name of the CSS property. See the CSS property index.

value:String

The new value of the property.

priority:String

The new priority of the property (e.g. "important") or the empty string if none.

Exceptions
DOMException:
SYNTAX_ERR: Raised if the specified value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or the property is readonly.
setPropertyImplback to summary
pack-priv static native void setPropertyImpl(long peer, String propertyName, String value, String priority)
com.sun.webkit.dom back to summary

private Class CSSStyleDeclarationImpl.SelfDisposer

extends Object
implements DisposerRecord
Class Inheritance
All Implemented Interfaces
com.sun.webkit.DisposerRecord

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
SelfDisposer(final long peer)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
private final long peer

Constructor Detail

SelfDisposerback to summary
pack-priv SelfDisposer(final long peer)

Method Detail

disposeback to summary
public void dispose()

Implements com.sun.webkit.DisposerRecord.dispose.