Class CSSStyleDeclaration
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.css.CSSStyleDeclaration
- All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
- Direct Known Subclasses:
ComputedCSSStyleDeclaration
A JavaScript object for
CSSStyleDeclaration.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]private AbstractCssStyleDeclarationThe wrapped CSSStyleDeclarationprivate static final String[]Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance.CSSStyleDeclaration(CSSStyleSheet parentStyleSheet, WrappedCssStyleDeclaration styleDeclaration) Creates an instance which wraps the specified style declaration.CSSStyleDeclaration(Element element, AbstractCssStyleDeclaration styleDeclaration) Creates an instance and sets its parent scope to the one of the provided element. -
Method Summary
Modifier and TypeMethodDescriptionget(int index, org.htmlunit.corejs.javascript.Scriptable start) Gets a named property from the object.Gets thebackgroundAttachmentstyle attribute.Gets thebackgroundColorstyle attribute.Gets thebackgroundImagestyle attribute.Gets thebackgroundPositionstyle attribute.Gets thebackgroundRepeatstyle attribute.Gets theborderBottomColorstyle attribute.Gets theborderBottomStylestyle attribute.Gets theborderBottomWidthstyle attribute.Gets theborderLeftColorstyle attribute.Gets theborderLeftStylestyle attribute.Gets theborderLeftWidthstyle attribute.Gets theborderRightColorstyle attribute.Gets theborderRightStylestyle attribute.Gets theborderRightWidthstyle attribute.Gets theborderTopstyle attribute.Gets theborderTopColorstyle attribute.Gets theborderTopStylestyle attribute.Gets theborderTopWidthstyle attribute.Gets thebottomstyle attribute.getColor()Gets thecolorstyle attribute.Gets thecssFloatstyle attribute.protected AbstractCssStyleDeclarationReturns the actual text of the style.Gets thedisplaystyle attribute.getFont()Gets thefontstyle attribute.Gets thefontFamilystyle attribute.Gets thefontSizestyle attribute.Gets theheightstyle attribute.Object[]getIds()getLeft()Gets theleftstyle attribute.intReturns thelengthproperty.Gets theletterSpacingstyle attribute.Gets thelineHeightstyle attribute.Gets themarginstyle attribute.Gets themarginBottomstyle attribute.Gets themarginLeftstyle attribute.Gets themarginRightstyle attribute.Gets themarginTopstyle attribute.Gets themaxHeightstyle attribute.Gets themaxWidthstyle attribute.Gets theminHeightstyle attribute.Gets theminWidthstyle attribute.Gets theopacitystyle attribute.Gets theorphansstyle attribute.Gets theoutlinestyle attribute.Gets theoutlineWidthstyle attribute.Gets thepaddingstyle attribute.Gets thepaddingBottomstyle attribute.Gets thepaddingLeftstyle attribute.Gets thepaddingRightstyle attribute.Gets thepaddingTopstyle attribute.Returns the CSSRule that is the parent of this style block ornullif this CSSStyleDeclaration is not attached to a CSSRule.Gets thepositionstyle attribute.getPropertyPriority(String name) Gets the value of the specified property of the style.getPropertyValue(String name) Gets the value of the specified property of the style.getRight()Gets therightstyle attribute.Gets therubyAlignstyle attribute.getSize()Gets thesizestyle attribute.final StringgetStyleAttribute(StyleAttributes.Definition definition) Get the value for the style attribute.getStyleAttribute(StyleAttributes.Definition definition, boolean getDefaultValueIfEmpty) Get the value for the style attribute.private Map<String, StyleElement> Returns a sorted map containing style elements, keyed on style element name.protected StringgetStylePriority(String name) Returns the priority of the named style attribute, or an empty string if it is not found.Gets thetextIndentstyle attribute.getTop()Gets thetopstyle attribute.Gets theverticalAlignstyle attribute.Gets thewidowsstyle attribute.getWidth()Gets thewidthstyle attribute.Gets thewordSpacingstyle attribute.Gets thezIndexstyle attribute.boolean(package private) static booleanReturns if the specified token is a length.item(int index) Returns the item in the given index.voidjsConstructor(String type, org.htmlunit.corejs.javascript.ScriptableObject details) JavaScript constructor.voidremoveProperty(Object name) Removes the named property.private StringremoveStyleAttribute(String name) Removes the specified style attribute, returning the value of the removed attribute.voidsetBackgroundAttachment(String backgroundAttachment) Sets thebackgroundAttachmentstyle attribute.voidsetBackgroundColor(String backgroundColor) Sets thebackgroundColorstyle attribute.voidsetBackgroundImage(String backgroundImage) Sets thebackgroundImagestyle attribute.voidsetBackgroundPosition(String backgroundPosition) Sets thebackgroundPositionstyle attribute.voidsetBackgroundRepeat(String backgroundRepeat) Sets thebackgroundRepeatstyle attribute.voidsetBorderBottomColor(String borderBottomColor) Sets theborderBottomColorstyle attribute.voidsetBorderBottomStyle(String borderBottomStyle) Sets theborderBottomStylestyle attribute.voidsetBorderBottomWidth(Object borderBottomWidth) Sets theborderBottomWidthstyle attribute.voidsetBorderLeftColor(String borderLeftColor) Sets theborderLeftColorstyle attribute.voidsetBorderLeftStyle(String borderLeftStyle) Sets theborderLeftStylestyle attribute.voidsetBorderLeftWidth(Object borderLeftWidth) Sets theborderLeftWidthstyle attribute.voidsetBorderRightColor(String borderRightColor) Sets theborderRightColorstyle attribute.voidsetBorderRightStyle(String borderRightStyle) Sets theborderRightStylestyle attribute.voidsetBorderRightWidth(Object borderRightWidth) Sets theborderRightWidthstyle attribute.voidsetBorderTop(String borderTop) Sets theborderTopstyle attribute.voidsetBorderTopColor(String borderTopColor) Sets theborderTopColorstyle attribute.voidsetBorderTopStyle(String borderTopStyle) Sets theborderTopStylestyle attribute.voidsetBorderTopWidth(Object borderTopWidth) Sets theborderTopWidthstyle attribute.voidSets thebottomstyle attribute.voidSets thecolorstyle attribute.voidsetCssFloat(String value) Sets thecssFloatstyle attribute.voidsetCssText(String value) Sets the actual text of the style.voidsetDisplay(String display) Sets thedisplaystyle attribute.voidSets thefontstyle attribute.voidsetFontFamily(String fontFamily) Sets thefontFamilystyle attribute.voidsetFontSize(Object fontSize) Sets thefontSizestyle attribute.voidSets theheightstyle attribute.voidSets theleftstyle attribute.voidsetLetterSpacing(Object letterSpacing) Sets theletterSpacingstyle attribute.voidsetLineHeight(String lineHeight) Sets thelineHeightstyle attribute.voidSets themarginstyle attribute.voidsetMarginBottom(Object marginBottom) Sets themarginBottomstyle attribute.voidsetMarginLeft(Object marginLeft) Sets themarginLeftstyle attribute.voidsetMarginRight(Object marginRight) Sets themarginRightstyle attribute.voidsetMarginTop(Object marginTop) Sets themarginTopstyle attribute.voidsetMaxHeight(Object maxHeight) Sets themaxHeightstyle attribute.voidsetMaxWidth(Object maxWidth) Sets themaxWidthstyle attribute.voidsetMinHeight(Object minHeight) Sets theminHeightstyle attribute.voidsetMinWidth(Object minWidth) Sets theminWidthstyle attribute.voidsetOpacity(Object opacity) Sets theopacitystyle attribute.voidsetOrphans(String orphans) Sets theorphansstyle attribute.voidsetOutline(String outline) Sets theoutlinestyle attribute.voidsetOutlineWidth(Object outlineWidth) Sets theoutlineWidthstyle attribute.voidsetPadding(String padding) Sets thepaddingstyle attribute.voidsetPaddingBottom(Object paddingBottom) Sets thepaddingBottomstyle attribute.voidsetPaddingLeft(Object paddingLeft) Sets thepaddingLeftstyle attribute.voidsetPaddingRight(Object paddingRight) Sets thepaddingRightstyle attribute.voidsetPaddingTop(Object paddingTop) Sets thepaddingTopstyle attribute.voidsetParentRule(CSSRule parentRule) Nothing.voidsetPosition(String position) Sets thepositionstyle attribute.voidsetProperty(String name, Object value, String important) Sets the value of the specified property.voidSets therightstyle attribute.voidsetRubyAlign(String rubyAlign) Sets therubyAlignstyle attribute.voidSets thesizestyle attribute.protected voidsetStyleAttribute(String name, String newValue) Sets the specified style attribute.protected voidsetStyleAttribute(String name, String newValue, String important) Sets the specified style attribute.private voidsetStyleLengthAttribute(String name, Object value, String important, boolean auto, boolean percent, boolean unitRequired, String[] validValues) Sets the style attribute which should be treated as an integer in pixels.voidsetTextIndent(Object textIndent) Sets thetextIndentstyle attribute.voidSets thetopstyle attribute.voidsetVerticalAlign(Object verticalAlign) Sets theverticalAlignstyle attribute.voidSets thewidowsstyle attribute.voidSets thewidthstyle attribute.voidsetWordSpacing(Object wordSpacing) Sets thewordSpacingstyle attribute.voidSets thezIndexstyle attribute.toString()private voidupdateFont(String font, boolean force) org.htmlunit.corejs.javascript.Scriptablevalues()Returns an Iterator allowing to go through all keys contained in this object.Methods inherited from class HtmlUnitScriptable
clone, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
Field Details
-
LENGTH_PROPERTIES_FFFF
-
LENGTH_PROPERTIES_TTFF
-
LENGTH_PROPERTIES_FTFF
-
THIN_MED_THICK
-
ALIGN_KEYWORDS
-
styleDeclaration_
The wrapped CSSStyleDeclaration
-
-
Constructor Details
-
CSSStyleDeclaration
public CSSStyleDeclaration()Creates an instance. -
CSSStyleDeclaration
Creates an instance and sets its parent scope to the one of the provided element.- Parameters:
element- the element to which this style is boundstyleDeclaration- the style declaration to be based on
-
CSSStyleDeclaration
CSSStyleDeclaration(CSSStyleSheet parentStyleSheet, WrappedCssStyleDeclaration styleDeclaration) Creates an instance which wraps the specified style declaration.- Parameters:
parentStyleSheet- the parentCSSStyleSheetto usestyleDeclaration- the style declaration to wrap
-
-
Method Details
-
jsConstructor
JavaScript constructor.- Parameters:
type- the event typedetails- the event details (optional)
-
getCssStyleDeclaration
-
getStylePriority
-
setStyleAttribute
-
setStyleAttribute
-
removeStyleAttribute
-
getStyleMap
Returns a sorted map containing style elements, keyed on style element name. We use aLinkedHashMapmap so that results are deterministic and are thus testable.- Returns:
- a sorted map containing style elements, keyed on style element name
-
getBackgroundAttachment
Gets thebackgroundAttachmentstyle attribute.- Returns:
- the style attribute
-
setBackgroundAttachment
Sets thebackgroundAttachmentstyle attribute.- Parameters:
backgroundAttachment- the new attribute
-
getBackgroundColor
Gets thebackgroundColorstyle attribute.- Returns:
- the style attribute
-
setBackgroundColor
Sets thebackgroundColorstyle attribute.- Parameters:
backgroundColor- the new attribute
-
getBackgroundImage
Gets thebackgroundImagestyle attribute.- Returns:
- the style attribute
-
setBackgroundImage
Sets thebackgroundImagestyle attribute.- Parameters:
backgroundImage- the new attribute
-
getBackgroundPosition
Gets thebackgroundPositionstyle attribute.- Returns:
- the style attribute
-
setBackgroundPosition
Sets thebackgroundPositionstyle attribute.- Parameters:
backgroundPosition- the new attribute
-
getBackgroundRepeat
Gets thebackgroundRepeatstyle attribute.- Returns:
- the style attribute
-
setBackgroundRepeat
Sets thebackgroundRepeatstyle attribute.- Parameters:
backgroundRepeat- the new attribute
-
getBorderBottomColor
Gets theborderBottomColorstyle attribute.- Returns:
- the style attribute
-
setBorderBottomColor
Sets theborderBottomColorstyle attribute.- Parameters:
borderBottomColor- the new attribute
-
getBorderBottomStyle
Gets theborderBottomStylestyle attribute.- Returns:
- the style attribute
-
setBorderBottomStyle
Sets theborderBottomStylestyle attribute.- Parameters:
borderBottomStyle- the new attribute
-
getBorderBottomWidth
Gets theborderBottomWidthstyle attribute.- Returns:
- the style attribute
-
setBorderBottomWidth
Sets theborderBottomWidthstyle attribute.- Parameters:
borderBottomWidth- the new attribute
-
getBorderLeftColor
Gets theborderLeftColorstyle attribute.- Returns:
- the style attribute
-
setBorderLeftColor
Sets theborderLeftColorstyle attribute.- Parameters:
borderLeftColor- the new attribute
-
getBorderLeftStyle
Gets theborderLeftStylestyle attribute.- Returns:
- the style attribute
-
setBorderLeftStyle
Sets theborderLeftStylestyle attribute.- Parameters:
borderLeftStyle- the new attribute
-
getBorderLeftWidth
Gets theborderLeftWidthstyle attribute.- Returns:
- the style attribute
-
setBorderLeftWidth
Sets theborderLeftWidthstyle attribute.- Parameters:
borderLeftWidth- the new attribute
-
getBorderRightColor
Gets theborderRightColorstyle attribute.- Returns:
- the style attribute
-
setBorderRightColor
Sets theborderRightColorstyle attribute.- Parameters:
borderRightColor- the new attribute
-
getBorderRightStyle
Gets theborderRightStylestyle attribute.- Returns:
- the style attribute
-
setBorderRightStyle
Sets theborderRightStylestyle attribute.- Parameters:
borderRightStyle- the new attribute
-
getBorderRightWidth
Gets theborderRightWidthstyle attribute.- Returns:
- the style attribute
-
setBorderRightWidth
Sets theborderRightWidthstyle attribute.- Parameters:
borderRightWidth- the new attribute
-
getBorderTop
-
setBorderTop
Sets theborderTopstyle attribute.- Parameters:
borderTop- the new attribute
-
getBorderTopColor
Gets theborderTopColorstyle attribute.- Returns:
- the style attribute
-
setBorderTopColor
Sets theborderTopColorstyle attribute.- Parameters:
borderTopColor- the new attribute
-
getBorderTopStyle
Gets theborderTopStylestyle attribute.- Returns:
- the style attribute
-
setBorderTopStyle
Sets theborderTopStylestyle attribute.- Parameters:
borderTopStyle- the new attribute
-
getBorderTopWidth
Gets theborderTopWidthstyle attribute.- Returns:
- the style attribute
-
setBorderTopWidth
Sets theborderTopWidthstyle attribute.- Parameters:
borderTopWidth- the new attribute
-
getBottom
-
setBottom
Sets thebottomstyle attribute.- Parameters:
bottom- the new attribute
-
getColor
-
setColor
Sets thecolorstyle attribute.- Parameters:
color- the new attribute
-
getCssFloat
-
setCssFloat
Sets thecssFloatstyle attribute.- Parameters:
value- the new attribute
-
getCssText
Returns the actual text of the style.- Returns:
- the actual text of the style
-
setCssText
Sets the actual text of the style.- Parameters:
value- the new text
-
getDisplay
-
setDisplay
Sets thedisplaystyle attribute.- Parameters:
display- the new attribute
-
getFontSize
-
setFontSize
Sets thefontSizestyle attribute.- Parameters:
fontSize- the new attribute
-
getLineHeight
-
setLineHeight
Sets thelineHeightstyle attribute.- Parameters:
lineHeight- the new attribute
-
getFontFamily
-
setFontFamily
Sets thefontFamilystyle attribute.- Parameters:
fontFamily- the new attribute
-
updateFont
-
getFont
-
setFont
Sets thefontstyle attribute.- Parameters:
font- the new attribute
-
getHeight
-
setHeight
Sets theheightstyle attribute.- Parameters:
height- the new attribute
-
getLeft
-
setLeft
Sets theleftstyle attribute.- Parameters:
left- the new attribute
-
getLength
public int getLength()Returns thelengthproperty.- Returns:
- the
lengthproperty
-
item
Returns the item in the given index.- Parameters:
index- the index- Returns:
- the item in the given index
-
values
public org.htmlunit.corejs.javascript.Scriptable values()Returns an Iterator allowing to go through all keys contained in this object.- Returns:
- a NativeArrayIterator
-
getLetterSpacing
Gets theletterSpacingstyle attribute.- Returns:
- the style attribute
-
setLetterSpacing
Sets theletterSpacingstyle attribute.- Parameters:
letterSpacing- the new attribute
-
getMargin
-
setMargin
Sets themarginstyle attribute.- Parameters:
margin- the new attribute
-
getMarginBottom
-
setMarginBottom
Sets themarginBottomstyle attribute.- Parameters:
marginBottom- the new attribute
-
getMarginLeft
-
setMarginLeft
Sets themarginLeftstyle attribute.- Parameters:
marginLeft- the new attribute
-
getMarginRight
-
setMarginRight
Sets themarginRightstyle attribute.- Parameters:
marginRight- the new attribute
-
getMarginTop
-
setMarginTop
Sets themarginTopstyle attribute.- Parameters:
marginTop- the new attribute
-
getMaxHeight
-
setMaxHeight
Sets themaxHeightstyle attribute.- Parameters:
maxHeight- the new attribute
-
getMaxWidth
-
setMaxWidth
Sets themaxWidthstyle attribute.- Parameters:
maxWidth- the new attribute
-
getMinHeight
-
setMinHeight
Sets theminHeightstyle attribute.- Parameters:
minHeight- the new attribute
-
getMinWidth
-
setMinWidth
Sets theminWidthstyle attribute.- Parameters:
minWidth- the new attribute
-
get
Gets a named property from the object. Normally HtmlUnit objects don't need to overwrite this method as properties are defined on the prototypes from the XML configuration. In some cases where "content" of object has priority compared to the properties consider using utilityHtmlUnitScriptable.getWithPreemption(String).- Specified by:
getin interfaceorg.htmlunit.corejs.javascript.Scriptable- Overrides:
getin classHtmlUnitScriptable
-
get
- Specified by:
getin interfaceorg.htmlunit.corejs.javascript.Scriptable- Overrides:
getin classorg.htmlunit.corejs.javascript.ScriptableObject
-
getStyleAttribute
Get the value for the style attribute.- Parameters:
definition- the definition- Returns:
- the value
-
getStyleAttribute
public String getStyleAttribute(StyleAttributes.Definition definition, boolean getDefaultValueIfEmpty) Get the value for the style attribute. This impl ignores the default getDefaultValueIfEmpty flag, but there is a overload inComputedCSSStyleDeclaration.- Parameters:
definition- the definitiongetDefaultValueIfEmpty- whether to get the default value if empty or not- Returns:
- the value
-
put
Description copied from class:HtmlUnitScriptable- Specified by:
putin interfaceorg.htmlunit.corejs.javascript.Scriptable- Overrides:
putin classHtmlUnitScriptable
-
has
- Specified by:
hasin interfaceorg.htmlunit.corejs.javascript.Scriptable- Overrides:
hasin classorg.htmlunit.corejs.javascript.ScriptableObject
-
getIds
- Specified by:
getIdsin interfaceorg.htmlunit.corejs.javascript.Scriptable- Overrides:
getIdsin classorg.htmlunit.corejs.javascript.ScriptableObject
-
getOpacity
-
setOpacity
Sets theopacitystyle attribute.- Parameters:
opacity- the new attribute
-
getOutline
-
setOutline
Sets theoutlinestyle attribute.- Parameters:
outline- the new attribute
-
getOutlineWidth
-
setOutlineWidth
Sets theoutlineWidthstyle attribute.- Parameters:
outlineWidth- the new attribute
-
getPadding
-
setPadding
Sets thepaddingstyle attribute.- Parameters:
padding- the new attribute
-
getPaddingBottom
Gets thepaddingBottomstyle attribute.- Returns:
- the style attribute
-
setPaddingBottom
Sets thepaddingBottomstyle attribute.- Parameters:
paddingBottom- the new attribute
-
getPaddingLeft
-
setPaddingLeft
Sets thepaddingLeftstyle attribute.- Parameters:
paddingLeft- the new attribute
-
getPaddingRight
-
setPaddingRight
Sets thepaddingRightstyle attribute.- Parameters:
paddingRight- the new attribute
-
getPaddingTop
-
setPaddingTop
Sets thepaddingTopstyle attribute.- Parameters:
paddingTop- the new attribute
-
getParentRule
Returns the CSSRule that is the parent of this style block ornullif this CSSStyleDeclaration is not attached to a CSSRule.- Returns:
- the CSSRule that is the parent of this style block or
nullif this CSSStyleDeclaration is not attached to a CSSRule
-
setParentRule
-
getRight
-
setRight
Sets therightstyle attribute.- Parameters:
right- the new attribute
-
getRubyAlign
-
setRubyAlign
Sets therubyAlignstyle attribute.- Parameters:
rubyAlign- the new attribute
-
getSize
-
setSize
Sets thesizestyle attribute.- Parameters:
size- the new attribute
-
getTextIndent
-
setTextIndent
Sets thetextIndentstyle attribute.- Parameters:
textIndent- the new attribute
-
getTop
-
setTop
-
getVerticalAlign
Gets theverticalAlignstyle attribute.- Returns:
- the style attribute
-
setVerticalAlign
Sets theverticalAlignstyle attribute.- Parameters:
verticalAlign- the new attribute
-
getWidth
-
setWidth
Sets thewidthstyle attribute.- Parameters:
width- the new attribute
-
getWidows
-
setWidows
Sets thewidowsstyle attribute.- Parameters:
widows- the new attribute
-
getOrphans
-
setOrphans
Sets theorphansstyle attribute.- Parameters:
orphans- the new attribute
-
getPosition
-
setPosition
Sets thepositionstyle attribute.- Parameters:
position- the new attribute
-
getWordSpacing
-
setWordSpacing
Sets thewordSpacingstyle attribute.- Parameters:
wordSpacing- the new attribute
-
getZIndex
-
setZIndex
Sets thezIndexstyle attribute.- Parameters:
zIndex- the new attribute
-
getPropertyValue
-
getPropertyPriority
-
setProperty
-
removeProperty
-
isLength
Returns if the specified token is a length.- Parameters:
token- the token to check- Returns:
- whether the token is a length or not
-
toString
-
setStyleLengthAttribute
private void setStyleLengthAttribute(String name, Object value, String important, boolean auto, boolean percent, boolean unitRequired, String[] validValues) Sets the style attribute which should be treated as an integer in pixels.- Parameters:
name- the attribute namevalue- the attribute valueimportant- important valueauto- true if auto is supportedpercent- true if percent is supportedunitRequired- unit is requiredvalidValues- valid values
-