Class HtmlArea

All Implemented Interfaces:
Serializable, Cloneable, Element, Node

public class HtmlArea extends HtmlElement
Wrapper for the HTML element "area".
See Also:
  • Field Details Link icon

  • Method Details Link icon

    • doClickStateUpdate Link icon

      protected boolean doClickStateUpdate(boolean shiftKey, boolean ctrlKey) throws IOException
      This method implements the control state update part of the click action.

      The default implementation only calls doClickStateUpdate on parent's DomElement (if any). Subclasses requiring different behavior (like HtmlSubmitInput) will override this method.

      Overrides:
      doClickStateUpdate in class DomElement
      Parameters:
      shiftKey - true if SHIFT is pressed
      ctrlKey - true if CTRL is pressed
      Returns:
      true if doClickFireEvent method has to be called later on (to signal, that the value was changed)
      Throws:
      IOException - if an IO error occurs
    • getShapeAttribute Link icon

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

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

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

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

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

      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
    • getAccessKeyAttribute Link icon

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

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

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

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

      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
    • isDisplayed Link icon

      public boolean isDisplayed()

      Returns true if this node is displayed and can be visible to the user (ignoring screen size, scrolling limitations, color, font-size, or overlapping nodes).

      NOTE: If CSS is disabled, this method does not take this element's style into consideration!

      Overwritten to support the hidden attribute (html5).
      Overrides:
      isDisplayed in class HtmlElement
      Returns:
      true if the node is visible to the user, false otherwise
      See Also:
    • handles Link icon

      public boolean handles(org.htmlunit.javascript.host.event.Event event)
      Indicates if the provided event can be applied to this node. Overwrite this.
      Overrides:
      handles in class HtmlElement
      Parameters:
      event - the event
      Returns:
      false if the event can't be applied