|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IColumn
Interface for a column used in a jaret table model. The unique id is only used for storing view state information.
Method Summary | |
---|---|
void |
addColumnListener(IColumnListener cl)
Add a listener to listen on changes on the column. |
boolean |
displayHeader()
Should return true for a header to be painted. |
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.Class<?> |
getContentClass(IRow row)
To specify a content class per row this method may be implemented to reflect the appropriate class. |
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()
Check whether the column can be edited. |
boolean |
isEditable(IRow row)
Check whether a a specific cell of the column can be edited. |
void |
remColumnListener(IColumnListener cl)
Remove a column listener. |
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 interface java.util.Comparator |
---|
compare, equals |
Method Detail |
---|
java.lang.String getId()
java.lang.String getHeaderLabel()
boolean displayHeader()
java.lang.Object getValue(IRow row)
row
- the row
void setValue(IRow row, java.lang.Object value)
row
- the rowvalue
- value to setboolean supportsSorting()
java.lang.Class<?> getContentClass()
java.lang.Class<?> getContentClass(IRow row)
row
- row of which to get the content class
boolean isEditable()
boolean isEditable(IRow row)
row
- row specifying the cell in the column
void addColumnListener(IColumnListener cl)
cl
- listener to addvoid remColumnListener(IColumnListener cl)
cl
- listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |