Interface HTMLObjectElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode
All Known Implementing Classes:
HTMLObjectElementImpl

public interface HTMLObjectElement extends HTMLElement
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.
  • Method Details

    • getAlign

      @Deprecated String getAlign()
      Deprecated.

      getAlign.

      Returns:
      a String object.
    • setAlign

      void setAlign(String align)

      setAlign.

      Parameters:
      align - a String object.
    • getArchive

      @Deprecated String getArchive()
      Deprecated.
      Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
      Returns:
      a String object.
    • setArchive

      void setArchive(String archive)

      setArchive.

      Parameters:
      archive - a String object.
    • getBorder

      @Deprecated String getBorder()
      Deprecated.

      getBorder.

      Returns:
      a String object.
    • setBorder

      void setBorder(String border)

      setBorder.

      Parameters:
      border - a String object.
    • getCode

      @Deprecated String getCode()
      Deprecated.
      Sets or retrieves the URL of the file containing the compiled Java class.
      Returns:
      a String object.
    • setCode

      void setCode(String code)

      setCode.

      Parameters:
      code - a String object.
    • getCodeBase

      @Deprecated String getCodeBase()
      Deprecated.
      Sets or retrieves the URL of the component.
      Returns:
      a String object.
    • setCodeBase

      void setCodeBase(String codeBase)

      setCodeBase.

      Parameters:
      codeBase - a String object.
    • getCodeType

      @Deprecated String getCodeType()
      Deprecated.
      Sets or retrieves the Internet media type for the code associated with the object.
      Returns:
      a String object.
    • setCodeType

      void setCodeType(String codeType)

      setCodeType.

      Parameters:
      codeType - a String object.
    • getContentDocument

      Document getContentDocument()
      Retrieves the document object of the page or frame.
      Returns:
      a Document object.
    • getData

      String getData()
      Sets or retrieves the URL that references the data of the object.
      Returns:
      a String object.
    • setData

      void setData(String data)

      setData.

      Parameters:
      data - a String object.
    • isDeclare

      @Deprecated boolean 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 HTMLFormElement object.
    • getHeight

      String getHeight()
      Sets or retrieves the height of the object.
      Returns:
      a String object.
    • setHeight

      void setHeight(String height)

      setHeight.

      Parameters:
      height - a String object.
    • getHspace

      @Deprecated double 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 String object.
    • setName

      void setName(String name)

      setName.

      Parameters:
      name - a String object.
    • getStandby

      @Deprecated String getStandby()
      Deprecated.
      Sets or retrieves a message to be displayed while an object is loading.
      Returns:
      a String object.
    • setStandby

      void setStandby(String standby)

      setStandby.

      Parameters:
      standby - a String object.
    • getType

      String getType()
      Sets or retrieves the MIME type of the object.
      Returns:
      a String object.
    • setType

      void setType(String type)

      setType.

      Parameters:
      type - a String object.
    • getUseMap

      String getUseMap()
      Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
      Returns:
      a String object.
    • setUseMap

      void setUseMap(String useMap)

      setUseMap.

      Parameters:
      useMap - a String object.
    • 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 String object.
    • getValidity

      ValidityState getValidity()
      Returns a ValidityState object that represents the validity states of an element.
      Returns:
      a ValidityState object.
    • getVspace

      @Deprecated double 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 String object.
    • setWidth

      void setWidth(String width)

      setWidth.

      Parameters:
      width - a String object.
    • 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 Document object.
    • reportValidity

      boolean reportValidity()

      reportValidity.

      Returns:
      a boolean.
    • setCustomValidity

      void setCustomValidity(String error)
      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.