|
||||||||||
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
public abstract class AbstractJaretTableModel
Abstract base implementation of a JaretTableModel.
Field Summary | |
---|---|
protected java.util.List<IJaretTableModelListener> |
_listeners
registered listeners. |
Constructor Summary | |
---|---|
AbstractJaretTableModel()
|
Method Summary | |
---|---|
void |
addJaretTableModelListener(IJaretTableModelListener jtml)
Add a listener listening for changes on the model. |
protected void |
fireCellChanged(IRow row,
IColumn column)
Inform listeners about a changed cell. |
protected void |
fireColumnAdded(int idx,
IColumn column)
Inform listeners about an added column. |
protected void |
fireColumnChanged(IColumn column)
Inform listeners about a changed column. |
protected void |
fireColumnRemoved(IColumn column)
Inform listeners about a removed column. |
protected void |
fireRowAdded(int idx,
IRow row)
Inform listeners about an added row. |
protected void |
fireRowChanged(IRow row)
Inform listeners abou a changed row. |
protected void |
fireRowRemoved(IRow row)
Inform listeners about a removed row. |
protected void |
fireTableDataChanged()
Inform listeners about a general change of the model data. |
IColumn |
getColumn(java.lang.String id)
Retrieve a column specified by it's id. |
boolean |
isEditable(IRow row,
IColumn column)
Check whether a cell is editable. |
void |
removeJaretTableModelListener(IJaretTableModelListener jtml)
Remove a listener on the model. |
void |
setValue(IRow row,
IColumn column,
java.lang.Object value)
Set the value of a particular cell. |
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 |
---|
addColumn, getColumn, getColumnCount, getRow, getRowCount |
Field Detail |
---|
protected java.util.List<IJaretTableModelListener> _listeners
Constructor Detail |
---|
public AbstractJaretTableModel()
Method Detail |
---|
public IColumn getColumn(java.lang.String id)
getColumn
in interface IJaretTableModel
id
- id of the column to retrieve
null
if the column coud not be foundpublic void setValue(IRow row, IColumn column, java.lang.Object value)
setValue
in interface IJaretTableModel
row
- row of the cellcolumn
- column of the cellvalue
- the value to be storedpublic boolean isEditable(IRow row, IColumn column)
isEditable
in interface IJaretTableModel
row
- row of the cellcolumn
- column of the cell
public void addJaretTableModelListener(IJaretTableModelListener jtml)
addJaretTableModelListener
in interface IJaretTableModel
jtml
- listener to addpublic void removeJaretTableModelListener(IJaretTableModelListener jtml)
removeJaretTableModelListener
in interface IJaretTableModel
jtml
- listener to removeprotected void fireRowAdded(int idx, IRow row)
idx
- index of the rowrow
- the rowprotected void fireRowRemoved(IRow row)
row
- the removed rowprotected void fireRowChanged(IRow row)
row
- the changed rowprotected void fireColumnAdded(int idx, IColumn column)
idx
- indexcolumn
- columnprotected void fireColumnRemoved(IColumn column)
column
- the now missing columnprotected void fireColumnChanged(IColumn column)
column
- changed colprotected void fireCellChanged(IRow row, IColumn column)
row
- row of the cellcolumn
- olumn of the cellprotected void fireTableDataChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |