|
||||||||||
| 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.simple.SimpleColumn
public class SimpleColumn
Simple implementation of a column for use in the SimpleJaretTableModel.
| Field Summary |
|---|
| Fields inherited from class de.jaret.util.ui.table.model.AbstractColumn |
|---|
_listeners |
| Constructor Summary | |
|---|---|
SimpleColumn(int index,
SimpleJaretTableModel model)
Construct a column. |
|
| Method Summary | |
|---|---|
int |
compare(IRow o1,
IRow o2)
Sorting set null < non-null, non comparables are equal. |
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. |
void |
setHeaderLabel(java.lang.String label)
Allow setting of the header label. |
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, isEditable, isEditable, remColumnListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public SimpleColumn(int index,
SimpleJaretTableModel model)
index - indexmodel - table model the column is part of| Method Detail |
|---|
public void setHeaderLabel(java.lang.String label)
label - the labelpublic java.lang.Class<?> getContentClass()
public java.lang.String getHeaderLabel()
public java.lang.String getId()
public java.lang.Object getValue(IRow row)
row - the row
public void setValue(IRow row,
java.lang.Object value)
row - the rowvalue - value to setpublic boolean supportsSorting()
public int compare(IRow o1,
IRow o2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||