Class HtmlArea

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.Node

    public class HtmlArea
    extends HtmlElement
    Wrapper for the HTML element "area".
    See Also:
    Serialized Form
    • Field Detail

      • TAG_NAME

        public static final java.lang.String TAG_NAME
        The HTML tag represented by this element.
        See Also:
        Constant Field Values
    • Method Detail

      • doClickStateUpdate

        protected boolean doClickStateUpdate​(boolean shiftKey,
                                             boolean ctrlKey)
                                      throws java.io.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:
        java.io.IOException - if an IO error occurs
      • getShapeAttribute

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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

        public final java.lang.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
      • isDisplayed

        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:
        CSS2 Visibility, CSS2 Display, MSDN Documentation, DomNode.mayBeDisplayed()
      • handles

        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