jaxcent
Class HtmlListElement

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

public class HtmlListElement
extends JaxcentHtmlElement

The class HtmlListElement corresponds to LI tags on the page.


Constructor Summary
HtmlListElement(JaxcentPage page, HtmlElement list)
          First child of an HtmlElement that is an UL or a OL.
HtmlListElement(JaxcentPage page, HtmlListElement li)
          Next sibling of a LI.
HtmlListElement(JaxcentPage page, HtmlNumberedList ol)
          First child of an OL.
HtmlListElement(JaxcentPage page, HtmlUnnumberedList ul)
          First child of an UL.
HtmlListElement(JaxcentPage page, SearchType searchType, java.lang.String str)
          Search for HTML element on page by specified search type and search string.
HtmlListElement(JaxcentPage page, SearchType searchType, java.lang.String[] attributes, java.lang.String[] values)
          Create new HTML element on page using the specified attributes and values.
HtmlListElement(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.
HtmlListElement(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String text)
          Create new HTML Element on page using the specified tag.
HtmlListElement(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.
HtmlListElement(JaxcentPage page, java.lang.String id)
          Search for HTML element on page by specified ID
 
Method Summary
 java.lang.String getInnerHTML()
          Retrieve the "innerHTML" property
 boolean hasNextSibling()
          Check if next sibling exists.
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
protected  void onMouseDown()
          Override to handle the "mouseDown" event
protected  void onMouseUp()
          Override to handle the "mouseUp" event
 void scrollIntoView(boolean top)
          Bring the element into view, by scrolling if necessary.
 void setInnerHTML(java.lang.String value)
          Set the "innerHTML" property
 
Methods inherited from class jaxcent.JaxcentHtmlElement
checkNodeExists, deleteElement, getAttribute, getID, getInnerText, getStyle, getTag, hide, insertAfter, insertAtBeginning, insertAtBeginning, insertAtEnd, insertAtEnd, insertBefore, onDragDrop, setAttribute, setCssClass, setDraggable, setEnabled, setInnerText, setStyle, setStyle, setStyle, setStyle, setVisible, show
 
Methods inherited from class jaxcent.JaxcentObject
addJavaScriptVerification, getId, getProperty, getSelectedIndex, getSelectedValue, 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

HtmlListElement

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


HtmlListElement

public HtmlListElement(JaxcentPage page,
                       HtmlNumberedList ol)
First child of an OL.


HtmlListElement

public HtmlListElement(JaxcentPage page,
                       HtmlUnnumberedList ul)
First child of an UL.


HtmlListElement

public HtmlListElement(JaxcentPage page,
                       HtmlElement list)
First child of an HtmlElement that is an UL or a OL.


HtmlListElement

public HtmlListElement(JaxcentPage page,
                       HtmlListElement li)
Next sibling of a LI.


HtmlListElement

public HtmlListElement(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. If the searchType is createNew, the third parameter specifies contained text.


HtmlListElement

public HtmlListElement(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.


HtmlListElement

public HtmlListElement(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 "LI". If text is non null, the new element is populated with that text.


HtmlListElement

public HtmlListElement(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.


HtmlListElement

public HtmlListElement(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

hasNextSibling

public boolean hasNextSibling()
                       throws Jaxception
Check if next sibling exists.

Throws:
Jaxception

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


onMouseDown

protected void onMouseDown()
Override to handle the "mouseDown" event


onMouseUp

protected void onMouseUp()
Override to handle the "mouseUp" event


setInnerHTML

public void setInnerHTML(java.lang.String value)
                  throws Jaxception
Set the "innerHTML" property

Throws:
Jaxception

getInnerHTML

public java.lang.String getInnerHTML()
                              throws Jaxception
Retrieve the "innerHTML" property

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