jaxcent
Class HtmlArea

java.lang.Object
  extended byjaxcent.JaxcentObject
      extended byjaxcent.JaxcentHtmlElement
          extended byjaxcent.HtmlArea

public class HtmlArea
extends JaxcentHtmlElement

The class HtmlArea corresponds to AREA tags on the page.


Constructor Summary
HtmlArea(JaxcentPage page, SearchType searchType, java.lang.String str)
          Search for HTML element on page by specified search type and search string.
HtmlArea(JaxcentPage page, SearchType searchType, java.lang.String[] attributes, java.lang.String[] values)
          Create new HTML element on page using the specified attributes and values.
HtmlArea(JaxcentPage page, SearchType searchType, java.lang.String str, int index)
          Search for HTML Element on page by specified search type and search string, and search index.
HtmlArea(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String text)
          Create new HTML Element on page using the specified tag.
HtmlArea(JaxcentPage page, SearchType searchType, java.lang.String text, java.lang.String[] attributes, java.lang.String[] values)
          Create new HTML element on page using the specified text and attributes and values.
HtmlArea(JaxcentPage page, java.lang.String id)
          Search for HTML element on page by specified ID
 
Method Summary
 void blur()
          Lose the input focus.
 void focus()
          Get the input focus.
 java.lang.String getCoords()
          Retrieve the "coords" property
 java.lang.String getHref()
          Retrieve the "href" property
 java.lang.String getShape()
          Retrieve the "shape" property
 java.lang.String getTarget()
          Retrieve the "target" property
protected  void onBlur()
          Override to handle the "blur" event
protected  void onClick()
          Override to handle the "click" event
protected  void onFocus()
          Override to handle the "focus" event
 void scrollIntoView(boolean top)
          Bring the element into view, by scrolling if necessary.
 void setCoords(java.lang.String value)
          Set the "coords" property
 void setHref(java.lang.String value)
          Set the "href" property
 void setShape(java.lang.String value)
          Set the "shape" property
 void setTarget(java.lang.String value)
          Set the "target" property
 
Methods inherited from class jaxcent.JaxcentHtmlElement
getAttribute, getID, getInnerText, getStyle, getTag, hide, insertAfter, insertAtBeginning, insertAtBeginning, insertAtEnd, insertAtEnd, insertBefore, setAttribute, setInnerText, setStyle, setStyle, setStyle, setStyle, setVisible, show
 
Methods inherited from class jaxcent.JaxcentObject
addJavaScriptVerification, getId, getProperty, setId, setProperty, setProperty, setProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlArea

public HtmlArea(JaxcentPage page,
                java.lang.String id)
Search for HTML element on page by specified ID


HtmlArea

public HtmlArea(JaxcentPage page,
                SearchType searchType,
                java.lang.String str)
Search for HTML element on page by specified search type and search string. If the search returns multiple objects, use the first one.


HtmlArea

public HtmlArea(JaxcentPage page,
                SearchType searchType,
                java.lang.String str,
                int index)
Search for HTML Element on page by specified search type and search string, and search index. The search is expected to return multiple results. The search index is 0-based, and specifies the index in the multiple results. This constructor is not for use with createNew.


HtmlArea

public HtmlArea(JaxcentPage page,
                SearchType searchType,
                java.lang.String tag,
                java.lang.String text)
         throws Jaxception
Create new HTML Element on page using the specified tag. Search type must be createNew and tag must be "AREA". If text is non null, the new element is populated with that text.


HtmlArea

public HtmlArea(JaxcentPage page,
                SearchType searchType,
                java.lang.String[] attributes,
                java.lang.String[] values)
         throws Jaxception
Create new HTML element on page using the specified attributes and values. Search type must be createNew. Attributes and values arrays must have the same length.


HtmlArea

public HtmlArea(JaxcentPage page,
                SearchType searchType,
                java.lang.String text,
                java.lang.String[] attributes,
                java.lang.String[] values)
         throws Jaxception
Create new HTML element on page using the specified text and attributes and values. Search type must be createNew. Attributes and values arrays must have the same length.

Method Detail

onClick

protected void onClick()
Override to handle the "click" event


onFocus

protected void onFocus()
Override to handle the "focus" event


onBlur

protected void onBlur()
Override to handle the "blur" event


setCoords

public void setCoords(java.lang.String value)
               throws Jaxception
Set the "coords" property

Throws:
Jaxception

getCoords

public java.lang.String getCoords()
                           throws Jaxception
Retrieve the "coords" property

Throws:
Jaxception

setHref

public void setHref(java.lang.String value)
             throws Jaxception
Set the "href" property

Throws:
Jaxception

getHref

public java.lang.String getHref()
                         throws Jaxception
Retrieve the "href" property

Throws:
Jaxception

setShape

public void setShape(java.lang.String value)
              throws Jaxception
Set the "shape" property

Throws:
Jaxception

getShape

public java.lang.String getShape()
                          throws Jaxception
Retrieve the "shape" property

Throws:
Jaxception

setTarget

public void setTarget(java.lang.String value)
               throws Jaxception
Set the "target" property

Throws:
Jaxception

getTarget

public java.lang.String getTarget()
                           throws Jaxception
Retrieve the "target" property

Throws:
Jaxception

blur

public void blur()
          throws Jaxception
Lose the input focus.

Throws:
Jaxception

focus

public void focus()
           throws Jaxception
Get the input focus.

Throws:
Jaxception

scrollIntoView

public void scrollIntoView(boolean top)
                    throws Jaxception
Bring the element into view, by scrolling if necessary. If top is true, the top of element is brought into view, otherwise the bottom of the element is scrolled into view.

Throws:
Jaxception