|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DynamicObject
ice.storm.DynamicList
ice.pilots.html4.DStyleDeclaration
| Field Summary |
| Fields inherited from class ice.storm.DynamicObject |
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK |
| Constructor Summary | |
protected |
DStyleDeclaration(DOM dom,
DCSSRule parentRule,
DElement e)
|
| Method Summary | |
protected void |
dispatchDOMEvent(short type,
String name,
String value)
Utility to dispatch the CSSModified MutationEvent on Element closest to this rule. |
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
protected Object[] |
getCSSDeclFields(String propName)
|
String |
getCssText()
The parsable textual representation of the declaration block (excluding the surrounding curly braces). |
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
int |
getLength()
The number of properties that have been explicitly set in this declaration block. |
CSSRule |
getParentRule()
The CSS rule that contains this declaration block or null
if this CSSStyleDeclaration is not attached to a
CSSRule. |
CSSValue |
getPropertyCSSValue(String propertyName)
Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. |
String |
getPropertyPriority(String propertyName)
Used to retrieve the priority of a CSS property (e.g. |
String |
getPropertyValue(String propertyName)
Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block. |
String |
item(int idx)
Used to retrieve the properties that have been explicitly set in this declaration block. |
String |
removeProperty(String propertyName)
Used to remove a CSS property if it has been explicitly set within this declaration block. |
protected Object |
script_item(int index,
DynEnv env)
Returns null if not found |
protected Object |
script_namedItem(String name,
DynEnv env)
Returns null if not found |
void |
setCssText(String cssText)
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
void |
setProperty(String propertyName,
String value,
String priority)
Used to set a property value and priority within this declaration block. |
void |
setSlot(String name,
Object value,
DynEnv env)
Set named slot to `value'. |
String |
toString()
|
protected void |
updateCSSDecl(String propName,
Object value,
int type)
|
| Methods inherited from class ice.storm.DynamicList |
getEnumeratableIds, getMethodPropertySource, getSlot, getSlot, script_tags |
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, deleteSlot, getDynamicScopeParent, getScriptDataLock, getScriptWrapper, hasSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot, unlinkAllSlots |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected DStyleDeclaration(DOM dom,
DCSSRule parentRule,
DElement e)
| Method Detail |
public String getCssText()
CSSStyleDeclaration
getCssText in interface CSSStyleDeclarationpublic void setCssText(String cssText)
setCssText in interface CSSStyleDeclarationpublic String getPropertyValue(String propertyName)
CSSStyleDeclaration
getPropertyValue in interface CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS property
index.
public CSSValue getPropertyCSSValue(String propertyName)
CSSStyleDeclarationnull if the property is a shorthand
property. Shorthand property values can only be accessed and modified
as strings, using the getPropertyValue and
setProperty methods.
getPropertyCSSValue in interface CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS property
index.
null if the
property has not been set.protected Object[] getCSSDeclFields(String propName)
protected void updateCSSDecl(String propName,
Object value,
int type)
public String removeProperty(String propertyName)
CSSStyleDeclaration
removeProperty in interface CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS property
index.
public String getPropertyPriority(String propertyName)
CSSStyleDeclaration"important" qualifier) if the property has been
explicitly set in this declaration block.
getPropertyPriority in interface CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS property
index.
"important") if one exists. The empty string if none
exists.
public void setProperty(String propertyName,
String value,
String priority)
CSSStyleDeclaration
setProperty in interface CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS property
index.value - The new value of the property.priority - The new priority of the property (e.g.
"important").public int getLength()
CSSStyleDeclaration
getLength in interface CSSStyleDeclarationgetLength in class DynamicListpublic String item(int idx)
CSSStyleDeclaration
item in interface CSSStyleDeclarationidx - Index of the property name to retrieve.
protected Object script_item(int index,
DynEnv env)
DynamicList
script_item in class DynamicListpublic CSSRule getParentRule()
CSSStyleDeclarationnull
if this CSSStyleDeclaration is not attached to a
CSSRule.
getParentRule in interface CSSStyleDeclaration
protected Object script_namedItem(String name,
DynEnv env)
DynamicList
script_namedItem in class DynamicList
public void setSlot(String name,
Object value,
DynEnv env)
DynamicObject
setSlot in class DynamicObjectpublic String toString()
protected final void dispatchDOMEvent(short type,
String name,
String value)
type - The exact type of style-changename - The name of the style which was affectedvalue - The new value
public Object getDynamicValue(String name,
DynEnv env)
DynamicObject
getDynamicValue in class DynamicList
public int setDynamicValue(String name,
Object value,
DynEnv env)
DynamicObject
setDynamicValue in class DynamicList
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
DynamicObject
execDynamicMethod in class DynamicList
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||