org.opentox.toxotis.core.html.impl
Class HTMLAppendableTableImpl

java.lang.Object
  extended by org.opentox.toxotis.core.html.impl.HTMLExpandableComponentImpl
      extended by org.opentox.toxotis.core.html.impl.HTMLAppendableTableImpl
All Implemented Interfaces:
HTMLComponent, HTMLExpandableComponent, HTMLTable

public class HTMLAppendableTableImpl
extends HTMLExpandableComponentImpl
implements HTMLTable

Author:
Pantelis Sopasakis, Charalampos Chomenides

Constructor Summary
HTMLAppendableTableImpl(int nCols)
           
HTMLAppendableTableImpl(int nCols, int rowEstimate)
           
 
Method Summary
 HTMLTableRow currentRow()
          Return the current row defined by the cursor on the HTML table.
 int getCols()
           
 int getRows()
           
 HTMLTableRow nextRow()
           
 HTMLTableRow previousRow()
           
 HTMLTable setAtCursor(HTMLComponent entry)
           
 HTMLTable setCellPadding(int cellPadding)
           
 HTMLTable setCellSpacing(int cellSpacing)
           
 HTMLTable setColWidth(int col, int width)
           
 HTMLTable setSummary(String summary)
           
 HTMLTable setTableBorder(int tableBorder)
           
 HTMLTable setTableWidth(int tableWidth)
           
 HTMLTable setTextAtCursor(String entry)
           
 String toString()
           
 
Methods inherited from class org.opentox.toxotis.core.html.impl.HTMLExpandableComponentImpl
addComponent, getComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opentox.toxotis.core.html.HTMLExpandableComponent
addComponent, getComponents
 

Constructor Detail

HTMLAppendableTableImpl

public HTMLAppendableTableImpl(int nCols)

HTMLAppendableTableImpl

public HTMLAppendableTableImpl(int nCols,
                               int rowEstimate)
Method Detail

getRows

public int getRows()
Specified by:
getRows in interface HTMLTable

getCols

public int getCols()
Specified by:
getCols in interface HTMLTable

toString

public String toString()
Overrides:
toString in class Object

setSummary

public HTMLTable setSummary(String summary)
Specified by:
setSummary in interface HTMLTable

setTableWidth

public HTMLTable setTableWidth(int tableWidth)
Specified by:
setTableWidth in interface HTMLTable

setCellSpacing

public HTMLTable setCellSpacing(int cellSpacing)
Specified by:
setCellSpacing in interface HTMLTable

setTableBorder

public HTMLTable setTableBorder(int tableBorder)
Specified by:
setTableBorder in interface HTMLTable

setCellPadding

public HTMLTable setCellPadding(int cellPadding)
Specified by:
setCellPadding in interface HTMLTable

setColWidth

public HTMLTable setColWidth(int col,
                             int width)
Specified by:
setColWidth in interface HTMLTable

currentRow

public HTMLTableRow currentRow()
Return the current row defined by the cursor on the HTML table.

Specified by:
currentRow in interface HTMLTable
Returns:
The current row on the editable HTML table.

nextRow

public HTMLTableRow nextRow()
Specified by:
nextRow in interface HTMLTable

previousRow

public HTMLTableRow previousRow()
Specified by:
previousRow in interface HTMLTable

setAtCursor

public HTMLTable setAtCursor(HTMLComponent entry)
                      throws ArrayIndexOutOfBoundsException
Specified by:
setAtCursor in interface HTMLTable
Throws:
ArrayIndexOutOfBoundsException

setTextAtCursor

public HTMLTable setTextAtCursor(String entry)
                          throws ArrayIndexOutOfBoundsException
Specified by:
setTextAtCursor in interface HTMLTable
Throws:
ArrayIndexOutOfBoundsException


Copyright © 2011-2012 OpenTox. All Rights Reserved.