@Documented @Inherited @Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) public @interface Table
© Copyright 2008 Sans Pareil Technologies, Inc.
| Modifier and Type | Fields and Description |
|---|---|
static String |
NULL
A constant to represent
null value as default. |
| Modifier and Type | Required Element and Description |
|---|---|
String |
className
The fully qualified name of the table class to use to initialise
the annotated field.
|
String |
model
The fully qualified name of the model class used to back the table
model.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Columns |
columns
Optional columns declaration that may be used if the
model()
class cannot be annotated. |
String |
field
The field in a view that represents the table.
|
String |
filterField
The name of the filter field in
model() that is used to filter
the data in the model. |
boolean |
multipleSelection
A flag used to indicate whether the table should support multiple
selection or not.
|
String |
selectionListener
The
SelectionListener to associated with
the table. |
String |
tableModel
The fully qualified name of the table model class to use.
|
public static final String NULL
null value as default.public abstract String className
public abstract String model
public abstract boolean multipleSelection
false or single selection.public abstract String selectionListener
SelectionListener to associated with
the table. Defaults to NULL.public abstract Columns columns
model()
class cannot be annotated. The view class itself could hold the
Columns annotation, however that would restrict the view to
containing only one table. This option is more flexible by annotating
the table field.model() that are to be displayed.public abstract String filterField
model() that is used to filter
the data in the model. This is used usually with instances of
JDOFilterTableModel.model() used as a filter.