Class ObjectElement


@TagName("object") public class ObjectElement extends Element
Generic embedded object. Note: In principle, all properties on the object element are read-write but in some environments some properties may be read-only once the underlying object is instantiated.
See Also:
  • Field Details

  • Constructor Details

    • ObjectElement

      protected ObjectElement()
  • Method Details

    • as

      public static ObjectElement as(Element elem)
      Assert that the given Element is compatible with this class and automatically typecast it.
    • is

      public static boolean is(JavaScriptObject o)
      Determines whether the given JavaScriptObject can be cast to this class. A null object will cause this method to return false.
    • is

      public static boolean is(Node node)
      Determine whether the given Node can be cast to this class. A null node will cause this method to return false.
    • is

      public static boolean is(Element elem)
      Determine whether the given Element can be cast to this class. A null node will cause this method to return false.
    • getCode

      public final String getCode()
      Applet class file.
    • getContentDocument

      public final Document getContentDocument()
      The document this object contains, if there is any and it is available, or null otherwise.
    • getData

      public final String getData()
      A URI specifying the location of the object's data.
      See Also:
    • getForm

      public final FormElement getForm()
      Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
    • getHeight

      public final String getHeight()
      Override height.
      See Also:
    • getName

      public final String getName()
      Form control or object name when submitted with a form.
      See Also:
    • getType

      public final String getType()
      Content type for data downloaded via data attribute.
      See Also:
    • getWidth

      public final String getWidth()
      Override width.
      See Also:
    • setCode

      public final void setCode(String code)
      Applet class file.
    • setData

      public final void setData(SafeUri data)
      A URI specifying the location of the object's data.
      See Also:
    • setData

      public final void setData(String data)
      A URI specifying the location of the object's data.
      See Also:
    • setHeight

      public final void setHeight(String height)
      Override height.
      See Also:
    • setName

      public final void setName(String name)
      Form control or object name when submitted with a form.
      See Also:
    • setType

      public final void setType(String type)
      Content type for data downloaded via data attribute.
      See Also:
    • setUseMap

      public final void setUseMap(boolean useMap)
      Use client-side image map.
      See Also:
    • setWidth

      public final void setWidth(String width)
      Override width.
      See Also:
    • useMap

      public final boolean useMap()
      Use client-side image map.
      See Also: