|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.table.model.AbstractColumn
de.jaret.util.ui.table.model.IndexColumn
public class IndexColumn
A simple column displaying the row index.
| Field Summary | |
|---|---|
protected java.lang.String |
_headerLabel
haeder label for the column. |
protected JaretTable |
_table
table the column is for. |
static java.lang.String |
ID
id of the index col. |
| Fields inherited from class de.jaret.util.ui.table.model.AbstractColumn |
|---|
_listeners |
| Constructor Summary | |
|---|---|
IndexColumn(JaretTable table,
java.lang.String headerLabel)
Construct an index column. |
|
| Method Summary | |
|---|---|
int |
compare(IRow r1,
IRow r2)
|
java.lang.Class<?> |
getContentClass()
To allow null values as column value and to support cell editing and displaying a column may support this method for supplying the information. |
java.lang.String |
getHeaderLabel()
Return a textual label to be displayed as the column header label. |
java.lang.String |
getId()
Id is used for storing the column width. |
java.lang.Object |
getValue(IRow row)
Retrieve the value of the column for the given row. |
boolean |
isEditable()
Deafult: cols are aditable. |
boolean |
isEditable(IRow row)
Default: delegate to isEditable. |
void |
setValue(IRow row,
java.lang.Object value)
Set the value of the coloumn for a given row. |
boolean |
supportsSorting()
Check whether the column supports sorting. |
| Methods inherited from class de.jaret.util.ui.table.model.AbstractColumn |
|---|
addColumnListener, displayHeader, fireValueChanged, getContentClass, remColumnListener |
| 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.IColumn |
|---|
addColumnListener, displayHeader, getContentClass, remColumnListener |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
public static final java.lang.String ID
protected JaretTable _table
protected java.lang.String _headerLabel
| Constructor Detail |
|---|
public IndexColumn(JaretTable table,
java.lang.String headerLabel)
table - table the indexcolumn is used forheaderLabel - hedare label to use| Method Detail |
|---|
public java.lang.String getId()
getId in interface IColumnpublic java.lang.String getHeaderLabel()
getHeaderLabel in interface IColumnpublic java.lang.Object getValue(IRow row)
getValue in interface IColumnrow - the row
public void setValue(IRow row,
java.lang.Object value)
setValue in interface IColumnrow - the rowvalue - value to set
public int compare(IRow r1,
IRow r2)
compare in interface java.util.Comparator<IRow>public boolean supportsSorting()
supportsSorting in interface IColumnpublic java.lang.Class<?> getContentClass()
getContentClass in interface IColumnpublic boolean isEditable()
isEditable in interface IColumnisEditable in class AbstractColumnpublic boolean isEditable(IRow row)
isEditable. Check whether a a specific cell of the column can be edited. Never editable.
isEditable in interface IColumnisEditable in class AbstractColumnrow - row specifying the cell in the column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||