public class CSSStyleDeclaration extends SimpleScriptable implements ScriptableWithFallbackGetter
CSSStyleDeclaration.| Modifier and Type | Class and Description |
|---|---|
protected static class |
CSSStyleDeclaration.CssValue
Encapsulates the retrieval of a style attribute, given a DOM element from which to retrieve it.
|
protected static class |
CSSStyleDeclaration.StyleElement
Contains information about a single style element, including its name, its value, and an index which
can be compared against other indices in order to determine precedence.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
PRIORITY_IMPORTANT
CSS important property constant.
|
| Constructor and Description |
|---|
CSSStyleDeclaration()
Creates an instance.
|
CSSStyleDeclaration(Element element)
Creates an instance and sets its parent scope to the one of the provided element.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
camelize(String string)
Transforms the specified string from delimiter-separated (e.g.
|
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
Object |
get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Gets a named property from the object.
|
String |
getAccelerator()
Gets the
accelerator style attribute. |
Object |
getAttribute(String name,
int flag)
Returns the value of the specified attribute, or an empty string if it does not exist.
|
String |
getBackgroundAttachment()
Gets the
backgroundAttachment style attribute. |
String |
getBackgroundColor()
Gets the
backgroundColor style attribute. |
String |
getBackgroundImage()
Gets the
backgroundImage style attribute. |
String |
getBackgroundPosition()
Gets the
backgroundPosition style attribute. |
String |
getBackgroundRepeat()
Gets the
backgroundRepeat style attribute. |
String |
getBorderBottomColor()
Gets the
borderBottomColor style attribute. |
String |
getBorderBottomStyle()
Gets the
borderBottomStyle style attribute. |
String |
getBorderBottomWidth()
Gets the
borderBottomWidth style attribute. |
String |
getBorderLeftColor()
Gets the
borderLeftColor style attribute. |
String |
getBorderLeftStyle()
Gets the
borderLeftStyle style attribute. |
String |
getBorderLeftWidth()
Gets the
borderLeftWidth style attribute. |
String |
getBorderRightColor()
Gets the
borderRightColor style attribute. |
String |
getBorderRightStyle()
Gets the
borderRightStyle style attribute. |
String |
getBorderRightWidth()
Gets the
borderRightWidth style attribute. |
String |
getBorderTopColor()
Gets the
borderTopColor style attribute. |
String |
getBorderTopStyle()
Gets the
borderTopStyle style attribute. |
String |
getBorderTopWidth()
Gets the
borderTopWidth style attribute. |
String |
getBottom()
Gets the
bottom style attribute. |
String |
getColor()
Gets the
color style attribute. |
String |
getCssFloat()
Gets the
cssFloat style attribute. |
String |
getCssText()
Returns the actual text of the style.
|
protected long |
getCurrentElementIndex()
Returns the current style element index.
|
String |
getDisplay()
Gets the
display style attribute. |
protected Element |
getElement()
Returns the element to which this style belongs.
|
String |
getFont()
Gets the
font style attribute. |
String |
getFontFamily()
Gets the
fontFamily style attribute. |
String |
getFontSize()
Gets the
fontSize style attribute. |
String |
getHeight()
Gets the
height style attribute. |
Object[] |
getIds() |
String |
getLeft()
Gets the
left style attribute. |
int |
getLength()
Returns the
length property. |
String |
getLetterSpacing()
Gets the
letterSpacing style attribute. |
String |
getLineHeight()
Gets the
lineHeight style attribute. |
String |
getMargin()
Gets the
margin style attribute. |
String |
getMarginBottom()
Gets the
marginBottom style attribute. |
String |
getMarginLeft()
Gets the
marginLeft style attribute. |
String |
getMarginRight()
Gets the
marginRight style attribute. |
String |
getMarginTop()
Gets the
marginTop style attribute. |
String |
getMaxHeight()
Gets the
maxHeight style attribute. |
String |
getMaxWidth()
Gets the
maxWidth style attribute. |
String |
getMinHeight()
Gets the
minHeight style attribute. |
String |
getMinWidth()
Gets the
minWidth style attribute. |
String |
getOpacity()
Gets the
opacity style attribute. |
String |
getOrphans()
Gets the
orphans style attribute. |
String |
getOutline()
Gets the
outline style attribute. |
String |
getOutlineWidth()
Gets the
outlineWidth style attribute. |
String |
getPadding()
Gets the
padding style attribute. |
String |
getPaddingBottom()
Gets the
paddingBottom style attribute. |
String |
getPaddingLeft()
Gets the
paddingLeft style attribute. |
String |
getPaddingRight()
Gets the
paddingRight style attribute. |
String |
getPaddingTop()
Gets the
paddingTop style attribute. |
String |
getPage()
Gets the
page style attribute. |
int |
getPixelBottom()
Gets the
pixelBottom style attribute. |
int |
getPixelHeight()
Gets the
pixelHeight style attribute. |
int |
getPixelLeft()
Gets the
pixelLeft style attribute. |
int |
getPixelRight()
Gets the
pixelRight style attribute. |
int |
getPixelTop()
Gets the
pixelTop style attribute. |
int |
getPixelWidth()
Gets the
pixelWidth style attribute. |
int |
getPosBottom()
Gets the
posBottom style attribute. |
int |
getPosHeight()
Gets the
posHeight style attribute. |
String |
getPosition()
Gets the
position style attribute. |
int |
getPosLeft()
Gets the
posLeft style attribute. |
int |
getPosRight()
Gets the
posRight style attribute. |
int |
getPosTop()
Gets the
posTop style attribute. |
int |
getPosWidth()
Gets the
posWidth style attribute. |
CSSValue |
getPropertyCSSValue(String name)
Gets the CSS property value.
|
String |
getPropertyPriority(String name)
Gets the value of the specified property of the style.
|
String |
getPropertyValue(String name)
Gets the value of the specified property of the style.
|
String |
getRight()
Gets the
right style attribute. |
String |
getRubyAlign()
Gets the
rubyAlign style attribute. |
String |
getSize()
Gets the
size style attribute. |
String |
getStyleAttribute(StyleAttributes.Definition definition)
Get the value for the style attribute.
|
String |
getStyleAttribute(StyleAttributes.Definition definition,
boolean getDefaultValueIfEmpty)
Get the value for the style attribute.
|
protected CSSStyleDeclaration.StyleElement |
getStyleElement(String name)
Determines the StyleElement for the given name.
|
protected String |
getStylePriority(String name)
Returns the priority of the named style attribute, or an empty string if it is not found.
|
boolean |
getTextDecorationBlink()
Gets the
textDecorationBlink style attribute. |
boolean |
getTextDecorationLineThrough()
Gets the
textDecorationLineThrough style attribute. |
boolean |
getTextDecorationNone()
Gets the
textDecorationNone style attribute. |
boolean |
getTextDecorationOverline()
Gets the
textDecorationOverline style attribute. |
boolean |
getTextDecorationUnderline()
Gets the
textDecorationUnderline style attribute. |
String |
getTextIndent()
Gets the
textIndent style attribute. |
String |
getTop()
Gets the
top style attribute. |
String |
getVerticalAlign()
Gets the
verticalAlign style attribute. |
String |
getWidows()
Gets the
widows style attribute. |
String |
getWidth()
Gets the
width style attribute. |
Object |
getWithFallback(String name)
IE makes unknown style properties accessible.
|
String |
getWordSpacing()
Gets the
wordSpacing style attribute. |
Object |
getZIndex()
Gets the
zIndex style attribute. |
boolean |
has(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
protected static int |
pixelValue(Element element,
CSSStyleDeclaration.CssValue value)
Converts the specified length CSS attribute value into an integer number of pixels.
|
protected static int |
pixelValue(String value)
Converts the specified length string value into an integer number of pixels.
|
void |
put(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value) |
boolean |
removeAttribute(String name,
Object flag)
Removes the specified attribute.
|
String |
removeProperty(Object name)
Removes the named property.
|
void |
setAccelerator(String accelerator)
Sets the
accelerator style attribute. |
void |
setAttribute(String name,
String value,
Object flag)
Sets the value of the specified attribute.
|
void |
setBackgroundAttachment(String backgroundAttachment)
Sets the
backgroundAttachment style attribute. |
void |
setBackgroundColor(String backgroundColor)
Sets the
backgroundColor style attribute. |
void |
setBackgroundImage(String backgroundImage)
Sets the
backgroundImage style attribute. |
void |
setBackgroundPosition(String backgroundPosition)
Sets the
backgroundPosition style attribute. |
void |
setBackgroundRepeat(String backgroundRepeat)
Sets the
backgroundRepeat style attribute. |
void |
setBorderBottomColor(String borderBottomColor)
Sets the
borderBottomColor style attribute. |
void |
setBorderBottomStyle(String borderBottomStyle)
Sets the
borderBottomStyle style attribute. |
void |
setBorderBottomWidth(String borderBottomWidth)
Sets the
borderBottomWidth style attribute. |
void |
setBorderLeftColor(String borderLeftColor)
Sets the
borderLeftColor style attribute. |
void |
setBorderLeftStyle(String borderLeftStyle)
Sets the
borderLeftStyle style attribute. |
void |
setBorderLeftWidth(String borderLeftWidth)
Sets the
borderLeftWidth style attribute. |
void |
setBorderRightColor(String borderRightColor)
Sets the
borderRightColor style attribute. |
void |
setBorderRightStyle(String borderRightStyle)
Sets the
borderRightStyle style attribute. |
void |
setBorderRightWidth(String borderRightWidth)
Sets the
borderRightWidth style attribute. |
void |
setBorderTop(String borderTop)
Sets the
borderTop style attribute. |
void |
setBorderTopColor(String borderTopColor)
Sets the
borderTopColor style attribute. |
void |
setBorderTopStyle(String borderTopStyle)
Sets the
borderTopStyle style attribute. |
void |
setBorderTopWidth(String borderTopWidth)
Sets the
borderTopWidth style attribute. |
void |
setBottom(String bottom)
Sets the
bottom style attribute. |
void |
setColor(String color)
Sets the
color style attribute. |
void |
setCssFloat(String value)
Sets the
cssFloat style attribute. |
void |
setCssText(String value)
Sets the actual text of the style.
|
void |
setDisplay(String display)
Sets the
display style attribute. |
void |
setFont(String font)
Sets the
font style attribute. |
void |
setFontFamily(String fontFamily)
Sets the
fontFamily style attribute. |
void |
setFontSize(String fontSize)
Sets the
fontSize style attribute. |
void |
setHeight(String height)
Sets the
height style attribute. |
void |
setLeft(String left)
Sets the
left style attribute. |
void |
setLetterSpacing(String letterSpacing)
Sets the
letterSpacing style attribute. |
void |
setLineHeight(String lineHeight)
Sets the
lineHeight style attribute. |
void |
setMargin(String margin)
Sets the
margin style attribute. |
void |
setMarginBottom(String marginBottom)
Sets the
marginBottom style attribute. |
void |
setMarginLeft(String marginLeft)
Sets the
marginLeft style attribute. |
void |
setMarginRight(String marginRight)
Sets the
marginRight style attribute. |
void |
setMarginTop(String marginTop)
Sets the
marginTop style attribute. |
void |
setMaxHeight(String maxHeight)
Sets the
maxHeight style attribute. |
void |
setMaxWidth(String maxWidth)
Sets the
maxWidth style attribute. |
void |
setMinHeight(String minHeight)
Sets the
minHeight style attribute. |
void |
setMinWidth(String minWidth)
Sets the
minWidth style attribute. |
void |
setMsImeAlign(String msImeAlign)
Sets the
msImeAlign style attribute. |
void |
setOpacity(String opacity)
Sets the
opacity style attribute. |
void |
setOrphans(String orphans)
Sets the
orphans style attribute. |
void |
setOutline(String outline)
Sets the
outline style attribute. |
void |
setOutlineWidth(String outlineWidth)
Sets the
outlineWidth style attribute. |
void |
setPadding(String padding)
Sets the
padding style attribute. |
void |
setPaddingBottom(String paddingBottom)
Sets the
paddingBottom style attribute. |
void |
setPaddingLeft(String paddingLeft)
Sets the
paddingLeft style attribute. |
void |
setPaddingRight(String paddingRight)
Sets the
paddingRight style attribute. |
void |
setPaddingTop(String paddingTop)
Sets the
paddingTop style attribute. |
void |
setPage(String page)
Sets the
page style attribute. |
void |
setPixelBottom(int pixelBottom)
Sets the
pixelBottom style attribute. |
void |
setPixelHeight(int pixelHeight)
Sets the
pixelHeight style attribute. |
void |
setPixelLeft(int pixelLeft)
Sets the
pixelLeft style attribute. |
void |
setPixelRight(int pixelRight)
Sets the
pixelRight style attribute. |
void |
setPixelTop(int pixelTop)
Sets the
pixelTop style attribute. |
void |
setPixelWidth(int pixelWidth)
Sets the
pixelWidth style attribute. |
void |
setPosBottom(int posBottom)
Sets the
posBottom style attribute. |
void |
setPosHeight(int posHeight)
Sets the
posHeight style attribute. |
void |
setPosition(String position)
Sets the
position style attribute. |
void |
setPosLeft(int posLeft)
Sets the
posLeft style attribute. |
void |
setPosRight(int posRight)
Sets the
posRight style attribute. |
void |
setPosTop(int posTop)
Sets the
posTop style attribute. |
void |
setPosWidth(int posWidth)
Sets the
posWidth style attribute. |
void |
setProperty(String name,
Object value,
String important)
Sets the value of the specified property.
|
void |
setRight(String right)
Sets the
right style attribute. |
void |
setRubyAlign(String rubyAlign)
Sets the
rubyAlign style attribute. |
void |
setSize(String size)
Sets the
size style attribute. |
protected void |
setStyleAttribute(String name,
String newValue)
Sets the specified style attribute.
|
protected void |
setStyleAttribute(String name,
String newValue,
String important)
Sets the specified style attribute.
|
void |
setTextDecorationBlink(boolean textDecorationBlink)
Sets the
textDecorationBlink style attribute. |
void |
setTextDecorationLineThrough(boolean textDecorationLineThrough)
Sets the
textDecorationLineThrough style attribute. |
void |
setTextDecorationNone(boolean textDecorationNone)
Sets the
textDecorationNone style attribute. |
void |
setTextDecorationOverline(boolean textDecorationOverline)
Sets the
textDecorationOverline style attribute. |
void |
setTextDecorationUnderline(boolean textDecorationUnderline)
Sets the
textDecorationUnderline style attribute. |
void |
setTextIndent(String textIndent)
Sets the
textIndent style attribute. |
void |
setTop(String top)
Sets the
top style attribute. |
void |
setVerticalAlign(String verticalAlign)
Sets the
verticalAlign style attribute. |
void |
setWidows(String widows)
Sets the
widows style attribute. |
void |
setWidth(String width)
Sets the
width style attribute. |
void |
setWordSpacing(String wordSpacing)
Sets the
wordSpacing style attribute. |
void |
setZIndex(Object zIndex)
Sets the
zIndex style attribute. |
static String |
toRGBColor(String color)
Gets the RGB equivalent of a CSS color if the provided color is recognized.
|
String |
toString() |
clone, equivalentValues, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizeprotected static final String PRIORITY_IMPORTANT
public CSSStyleDeclaration()
public CSSStyleDeclaration(Element element)
element - the element to which this style is boundpublic Object getWithFallback(String name)
getWithFallback in interface ScriptableWithFallbackGettername - the name of the requested propertyScriptable.NOT_FOUND if nothing is foundprotected Element getElement()
protected String getStylePriority(String name)
name - the name of the style attribute whose value is to be retrievedprotected CSSStyleDeclaration.StyleElement getStyleElement(String name)
name - the name of the requested StyleElementprotected void setStyleAttribute(String name, String newValue)
name - the attribute name (camel-cased)newValue - the attribute valueprotected void setStyleAttribute(String name, String newValue, String important)
name - the attribute name (camel-cased)newValue - the attribute valueimportant - important valueprotected long getCurrentElementIndex()
protected static final String camelize(String string)
string - the string to camelizeDOMStringMap.decamelize(String)public String getAccelerator()
accelerator style attribute.public void setAccelerator(String accelerator)
accelerator style attribute.accelerator - the new attributepublic String getBackgroundAttachment()
backgroundAttachment style attribute.public void setBackgroundAttachment(String backgroundAttachment)
backgroundAttachment style attribute.backgroundAttachment - the new attributepublic String getBackgroundColor()
backgroundColor style attribute.public void setBackgroundColor(String backgroundColor)
backgroundColor style attribute.backgroundColor - the new attributepublic String getBackgroundImage()
backgroundImage style attribute.public void setBackgroundImage(String backgroundImage)
backgroundImage style attribute.backgroundImage - the new attributepublic String getBackgroundPosition()
backgroundPosition style attribute.public void setBackgroundPosition(String backgroundPosition)
backgroundPosition style attribute.backgroundPosition - the new attributepublic String getBackgroundRepeat()
backgroundRepeat style attribute.public void setBackgroundRepeat(String backgroundRepeat)
backgroundRepeat style attribute.backgroundRepeat - the new attributepublic String getBorderBottomColor()
borderBottomColor style attribute.public void setBorderBottomColor(String borderBottomColor)
borderBottomColor style attribute.borderBottomColor - the new attributepublic String getBorderBottomStyle()
borderBottomStyle style attribute.public void setBorderBottomStyle(String borderBottomStyle)
borderBottomStyle style attribute.borderBottomStyle - the new attributepublic String getBorderBottomWidth()
borderBottomWidth style attribute.public void setBorderBottomWidth(String borderBottomWidth)
borderBottomWidth style attribute.borderBottomWidth - the new attributepublic String getBorderLeftColor()
borderLeftColor style attribute.public void setBorderLeftColor(String borderLeftColor)
borderLeftColor style attribute.borderLeftColor - the new attributepublic String getBorderLeftStyle()
borderLeftStyle style attribute.public void setBorderLeftStyle(String borderLeftStyle)
borderLeftStyle style attribute.borderLeftStyle - the new attributepublic String getBorderLeftWidth()
borderLeftWidth style attribute.public void setBorderLeftWidth(String borderLeftWidth)
borderLeftWidth style attribute.borderLeftWidth - the new attributepublic String getBorderRightColor()
borderRightColor style attribute.public void setBorderRightColor(String borderRightColor)
borderRightColor style attribute.borderRightColor - the new attributepublic String getBorderRightStyle()
borderRightStyle style attribute.public void setBorderRightStyle(String borderRightStyle)
borderRightStyle style attribute.borderRightStyle - the new attributepublic String getBorderRightWidth()
borderRightWidth style attribute.public void setBorderRightWidth(String borderRightWidth)
borderRightWidth style attribute.borderRightWidth - the new attributepublic void setBorderTop(String borderTop)
borderTop style attribute.borderTop - the new attributepublic String getBorderTopColor()
borderTopColor style attribute.public void setBorderTopColor(String borderTopColor)
borderTopColor style attribute.borderTopColor - the new attributepublic String getBorderTopStyle()
borderTopStyle style attribute.public void setBorderTopStyle(String borderTopStyle)
borderTopStyle style attribute.borderTopStyle - the new attributepublic String getBorderTopWidth()
borderTopWidth style attribute.public void setBorderTopWidth(String borderTopWidth)
borderTopWidth style attribute.borderTopWidth - the new attributepublic String getBottom()
bottom style attribute.public void setBottom(String bottom)
bottom style attribute.bottom - the new attributepublic String getColor()
color style attribute.public void setColor(String color)
color style attribute.color - the new attributepublic String getCssFloat()
cssFloat style attribute.public void setCssFloat(String value)
cssFloat style attribute.value - the new attributepublic String getCssText()
public void setCssText(String value)
value - the new textpublic String getDisplay()
display style attribute.public void setDisplay(String display)
display style attribute.display - the new attributepublic String getFontSize()
fontSize style attribute.public void setFontSize(String fontSize)
fontSize style attribute.fontSize - the new attributepublic String getLineHeight()
lineHeight style attribute.public void setLineHeight(String lineHeight)
lineHeight style attribute.lineHeight - the new attributepublic String getFontFamily()
fontFamily style attribute.public void setFontFamily(String fontFamily)
fontFamily style attribute.fontFamily - the new attributepublic String getFont()
font style attribute.public void setFont(String font)
font style attribute.font - the new attributepublic String getHeight()
height style attribute.public void setHeight(String height)
height style attribute.height - the new attributepublic String getLeft()
left style attribute.public void setLeft(String left)
left style attribute.left - the new attributepublic int getLength()
length property.length propertypublic String getLetterSpacing()
letterSpacing style attribute.public void setLetterSpacing(String letterSpacing)
letterSpacing style attribute.letterSpacing - the new attributepublic String getMargin()
margin style attribute.public void setMargin(String margin)
margin style attribute.margin - the new attributepublic String getMarginBottom()
marginBottom style attribute.public void setMarginBottom(String marginBottom)
marginBottom style attribute.marginBottom - the new attributepublic String getMarginLeft()
marginLeft style attribute.public void setMarginLeft(String marginLeft)
marginLeft style attribute.marginLeft - the new attributepublic String getMarginRight()
marginRight style attribute.public void setMarginRight(String marginRight)
marginRight style attribute.marginRight - the new attributepublic String getMarginTop()
marginTop style attribute.public void setMarginTop(String marginTop)
marginTop style attribute.marginTop - the new attributepublic String getMaxHeight()
maxHeight style attribute.public void setMaxHeight(String maxHeight)
maxHeight style attribute.maxHeight - the new attributepublic String getMaxWidth()
maxWidth style attribute.public void setMaxWidth(String maxWidth)
maxWidth style attribute.maxWidth - the new attributepublic String getMinHeight()
minHeight style attribute.public void setMinHeight(String minHeight)
minHeight style attribute.minHeight - the new attributepublic String getMinWidth()
minWidth style attribute.public void setMinWidth(String minWidth)
minWidth style attribute.minWidth - the new attributepublic Object get(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
SimpleScriptable.getWithPreemption(String).
For fallback case just implement ScriptableWithFallbackGetter.
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class SimpleScriptablepublic Object get(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableget in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic final String getStyleAttribute(StyleAttributes.Definition definition)
definition - the definitionpublic String getStyleAttribute(StyleAttributes.Definition definition, boolean getDefaultValueIfEmpty)
definition - the definitiongetDefaultValueIfEmpty - whether to get the default value if empty or notpublic void put(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start, Object value)
put in interface net.sourceforge.htmlunit.corejs.javascript.Scriptableput in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic boolean has(String name, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
has in interface net.sourceforge.htmlunit.corejs.javascript.Scriptablehas in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic Object[] getIds()
getIds in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetIds in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic void setMsImeAlign(String msImeAlign)
msImeAlign style attribute.msImeAlign - the new attributepublic String getOpacity()
opacity style attribute.public void setOpacity(String opacity)
opacity style attribute.opacity - the new attributepublic String getOutline()
outline style attribute.public void setOutline(String outline)
outline style attribute.outline - the new attributepublic String getOutlineWidth()
outlineWidth style attribute.public void setOutlineWidth(String outlineWidth)
outlineWidth style attribute.outlineWidth - the new attributepublic String getPadding()
padding style attribute.public void setPadding(String padding)
padding style attribute.padding - the new attributepublic String getPaddingBottom()
paddingBottom style attribute.public void setPaddingBottom(String paddingBottom)
paddingBottom style attribute.paddingBottom - the new attributepublic String getPaddingLeft()
paddingLeft style attribute.public void setPaddingLeft(String paddingLeft)
paddingLeft style attribute.paddingLeft - the new attributepublic String getPaddingRight()
paddingRight style attribute.public void setPaddingRight(String paddingRight)
paddingRight style attribute.paddingRight - the new attributepublic String getPaddingTop()
paddingTop style attribute.public void setPaddingTop(String paddingTop)
paddingTop style attribute.paddingTop - the new attributepublic String getPage()
page style attribute.public void setPage(String page)
page style attribute.page - the new attributepublic int getPixelBottom()
pixelBottom style attribute.public void setPixelBottom(int pixelBottom)
pixelBottom style attribute.pixelBottom - the new attributepublic int getPixelHeight()
pixelHeight style attribute.public void setPixelHeight(int pixelHeight)
pixelHeight style attribute.pixelHeight - the new attributepublic int getPixelLeft()
pixelLeft style attribute.public void setPixelLeft(int pixelLeft)
pixelLeft style attribute.pixelLeft - the new attributepublic int getPixelRight()
pixelRight style attribute.public void setPixelRight(int pixelRight)
pixelRight style attribute.pixelRight - the new attributepublic int getPixelTop()
pixelTop style attribute.public void setPixelTop(int pixelTop)
pixelTop style attribute.pixelTop - the new attributepublic int getPixelWidth()
pixelWidth style attribute.public void setPixelWidth(int pixelWidth)
pixelWidth style attribute.pixelWidth - the new attributepublic int getPosBottom()
posBottom style attribute.public void setPosBottom(int posBottom)
posBottom style attribute.posBottom - the new attributepublic int getPosHeight()
posHeight style attribute.public void setPosHeight(int posHeight)
posHeight style attribute.posHeight - the new attributepublic int getPosLeft()
posLeft style attribute.public void setPosLeft(int posLeft)
posLeft style attribute.posLeft - the new attributepublic int getPosRight()
posRight style attribute.public void setPosRight(int posRight)
posRight style attribute.posRight - the new attributepublic int getPosTop()
posTop style attribute.public void setPosTop(int posTop)
posTop style attribute.posTop - the new attributepublic int getPosWidth()
posWidth style attribute.public void setPosWidth(int posWidth)
posWidth style attribute.posWidth - the new attributepublic String getRight()
right style attribute.public void setRight(String right)
right style attribute.right - the new attributepublic String getRubyAlign()
rubyAlign style attribute.public void setRubyAlign(String rubyAlign)
rubyAlign style attribute.rubyAlign - the new attributepublic String getSize()
size style attribute.public void setSize(String size)
size style attribute.size - the new attributepublic boolean getTextDecorationBlink()
textDecorationBlink style attribute.public void setTextDecorationBlink(boolean textDecorationBlink)
textDecorationBlink style attribute.textDecorationBlink - the new attributepublic boolean getTextDecorationLineThrough()
textDecorationLineThrough style attribute.public void setTextDecorationLineThrough(boolean textDecorationLineThrough)
textDecorationLineThrough style attribute.textDecorationLineThrough - the new attributepublic boolean getTextDecorationNone()
textDecorationNone style attribute.public void setTextDecorationNone(boolean textDecorationNone)
textDecorationNone style attribute.textDecorationNone - the new attributepublic boolean getTextDecorationOverline()
textDecorationOverline style attribute.public void setTextDecorationOverline(boolean textDecorationOverline)
textDecorationOverline style attribute.textDecorationOverline - the new attributepublic boolean getTextDecorationUnderline()
textDecorationUnderline style attribute.public void setTextDecorationUnderline(boolean textDecorationUnderline)
textDecorationUnderline style attribute.textDecorationUnderline - the new attributepublic String getTextIndent()
textIndent style attribute.public void setTextIndent(String textIndent)
textIndent style attribute.textIndent - the new attributepublic String getTop()
top style attribute.public void setTop(String top)
top style attribute.top - the new attributepublic String getVerticalAlign()
verticalAlign style attribute.public void setVerticalAlign(String verticalAlign)
verticalAlign style attribute.verticalAlign - the new attributepublic String getWidth()
width style attribute.public void setWidth(String width)
width style attribute.width - the new attributepublic String getWidows()
widows style attribute.public void setWidows(String widows)
widows style attribute.widows - the new attributepublic String getOrphans()
orphans style attribute.public void setOrphans(String orphans)
orphans style attribute.orphans - the new attributepublic String getPosition()
position style attribute.public void setPosition(String position)
position style attribute.position - the new attributepublic String getWordSpacing()
wordSpacing style attribute.public void setWordSpacing(String wordSpacing)
wordSpacing style attribute.wordSpacing - the new attributepublic Object getZIndex()
zIndex style attribute.public void setZIndex(Object zIndex)
zIndex style attribute.zIndex - the new attributepublic String getPropertyValue(String name)
name - the style property namepublic CSSValue getPropertyCSSValue(String name)
name - the name of the property to retrievepublic String getPropertyPriority(String name)
name - the style property namepublic void setProperty(String name, Object value, String important)
name - the name of the attributevalue - the value to assign to the attributeimportant - may be nullpublic String removeProperty(Object name)
name - the name of the property to removepublic Object getAttribute(String name, int flag)
name - the name of the attributeflag - 0 for case insensitive, 1 (default) for case sensitivepublic void setAttribute(String name, String value, Object flag)
name - the name of the attributevalue - the value to assign to the attributeflag - 0 for case insensitive, 1 (default) for case sensitivepublic boolean removeAttribute(String name, Object flag)
name - the name of the attributeflag - 0 for case insensitive, 1 (default) for case sensitivetrue if the attribute was successfully removed, false otherwisepublic static String toRGBColor(String color)
color - the colorprotected static int pixelValue(Element element, CSSStyleDeclaration.CssValue value)
element - the element for which the CSS attribute value is to be retrievedvalue - the CSS attribute value which is to be retrievedpixelValue(String)protected static int pixelValue(String value)
pixelValue(Element, CssValue) if you
need percentage support).value - the length string value to convert to an integer number of pixelspixelValue(Element, CssValue)Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.