|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.table.model.AbstractJaretTableModel de.jaret.util.ui.table.model.DefaultJaretTableModel
public class DefaultJaretTableModel
Default Jaret table model.
Field Summary | |
---|---|
protected java.util.List<IColumn> |
_cols
columns. |
protected java.util.List<IRow> |
_rows
rows. |
Fields inherited from class de.jaret.util.ui.table.model.AbstractJaretTableModel |
---|
_listeners |
Constructor Summary | |
---|---|
DefaultJaretTableModel()
|
Method Summary | |
---|---|
void |
addColumn(IColumn column)
Add a column to the model. |
void |
addRow(int index,
IRow row)
Add a row to the model at a specified index. |
void |
addRow(IRow row)
Add a row to the model. |
IColumn |
getColumn(int idx)
Retrieve a column specified by it's index. |
IColumn |
getColumn(java.lang.String id)
Retrieve a column by it's ID. |
int |
getColumnCount()
Retrieve the number of columns. |
IRow |
getRow(int idx)
Retrieve a specific row. |
int |
getRowCount()
Return the number of rows in the model. |
void |
remColumn(IColumn column)
Remove a column from the model. |
void |
remRow(IRow row)
Remove row from the model. |
Methods inherited from class de.jaret.util.ui.table.model.AbstractJaretTableModel |
---|
addJaretTableModelListener, fireCellChanged, fireColumnAdded, fireColumnChanged, fireColumnRemoved, fireRowAdded, fireRowChanged, fireRowRemoved, fireTableDataChanged, isEditable, removeJaretTableModelListener, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.jaret.util.ui.table.model.IJaretTableModel |
---|
addJaretTableModelListener, isEditable, removeJaretTableModelListener, setValue |
Field Detail |
---|
protected java.util.List<IRow> _rows
protected java.util.List<IColumn> _cols
Constructor Detail |
---|
public DefaultJaretTableModel()
Method Detail |
---|
public int getRowCount()
getRowCount
in interface IJaretTableModel
public IRow getRow(int idx)
getRow
in interface IJaretTableModel
idx
- index of the row
public void addRow(IRow row)
row
- row to addpublic void addRow(int index, IRow row)
index
- index the row will be insertedrow
- row to addpublic void remRow(IRow row)
row
- row to removepublic int getColumnCount()
getColumnCount
in interface IJaretTableModel
public IColumn getColumn(int idx)
getColumn
in interface IJaretTableModel
idx
- index of the column to retrieve
public IColumn getColumn(java.lang.String id)
getColumn
in interface IJaretTableModel
getColumn
in class AbstractJaretTableModel
id
- id of the column to look for
null
if no Column with the id could be found.public void addColumn(IColumn column)
addColumn
in interface IJaretTableModel
column
- col to addpublic void remColumn(IColumn column)
column
- col to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |