Module org.htmlunit

Class HTMLAreaElement

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HTMLAreaElement extends HTMLElement
The JavaScript object HTMLAreaElement.
Author:
Ahmed Ashour, Ronald Brill, Frank Danek, Lai Quang Duong
See Also:
  • Constructor Details

    • HTMLAreaElement

      public HTMLAreaElement()
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getDefaultValue

      public Object getDefaultValue(Class<?> hint)
      Calls for instance for implicit conversion to string.
      Specified by:
      getDefaultValue in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      getDefaultValue in class HtmlUnitScriptable
      Parameters:
      hint - the type hint
      Returns:
      the default value
      See Also:
    • getAlt

      public String getAlt()
      Returns the value of the alt property.
      Returns:
      the value of the alt property
    • setAlt

      public void setAlt(String alt)
      Returns the value of the alt property.
      Parameters:
      alt - the value
    • isEndTagForbidden

      protected boolean isEndTagForbidden()
      Returns whether the end tag is forbidden or not.
      Overrides:
      isEndTagForbidden in class HTMLElement
      Returns:
      whether the end tag is forbidden or not
      See Also:
    • getRel

      public String getRel()
      Returns the value of the rel property.
      Returns:
      the value of the rel property
    • setRel

      public void setRel(String rel)
      Returns the value of the rel property.
      Parameters:
      rel - the value
    • getRelList

      public DOMTokenList getRelList()
      Returns the relList attribute.
      Returns:
      the relList attribute
    • focus

      public void focus()
      Sets the focus to this element.
      Overrides:
      focus in class HTMLElement
    • getCoords

      public String getCoords()
      Returns the coords attribute.
      Returns:
      the coords attribute
    • setCoords

      public void setCoords(String coords)
      Sets the coords attribute.
      Parameters:
      coords - coords attribute
    • getHref

      public String getHref()
      Returns the href property.
      Returns:
      the href property
    • setHref

      public void setHref(String href)
      Sets the href property.
      Parameters:
      href - the href value
    • getProtocol

      public String getProtocol()
      Returns the protocol property.
      Returns:
      the protocol property
    • setProtocol

      public void setProtocol(String protocol) throws Exception
      Sets the protocol property.
      Parameters:
      protocol - the protocol value
      Throws:
      Exception - if an error occurs
    • getHostname

      public String getHostname()
      Returns the hostname property.
      Returns:
      the hostname property
    • setHostname

      public void setHostname(String hostname) throws Exception
      Sets the hostname property.
      Parameters:
      hostname - the hostname value
      Throws:
      Exception - if an error occurs
    • getHost

      public String getHost()
      Returns the host property.
      Returns:
      the host property
    • setHost

      public void setHost(String host) throws Exception
      Sets the host property.
      Parameters:
      host - the host value
      Throws:
      Exception - if an error occurs
    • getPort

      public String getPort()
      Returns the port property.
      Returns:
      the port property
    • setPort

      public void setPort(String port) throws Exception
      Sets the port property.
      Parameters:
      port - the port value
      Throws:
      Exception - if an error occurs
    • getPathname

      public String getPathname()
      Returns the pathname property.
      Returns:
      the pathname property
    • setPathname

      public void setPathname(String pathname) throws Exception
      Sets the pathname property.
      Parameters:
      pathname - the pathname value
      Throws:
      Exception - if an error occurs
    • getSearch

      public String getSearch()
      Returns the search property.
      Returns:
      the search property
    • setSearch

      public void setSearch(String search) throws Exception
      Sets the search property.
      Parameters:
      search - the search value
      Throws:
      Exception - if an error occurs
    • getHash

      public String getHash()
      Returns the hash property.
      Returns:
      the hash property
    • setHash

      public void setHash(String hash) throws Exception
      Sets the hash property.
      Parameters:
      hash - the hash value
      Throws:
      Exception - if an error occurs
    • getOrigin

      public String getOrigin()
      Returns the origin property.
      Returns:
      the origin property
    • getUsername

      public String getUsername()
      Returns the username property.
      Returns:
      the username property
    • setUsername

      public void setUsername(String username)
      Sets the username property.
      Parameters:
      username - the username value
    • getPassword

      public String getPassword()
      Returns the password property.
      Returns:
      the password property
    • setPassword

      public void setPassword(String password)
      Sets the password property.
      Parameters:
      password - the password value