public interface ObjectElement extends Element
Object
objects expose the HTMLObjectElement (or HTML 4 HTMLObjectElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of Object element, representing external resources.ALLOW_KEYBOARD_INPUT
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
boolean |
checkValidity()
Always returns true, because
object objects are never candidates for constraint validation. |
String |
getAlign()
Alignment of the object relative to its context.
|
String |
getArchive()
Reflects the
archive
HTML attribute, containing a list of archives for resources for this object. |
String |
getBorder()
Reflects the
border
HTML attribute, specifying the width of a border around the object. |
String |
getCode()
The name of an applet class file, containing either the applet's subclass, or the path to get to the class, including the class file itself.
|
String |
getCodeBase()
Reflects the
codebase
HTML attribute, specifying the base path to use to resolve relative URIs. |
String |
getCodeType()
Reflects the
codetype
HTML attribute, specifying the content type of the data. |
Document |
getContentDocument()
The active document of the object element's nested browsing context, if any; otherwise null.
|
String |
getData()
Reflects the
data
HTML attribute, specifying the address of a resource's data. |
FormElement |
getForm()
The object element's form owner, or null if there isn't one.
|
String |
getHeight()
Reflects the {{htmlattrxref("height", "object)}} HTML attribute, specifying the displayed height of the resource in CSS pixels.
|
int |
getHspace()
Horizontal space in pixels around the control.
|
String |
getName()
|
String |
getStandby()
Reflects the
standby
HTML attribute, specifying a message to display while the object loads. |
SVGDocument |
getSVGDocument() |
String |
getType()
Reflects the {{htmlattrxref("type", "object)}} HTML attribute, specifying the MIME type of the resource.
|
String |
getUseMap()
Reflects the {{htmlattrxref("usemap", "object)}} HTML attribute, specifying a {{HTMLElement("map")}} element to use.
|
String |
getValidationMessage()
A localized message that describes the validation constraints that the control does not satisfy (if any).
|
ValidityState |
getValidity()
The validity states that this element is in.
|
int |
getVspace()
Horizontal space in pixels around the control.
|
String |
getWidth()
Reflects the
width
HTML attribute, specifying the displayed width of the resource in CSS pixels. |
boolean |
isDeclare()
Reflects the
declare
HTML attribute, indicating that this is a declaration, not an instantiation, of the object. |
boolean |
isWillValidate()
Indicates whether the element is a candidate for constraint validation.
|
void |
setAlign(String arg) |
void |
setArchive(String arg) |
void |
setBorder(String arg) |
void |
setCode(String arg) |
void |
setCodeBase(String arg) |
void |
setCodeType(String arg) |
void |
setCustomValidity(String error)
Sets a custom validity message for the element.
|
void |
setData(String arg) |
void |
setDeclare(boolean arg) |
void |
setHeight(String arg) |
void |
setHspace(int arg) |
void |
setName(String arg) |
void |
setStandby(String arg) |
void |
setType(String arg) |
void |
setUseMap(String arg) |
void |
setVspace(int arg) |
void |
setWidth(String arg) |
blur, click, focus, getAccessKey, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getChildElementCount, getChildren, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getContentEditable, getDataset, getDir, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerText, getLang, getLastElementChild, getNextElementSibling, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getOnabort, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnblur, getOnchange, getOnclick, getOncontextmenu, getOncopy, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnerror, getOnfocus, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnpaste, getOnreset, getOnscroll, getOnsearch, getOnselect, getOnselectstart, getOnsubmit, getOntouchcancel, getOntouchend, getOntouchmove, getOntouchstart, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getOuterText, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getStyle, getTabIndex, getTagName, getTitle, getWebkitdropzone, getWebkitRegionOverflow, hasAttribute, hasAttributeNS, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, isDraggable, isHidden, isSpellcheck, isTranslate, querySelector, querySelectorAll, removeAttribute, removeAttributeNode, removeAttributeNS, scrollByLines, scrollByPages, scrollIntoView, scrollIntoView, scrollIntoViewIfNeeded, scrollIntoViewIfNeeded, setAccessKey, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setContentEditable, setDir, setDraggable, setHidden, setId, setInnerHTML, setInnerText, setLang, setOnabort, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnblur, setOnchange, setOnclick, setOncontextmenu, setOncopy, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnfocus, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnpaste, setOnreset, setOnscroll, setOnsearch, setOnselect, setOnselectstart, setOnsubmit, setOntouchcancel, setOntouchend, setOntouchmove, setOntouchstart, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setOuterText, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTitle, setTranslate, setWebkitdropzone, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
addEventListener, addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent
void setAlign(String arg)
String getArchive()
void setArchive(String arg)
String getBorder()
void setBorder(String arg)
String getCode()
void setCode(String arg)
String getCodeBase()
void setCodeBase(String arg)
String getCodeType()
void setCodeType(String arg)
Document getContentDocument()
String getData()
data
HTML attribute, specifying the address of a resource's data.void setData(String arg)
boolean isDeclare()
void setDeclare(boolean arg)
FormElement getForm()
String getHeight()
void setHeight(String arg)
int getHspace()
void setHspace(int arg)
String getName()
void setName(String arg)
String getStandby()
void setStandby(String arg)
String getType()
void setType(String arg)
String getUseMap()
void setUseMap(String arg)
String getValidationMessage()
ValidityState getValidity()
int getVspace()
void setVspace(int arg)
String getWidth()
width
HTML attribute, specifying the displayed width of the resource in CSS pixels.void setWidth(String arg)
boolean isWillValidate()
object
objects.boolean checkValidity()
object
objects are never candidates for constraint validation.SVGDocument getSVGDocument()
void setCustomValidity(String error)
Copyright © 2018. All rights reserved.