Class HtmlObject

All Implemented Interfaces:
Serializable, Cloneable, ValidatableElement, Element, Node

public class HtmlObject extends HtmlElement implements ValidatableElement
Wrapper for the HTML element "object".
See Also:
  • Field Details

  • Method Details

    • getDeclareAttribute

      public final String getDeclareAttribute()
      Returns the value of the attribute declare. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute declare or an empty string if that attribute isn't defined.
    • getClassIdAttribute

      public final String getClassIdAttribute()
      Returns the value of the attribute classid. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute classid or an empty string if that attribute isn't defined.
    • getCodebaseAttribute

      public final String getCodebaseAttribute()
      Returns the value of the attribute "codebase". Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute "codebase" or an empty string if that attribute isn't defined.
    • getDataAttribute

      public final String getDataAttribute()
      Returns the value of the attribute data. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute data or an empty string if that attribute isn't defined.
    • getTypeAttribute

      public final String getTypeAttribute()
      Returns the value of the attribute type. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute type or an empty string if that attribute isn't defined.
    • getCodeTypeAttribute

      public final String getCodeTypeAttribute()
      Returns the value of the attribute "codetype". Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute "codetype" or an empty string if that attribute isn't defined.
    • getArchiveAttribute

      public final String getArchiveAttribute()
      Returns the value of the attribute archive. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute archive or an empty string if that attribute isn't defined.
    • getStandbyAttribute

      public final String getStandbyAttribute()
      Returns the value of the attribute standby. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute standby or an empty string if that attribute isn't defined.
    • getHeightAttribute

      public final String getHeightAttribute()
      Returns the value of the attribute height. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute height or an empty string if that attribute isn't defined.
    • getWidthAttribute

      public final String getWidthAttribute()
      Returns the value of the attribute width. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute width or an empty string if that attribute isn't defined.
    • getUseMapAttribute

      public final String getUseMapAttribute()
      Returns the value of the attribute usemap. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute usemap or an empty string if that attribute isn't defined.
    • getNameAttribute

      public final String getNameAttribute()
      Returns the value of the attribute name. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute name or an empty string if that attribute isn't defined.
    • getTabIndexAttribute

      public final String getTabIndexAttribute()
      Returns the value of the attribute tabindex. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute tabindex or an empty string if that attribute isn't defined.
    • getAlignAttribute

      public final String getAlignAttribute()
      Returns the value of the attribute align. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute align or an empty string if that attribute isn't defined.
    • getBorderAttribute

      public final String getBorderAttribute()
      Returns the value of the attribute border. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute border or an empty string if that attribute isn't defined.
    • getHspaceAttribute

      public final String getHspaceAttribute()
      Returns the value of the attribute hspace. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute hspace or an empty string if that attribute isn't defined.
    • getVspaceAttribute

      public final String getVspaceAttribute()
      Returns the value of the attribute vspace. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute vspace or an empty string if that attribute isn't defined.
    • onAllChildrenAddedToPage

      public void onAllChildrenAddedToPage(boolean postponed)
      Initialize the clsid. Lifecycle method invoked after a node and all its children have been added to a page, during parsing of the HTML. Intended to be overridden by nodes which need to perform custom logic after they and all their child nodes have been processed by the HTML parser. This method is not recursive, and the default implementation is empty, so there is no need to call super.onAllChildrenAddedToPage() if you implement this method.
      Overrides:
      onAllChildrenAddedToPage in class DomNode
      Parameters:
      postponed - whether to use PostponedAction or no
    • getDefaultStyleDisplay

      public HtmlElement.DisplayStyle getDefaultStyleDisplay()
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Returns the default display style.
      Overrides:
      getDefaultStyleDisplay in class HtmlElement
      Returns:
      the default display style
    • isValid

      public boolean isValid()
      Returns whether this element satisfies all form validation constraints set.
      Overrides:
      isValid in class HtmlElement
      Returns:
      whether this element satisfies all form validation constraints set
    • willValidate

      public boolean willValidate()
      Specified by:
      willValidate in interface ValidatableElement
      Returns:
      whether the element is a candidate for constraint validation
    • setCustomValidity

      public void setCustomValidity(String message)
      Sets the custom validity message for the element to the specified message.
      Specified by:
      setCustomValidity in interface ValidatableElement
      Parameters:
      message - the new message
    • isCustomErrorValidityState

      public boolean isCustomErrorValidityState()
      Specified by:
      isCustomErrorValidityState in interface ValidatableElement
      Returns:
      a boolean value indicating whether the element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
    • isValidValidityState

      public boolean isValidValidityState()
      Specified by:
      isValidValidityState in interface ValidatableElement
      Returns:
      true if the element meets all its validation constraints, and is therefore considered to be valid, or false if it fails any constraint. If true, the element matches the :valid CSS pseudo-class; the :invalid CSS pseudo-class otherwise.