com.ldodds.foaf.thinlet
Class Table
java.lang.Object
|
+--com.ldodds.foaf.thinlet.Table
- public class Table
- extends java.lang.Object
Dynamically add rows to tables
- Author:
- ldodds
Constructor Summary |
Table(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Table
public Table(java.lang.String name)
add
public void add(java.lang.Object[] data)
- Dynamically adds a row of data to a table.
- Parameters:
name
- the name of the table componentdata
- an array containing one entry for each cell in the row. Cells
are added in array order.
updateSelected
public void updateSelected(java.lang.Object[] data)
deleteSelectedRows
public void deleteSelectedRows()
- Deletes the currently selected rows from a table
- Parameters:
name
- the name of the table component
getFirstSelectedRow
public java.lang.Object getFirstSelectedRow()
getSelectedCellData
public java.util.List getSelectedCellData()
getCellData
public java.util.List getCellData(java.lang.Object row)
getCell
public java.lang.Object getCell(java.lang.Object row,
int cell)
getCells
public java.lang.Object[] getCells(int row)
getCells
public java.lang.Object[] getCells(java.lang.Object row)
makeRow
public java.lang.Object makeRow()
makeCell
public java.lang.Object makeCell()
getTable
public java.lang.Object getTable()
deleteRow
public void deleteRow(int i)
rowSelected
public boolean rowSelected(int i)
getRow
public java.lang.Object getRow(int i)
getRows
public java.util.List getRows()
getRowCount
public int getRowCount()
getText
public java.lang.String getText(java.lang.Object row,
int cell)