public class MediaList extends SimpleScriptable
MediaList
.Constructor and Description |
---|
MediaList()
Creates a new instance.
|
MediaList(CSSStyleSheet parent,
org.w3c.dom.stylesheets.MediaList wrappedList)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue(Class<?> hint)
Returns the JavaScript default value of this object.
|
int |
getLength()
Returns the number of media in the list.
|
String |
getMediaText()
The parsable textual representation of the media list.
|
String |
item(int index)
Returns the item or items corresponding to the specified index or key.
|
clone, equivalentValues, get, getBrowserVersion, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScope
applyDescriptorToAttributeBitset, 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, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, 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, size
public MediaList()
public MediaList(CSSStyleSheet parent, org.w3c.dom.stylesheets.MediaList wrappedList)
parent
- the parent stylewrappedList
- the wrapped media list that this host object exposespublic String item(int index)
index
- the index or key corresponding to the element or elements to returnpublic int getLength()
public String getMediaText()
public Object getDefaultValue(Class<?> hint)
SimpleScriptable
getDefaultValue
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
getDefaultValue
in class SimpleScriptable
hint
- a hint as to the format of the default value (ignored in this case)Copyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.