Annotation Type UITableColumn
-
@Retention(RUNTIME) @Target(METHOD) @LinkkiAspect(TableColumnAspectDefinitionCreator.class) public @interface UITableColumn
Annotation that allows to customize the column for a PMO's field/method that is rendered in a table column.- Implementation Note:
- This annotation is not required for a field/method to be rendered in a column. All
fields/methods with one of the
@UI...annotations (@UITextField,@UICheckBoxetc.) are rendered automatically. This annotation allows optional customization and can be omitted if no customization is needed.
-
-
Field Summary
Fields Modifier and Type Fields Description static intUNDEFINED_FLEX_GROWstatic intUNDEFINED_WIDTH
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description UITableColumn.CollapseModecollapsibleConfigures whether a column can be collapsed and whether it initially is.intflexGrowConfigures the flex grow ratio for the column.booleansortableConfigures whether a column can be sorted.TextAlignmenttextAlignConfigures the alignment of text inside the table column, as well as the header and footer.intwidthConfigures the width in pixels for the column.
-
-
-
-
flexGrow
int flexGrow
Configures the flex grow ratio for the column.- See Also:
Grid.Column.setFlexGrow(int)- Implementation Requirements:
- The flex grow ratio defines what part of excess available space the layout allots to
this column. If not set, the column has flex grow of 1.
If
width()is set,flexGrow()will take effect in additional towidth().
- Default:
- -1
-
-
-
collapsible
UITableColumn.CollapseMode collapsible
Configures whether a column can be collapsed and whether it initially is.- Implementation Note:
- Table columns are by default not collapsible.
- Default:
- org.linkki.core.ui.table.column.annotation.UITableColumn.CollapseMode.NOT_COLLAPSIBLE
-
-
-
textAlign
TextAlignment textAlign
Configures the alignment of text inside the table column, as well as the header and footer.This does not affect the alignment of text inside fields.
- Default:
- org.linkki.core.ui.aspects.types.TextAlignment.DEFAULT
-
-
-
sortable
boolean sortable
Configures whether a column can be sorted. The annotated method- must be a getter method (model objects/model attributes are not supported)
- must return a type that is
Comparable
- Default:
- false
-
-