Package org.loboevolution.html.dom
Interface HTMLObjectElement
- All Superinterfaces:
Element,EventTarget,HTMLElement,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode
- All Known Implementing Classes:
HTMLObjectElementImpl
Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.Node
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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether a form will validate when it is submitted, without having to submit it.getAlign()Deprecated.Deprecated.Deprecated.getCode()Deprecated.Deprecated.Deprecated.Retrieves the document object of the page or frame.getData()Sets or retrieves the URL that references the data of the object.getForm()Retrieves a reference to the form that the object is embedded in.Sets or retrieves the height of the object.doubleDeprecated.getName()Sets or retrieves the name of the object.Deprecated.getSVGDocument.getType()Sets or retrieves the MIME type of the object.Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.Returns the error message that would be displayed if the user submits the form, or an empty string if no error message.Returns a ValidityState object that represents the validity states of an element.doubleDeprecated.getWidth()Sets or retrieves the width of the object.booleanDeprecated.booleanReturns whether an element will successfully validate based on forms validation rules and constraints.booleanreportValidity.voidsetAlign.voidsetArchive(String archive) setArchive.voidsetBorder.voidsetCode.voidsetCodeBase(String codeBase) setCodeBase.voidsetCodeType(String codeType) setCodeType.voidsetCustomValidity(String error) Sets a custom error message that is displayed when a form is submitted.voidsetData.voidsetDeclare(boolean declare) setDeclare.voidsetHeight.voidsetHspace(double hspace) setHspace.voidsetName.voidsetStandby(String standby) setStandby.voidsetType.voidsetUseMap.voidsetVspace(double vspace) setVspace.voidsetWidth.Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttributeMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getCurrentStyle, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getStyle, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslateMethods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTMLMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
-
Method Details
-
getAlign
Deprecated.getAlign.
- Returns:
- a
Stringobject.
-
setAlign
setAlign.
- Parameters:
align- aStringobject.
-
getArchive
Deprecated.Sets or retrieves a character string that can be used to implement your own archive functionality for the object.- Returns:
- a
Stringobject.
-
setArchive
setArchive.
- Parameters:
archive- aStringobject.
-
getBorder
Deprecated.getBorder.
- Returns:
- a
Stringobject.
-
setBorder
setBorder.
- Parameters:
border- aStringobject.
-
getCode
Deprecated.Sets or retrieves the URL of the file containing the compiled Java class.- Returns:
- a
Stringobject.
-
setCode
setCode.
- Parameters:
code- aStringobject.
-
getCodeBase
Deprecated.Sets or retrieves the URL of the component.- Returns:
- a
Stringobject.
-
setCodeBase
setCodeBase.
- Parameters:
codeBase- aStringobject.
-
getCodeType
Deprecated.Sets or retrieves the Internet media type for the code associated with the object.- Returns:
- a
Stringobject.
-
setCodeType
setCodeType.
- Parameters:
codeType- aStringobject.
-
getContentDocument
Document getContentDocument()Retrieves the document object of the page or frame.- Returns:
- a
Documentobject.
-
getData
String getData()Sets or retrieves the URL that references the data of the object.- Returns:
- a
Stringobject.
-
setData
setData.
- Parameters:
data- aStringobject.
-
isDeclare
Deprecated.isDeclare.
- Returns:
- a boolean.
-
setDeclare
void setDeclare(boolean declare) setDeclare.
- Parameters:
declare- a boolean.
-
getForm
HTMLFormElement getForm()Retrieves a reference to the form that the object is embedded in.- Returns:
- a
HTMLFormElementobject.
-
getHeight
String getHeight()Sets or retrieves the height of the object.- Returns:
- a
Stringobject.
-
setHeight
setHeight.
- Parameters:
height- aStringobject.
-
getHspace
Deprecated.getHspace.
- Returns:
- a double.
-
setHspace
void setHspace(double hspace) setHspace.
- Parameters:
hspace- a double.
-
getName
String getName()Sets or retrieves the name of the object.- Returns:
- a
Stringobject.
-
setName
setName.
- Parameters:
name- aStringobject.
-
getStandby
Deprecated.Sets or retrieves a message to be displayed while an object is loading.- Returns:
- a
Stringobject.
-
setStandby
setStandby.
- Parameters:
standby- aStringobject.
-
getType
String getType()Sets or retrieves the MIME type of the object.- Returns:
- a
Stringobject.
-
setType
setType.
- Parameters:
type- aStringobject.
-
getUseMap
String getUseMap()Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.- Returns:
- a
Stringobject.
-
setUseMap
setUseMap.
- Parameters:
useMap- aStringobject.
-
getValidationMessage
String getValidationMessage()Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.- Returns:
- a
Stringobject.
-
getValidity
ValidityState getValidity()Returns a ValidityState object that represents the validity states of an element.- Returns:
- a
ValidityStateobject.
-
getVspace
Deprecated.getVspace.
- Returns:
- a double.
-
setVspace
void setVspace(double vspace) setVspace.
- Parameters:
vspace- a double.
-
getWidth
String getWidth()Sets or retrieves the width of the object.- Returns:
- a
Stringobject.
-
setWidth
setWidth.
- Parameters:
width- aStringobject.
-
isWillValidate
boolean isWillValidate()Returns whether an element will successfully validate based on forms validation rules and constraints.- Returns:
- a boolean.
-
checkValidity
boolean checkValidity()Returns whether a form will validate when it is submitted, without having to submit it.- Returns:
- a boolean.
-
getSVGDocument
Document getSVGDocument()getSVGDocument.
- Returns:
- a
Documentobject.
-
reportValidity
boolean reportValidity()reportValidity.
- Returns:
- a boolean.
-
setCustomValidity
Sets a custom error message that is displayed when a form is submitted.- Parameters:
error- Sets a custom error message that is displayed when a form is submitted.
-