@UnsafeScriptable public interface ListColumnAction<I,V> extends Action
getValue(DbControl, Object)
is used to get the actual value that should be displayed in the table. If
a formatter has been defined, it is used to format the value, otherwise
the Object.toString()
method is used.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClazz()
Optional HTML class attribute that is used to style the column
through CSS.
|
Enumeration<java.lang.String,java.lang.String> |
getEnumeration()
Get an enumeration of possible values that can be found in the
column.
|
Formatter |
getExportFormatter()
Get a formatter that converts the exported value to a string that is written
to the file.
|
java.lang.String |
getExportProperty()
Override the default property when this column is used for exporting.
|
java.lang.Object |
getExportValue(DbControl dc,
I item)
Get the value that should be used when exporting to a file.
|
java.lang.String |
getFilterProperty()
Override the default property when this column is used for filtering.
|
Formatter<? super V> |
getFormatter()
Get a formatter that converts the current value to a string that is displayed
in the column.
|
java.lang.String |
getId()
ID attribute of the column.
|
java.lang.String |
getProperty()
The property name for referencing data in the column.
|
java.lang.String |
getSortProperty()
Override the default property when this column is used for sorting.
|
java.lang.String |
getStyle()
Optional HTML style attribute that is used to style the column
through CSS.
|
java.lang.String |
getTitle()
The column title.
|
java.lang.String |
getTooltip()
An optional tooltip that is displayed when the mouse is over the
column header.
|
V |
getValue(DbControl dc,
I item)
Get the value that should be displayed in the column.
|
Type |
getValueType()
The data type of the values that are referenced by the property.
|
boolean |
isExportable()
A flag to indicate if it is possible to export this column with the
generic table exporter or not.
|
boolean |
isFilterable()
A flag to indicate if filtering on this column is enabled or
not.
|
boolean |
isSortable()
A flag to indicate if sorting by this column is enabled for
not.
|
java.lang.String getId()
java.lang.String getClazz()
java.lang.String getStyle()
java.lang.String getTitle()
java.lang.String getTooltip()
java.lang.String getProperty()
Type getValueType()
boolean isSortable()
getSortProperty()
.java.lang.String getSortProperty()
boolean isFilterable()
getFilterProperty()
.java.lang.String getFilterProperty()
boolean isExportable()
getExportProperty()
.java.lang.String getExportProperty()
Formatter getExportFormatter()
Formatter.format(Object)
method is called once for
every item that is listed in the table.Object.toString()
java.lang.Object getExportValue(DbControl dc, I item)
getExportFormatter()
.dc
- An open DbControl than can be used to query the databaseitem
- The current itemEnumeration<java.lang.String,java.lang.String> getEnumeration()
Formatter<? super V> getFormatter()
Formatter.format(Object)
method is called once for
every item that is listed in the table.Object.toString()
V getValue(DbControl dc, I item)
getFormatter()
.dc
- An open DbControl than can be used to query the databaseitem
- The current item