jaxcent
Class HtmlTableCell

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

public class HtmlTableCell
extends JaxcentHtmlElement

The class HtmlTableCell corresponds to TD tags on the page, i.e. to cells of tables. Objects of this class can also be obtained by calling the getCell method of HtmlTableRow objects, or by calling the getCell method of HtmlTable objects. To create new cells on the page, insert rows in the table, and then retrieve the cells from the new row. New cells can also be added to rows by calling insertCell method of HtmlTableRow.


Constructor Summary
HtmlTableCell(JaxcentPage page, SearchType searchType, java.lang.String str)
          Search for HTML element on page by specified search type and search string.
HtmlTableCell(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.
HtmlTableCell(JaxcentPage page, java.lang.String id)
          Search for HTML element on page by specified ID
 
Method Summary
 void blur()
          Lose the input focus.
 void delete()
          Delete this element.
 void focus()
          Get the input focus.
 java.lang.String getAbbr()
          Retrieve the "abbr" property
 java.lang.String getAlign()
          Retrieve the "align" property
 java.lang.String getAxis()
          Retrieve the "axis" property
 int getCellIndex()
          Retrieve the "cellIndex" property
 int getColSpan()
          Retrieve the "colSpan" property
 java.lang.String getInnerHTML()
          Retrieve the "innerHTML" property
 int getRowSpan()
          Retrieve the "rowSpan" property
 java.lang.String getVAlign()
          Retrieve the "vAlign" property
 int getWidth()
          Retrieve the "width" 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
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 setAbbr(java.lang.String value)
          Set the "abbr" property
 void setAlign(java.lang.String value)
          Set the "align" property
 void setAxis(java.lang.String value)
          Set the "axis" property
 void setCellIndex(int value)
          Set the "cellIndex" property
 void setColSpan(int value)
          Set the "colSpan" property
 void setInnerHTML(java.lang.String value)
          Set the "innerHTML" property
 void setRowSpan(int value)
          Set the "rowSpan" property
 void setVAlign(java.lang.String value)
          Set the "vAlign" property
 void setWidth(int value)
          Set the "width" 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

HtmlTableCell

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


HtmlTableCell

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


HtmlTableCell

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

Method Detail

onClick

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


onMouseDown

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


onMouseUp

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


onFocus

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


onBlur

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


setAbbr

public void setAbbr(java.lang.String value)
             throws Jaxception
Set the "abbr" property

Throws:
Jaxception

getAbbr

public java.lang.String getAbbr()
                         throws Jaxception
Retrieve the "abbr" property

Throws:
Jaxception

setAlign

public void setAlign(java.lang.String value)
              throws Jaxception
Set the "align" property

Throws:
Jaxception

getAlign

public java.lang.String getAlign()
                          throws Jaxception
Retrieve the "align" property

Throws:
Jaxception

setAxis

public void setAxis(java.lang.String value)
             throws Jaxception
Set the "axis" property

Throws:
Jaxception

getAxis

public java.lang.String getAxis()
                         throws Jaxception
Retrieve the "axis" property

Throws:
Jaxception

setCellIndex

public void setCellIndex(int value)
                  throws Jaxception
Set the "cellIndex" property

Throws:
Jaxception

getCellIndex

public int getCellIndex()
                 throws Jaxception
Retrieve the "cellIndex" property

Throws:
Jaxception

setColSpan

public void setColSpan(int value)
                throws Jaxception
Set the "colSpan" property

Throws:
Jaxception

getColSpan

public int getColSpan()
               throws Jaxception
Retrieve the "colSpan" property

Throws:
Jaxception

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

setRowSpan

public void setRowSpan(int value)
                throws Jaxception
Set the "rowSpan" property

Throws:
Jaxception

getRowSpan

public int getRowSpan()
               throws Jaxception
Retrieve the "rowSpan" property

Throws:
Jaxception

setVAlign

public void setVAlign(java.lang.String value)
               throws Jaxception
Set the "vAlign" property

Throws:
Jaxception

getVAlign

public java.lang.String getVAlign()
                           throws Jaxception
Retrieve the "vAlign" property

Throws:
Jaxception

setWidth

public void setWidth(int value)
              throws Jaxception
Set the "width" property

Throws:
Jaxception

getWidth

public int getWidth()
             throws Jaxception
Retrieve the "width" 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

blur

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

Throws:
Jaxception

focus

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

Throws:
Jaxception

delete

public void delete()
            throws Jaxception
Delete this element.

Throws:
Jaxception