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

java.lang.Object
  extended by org.opentox.toxotis.core.html.impl.HTMLTableRowFixedLength
All Implemented Interfaces:
HTMLTableRow

public class HTMLTableRowFixedLength
extends Object
implements HTMLTableRow

Author:
Pantelis Sopasakis, Charalampos Chomenides

Constructor Summary
HTMLTableRowFixedLength(int nCols)
           
 
Method Summary
 HTMLTableRow cursorDown()
           
 int cursorPosition()
           
 HTMLTableRow cursorUp()
           
 HTMLComponent get(int index)
           
 HTMLComponent getCurrent()
           
 int getNumColumns()
           
 boolean isCursorFirst()
           
 boolean isCursorLast()
           
 boolean isRowEmpty()
           
 HTMLTableRow moveCursorAt(int i)
           
 HTMLTableRow setAtCursor(HTMLComponent component)
           
 HTMLTableRow setColumnWidth(int column, int width)
           
 HTMLTableRow setColumnWidths(int... widths)
           
 HTMLTableRow setCurrentColumnWidth(int width)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLTableRowFixedLength

public HTMLTableRowFixedLength(int nCols)
Method Detail

getNumColumns

public int getNumColumns()
Specified by:
getNumColumns in interface HTMLTableRow

get

public HTMLComponent get(int index)
Specified by:
get in interface HTMLTableRow
Parameters:
index - Index starts from 1.
Returns:
The current modifiable HTML component.

cursorUp

public HTMLTableRow cursorUp()
Specified by:
cursorUp in interface HTMLTableRow

cursorDown

public HTMLTableRow cursorDown()
Specified by:
cursorDown in interface HTMLTableRow

moveCursorAt

public HTMLTableRow moveCursorAt(int i)
                          throws ArrayIndexOutOfBoundsException
Specified by:
moveCursorAt in interface HTMLTableRow
Throws:
ArrayIndexOutOfBoundsException

getCurrent

public HTMLComponent getCurrent()
Specified by:
getCurrent in interface HTMLTableRow

setAtCursor

public HTMLTableRow setAtCursor(HTMLComponent component)
Specified by:
setAtCursor in interface HTMLTableRow

setCurrentColumnWidth

public HTMLTableRow setCurrentColumnWidth(int width)
Specified by:
setCurrentColumnWidth in interface HTMLTableRow

setColumnWidth

public HTMLTableRow setColumnWidth(int column,
                                   int width)
Specified by:
setColumnWidth in interface HTMLTableRow

toString

public String toString()
Overrides:
toString in class Object

isCursorLast

public boolean isCursorLast()
Specified by:
isCursorLast in interface HTMLTableRow

isCursorFirst

public boolean isCursorFirst()
Specified by:
isCursorFirst in interface HTMLTableRow

cursorPosition

public int cursorPosition()
Specified by:
cursorPosition in interface HTMLTableRow

isRowEmpty

public boolean isRowEmpty()
Specified by:
isRowEmpty in interface HTMLTableRow

setColumnWidths

public HTMLTableRow setColumnWidths(int... widths)
Specified by:
setColumnWidths in interface HTMLTableRow


Copyright © 2011-2012 OpenTox. All Rights Reserved.