R
- the row typeC
- the column typepublic interface XGridColumn<R,C>
Type | Property and Description |
---|---|
@NonNull Property<XGridColumn.Alignment> |
alignment
The alignment
|
@NonNull Property<java.util.function.Supplier<java.util.List<AutoFilterEntry<R,C,java.lang.Object>>>> |
autoFilterDataSupplier
Provides predefined filter values
|
@NonNull Property<CellValueMatcherFunction<R,C,java.lang.Object>> |
autoFilterMatcherFunction
The auto filter matcher used to match elements
|
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> |
autoFilterTextFunction
Converts cell values for presentation in the autofilter.
|
@NonNull Property<XGridColumn.AutoFilterType> |
autoFilterType
The auto filter type
|
@NonNull Property<java.lang.Boolean> |
autoWidth
Calculate the width from the content
|
@NonNull Property<java.util.function.Function<R,C>> |
cellValueFunction
The provider of the cell value
|
@NonNull Property<ExportValueFunction<R,C>> |
exportValueFunction
Converts cell values for data export.
|
@NonNull Property<CellDataFunction<R,C,java.net.URI>> |
iconFunction
The icon provider who converts the cell value to a rendered icon
|
@NonNull Property<java.net.URI> |
icon
The icon to display
|
@NonNull Property<java.lang.Integer> |
index
Property for the column index
|
@NonNull Property<java.lang.String> |
label
The label property
|
@NonNull Property<java.lang.Integer> |
maxWidth
The maximum width.
|
@NonNull Property<CellMetaDataFunction<R,C>> |
metaDataFunction
Function consulted to retrieve cell meta data
|
@NonNull Property<java.lang.Integer> |
minWidth
The minimum width
|
@NonNull Property<java.lang.String> |
notPresentableValuePresentation
presentation of not presentable values.
|
@NonNull Property<java.util.Comparator<R>> |
sorter
Property for the sort of this column
|
@NonNull Property<XGridColumn.SortingBehavior> |
sortingBehavior
The sorting behavior type
|
@NonNull Property<XGridColumn.Sorting> |
sorting
The sorting type
|
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> |
textFunction
The text provider who converts the cell value to a rendered text
|
Modifier and Type | Interface and Description |
---|---|
static class |
XGridColumn.Alignment
Column alignment
|
static class |
XGridColumn.AutoFilterType
Type of the auto filters
|
static class |
XGridColumn.Sorting
Column sorting
|
static class |
XGridColumn.SortingBehavior
Column sorting behavior
|
Modifier and Type | Method and Description |
---|---|
@NonNull Property<XGridColumn.Alignment> |
alignmentProperty()
The alignment
|
@NonNull Property<java.util.function.Supplier<java.util.List<AutoFilterEntry<R,C,java.lang.Object>>>> |
autoFilterDataSupplierProperty()
Provides predefined filter values
|
@NonNull Property<CellValueMatcherFunction<R,C,java.lang.Object>> |
autoFilterMatcherFunctionProperty()
The auto filter matcher used to match elements
|
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> |
autoFilterTextFunctionProperty()
Converts cell values for presentation in the autofilter.
|
@NonNull Property<XGridColumn.AutoFilterType> |
autoFilterTypeProperty()
The auto filter type
|
@NonNull Property<java.lang.Boolean> |
autoWidthProperty()
Calculate the width from the content
|
@NonNull Property<java.util.function.Function<R,C>> |
cellValueFunctionProperty()
The provider of the cell value
|
void |
dispose()
dispose column
|
@NonNull Property<ExportValueFunction<R,C>> |
exportValueFunctionProperty()
Converts cell values for data export.
|
java.lang.Object |
getExportValue(R element)
get export value for the given element using
exportValueFunctionProperty() |
@NonNull XGrid<R,XGridContentProvider<R>> |
getGrid()
Grid which contains this column
|
@NonNull Property<CellDataFunction<R,C,java.net.URI>> |
iconFunctionProperty()
The icon provider who converts the cell value to a rendered icon
|
@NonNull Property<java.net.URI> |
iconProperty()
The icon to display
|
@NonNull Property<java.lang.Integer> |
indexProperty()
Property for the column index
|
@NonNull Property<java.lang.String> |
labelProperty()
The label property
|
@NonNull Property<java.lang.Integer> |
maxWidthProperty()
The maximum width.
|
@NonNull Property<CellMetaDataFunction<R,C>> |
metaDataFunctionProperty()
Function consulted to retrieve cell meta data
|
@NonNull Property<java.lang.Integer> |
minWidthProperty()
The minimum width
|
@NonNull Property<java.lang.String> |
notPresentableValuePresentationProperty()
presentation of not presentable values.
|
void |
requestUpdate()
request to update column cells
|
void |
requestUpdate(R element)
request to update the cell for a given element
|
@NonNull Property<java.util.Comparator<R>> |
sorterProperty()
Property for the sort of this column
|
@NonNull Property<XGridColumn.SortingBehavior> |
sortingBehaviorProperty()
The sorting behavior type
|
@NonNull Property<XGridColumn.Sorting> |
sortingProperty()
The sorting type
|
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> |
textFunctionProperty()
The text provider who converts the cell value to a rendered text
|
@NonNull Property<java.lang.String> labelProperty
@NonNull Property<java.lang.String> notPresentableValuePresentationProperty
this may happen if values are not resolvable or cannot be applied to column text functions
The default value is #N/A
@NonNull Property<java.net.URI> iconProperty
@NonNull Property<java.lang.Integer> maxWidthProperty
For a fixed width set maxWidthProperty()
and
minWidthProperty()
to the same value
@NonNull Property<java.lang.Integer> minWidthProperty
For a fixed width set maxWidthProperty()
and
minWidthProperty()
to the same value
@NonNull Property<java.lang.Boolean> autoWidthProperty
Default is Boolean.FALSE
@NonNull Property<java.util.function.Function<R,C>> cellValueFunctionProperty
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> textFunctionProperty
Default provider creates a Object.toString()
representation of
the value
if the cell value is not resolvable (e.g. invalid format configuration),
the value of notPresentableValuePresentationProperty()
will be
provided
@NonNull Property<CellDataFunction<R,C,java.net.URI>> iconFunctionProperty
Default provider returns null
for the icon uri
@NonNull Property<XGridColumn.AutoFilterType> autoFilterTypeProperty
Default filter type XGridColumn.AutoFilterType.NONE
@NonNull Property<XGridColumn.Sorting> sortingProperty
Default sorting XGridColumn.Sorting.NONE
@NonNull Property<XGridColumn.SortingBehavior> sortingBehaviorProperty
Default sorting behavior XGridColumn.SortingBehavior.UP_DOWN
@NonNull Property<XGridColumn.Alignment> alignmentProperty
Default alignment XGridColumn.Alignment.LEFT
@NonNull Property<CellValueMatcherFunction<R,C,java.lang.Object>> autoFilterMatcherFunctionProperty
Default matcher use Object.equals(Object)
of the cell value
@NonNull Property<java.util.function.Supplier<java.util.List<AutoFilterEntry<R,C,java.lang.Object>>>> autoFilterDataSupplierProperty
Default supplier provides an empty list
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> autoFilterTextFunctionProperty
Property value is initially null
If property value is null
the
textFunctionProperty()
is used.
@NonNull Property<java.util.Comparator<R>> sorterProperty
Default comparator uses cellValueFunctionProperty()
if cell
value is instanceof
Comparable
and
textFunctionProperty()
otherwise
@NonNull Property<java.lang.Integer> indexProperty
@NonNull Property<ExportValueFunction<R,C>> exportValueFunctionProperty
Property value is initially DefaultExportValueFunction
@NonNull Property<CellMetaDataFunction<R,C>> metaDataFunctionProperty
Property value is initialized with a default function who returns no meta data
@NonNull Property<java.lang.String> labelProperty()
@NonNull Property<java.lang.String> notPresentableValuePresentationProperty()
this may happen if values are not resolvable or cannot be applied to column text functions
The default value is #N/A
@NonNull Property<java.net.URI> iconProperty()
@NonNull Property<java.lang.Integer> maxWidthProperty()
For a fixed width set maxWidthProperty()
and
minWidthProperty()
to the same value
@NonNull Property<java.lang.Integer> minWidthProperty()
For a fixed width set maxWidthProperty()
and
minWidthProperty()
to the same value
@NonNull Property<java.lang.Boolean> autoWidthProperty()
Default is Boolean.FALSE
@NonNull Property<java.util.function.Function<R,C>> cellValueFunctionProperty()
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> textFunctionProperty()
Default provider creates a Object.toString()
representation of
the value
if the cell value is not resolvable (e.g. invalid format configuration),
the value of notPresentableValuePresentationProperty()
will be
provided
@NonNull Property<CellDataFunction<R,C,java.net.URI>> iconFunctionProperty()
Default provider returns null
for the icon uri
@NonNull Property<XGridColumn.AutoFilterType> autoFilterTypeProperty()
Default filter type XGridColumn.AutoFilterType.NONE
@NonNull Property<XGridColumn.Sorting> sortingProperty()
Default sorting XGridColumn.Sorting.NONE
@NonNull Property<XGridColumn.SortingBehavior> sortingBehaviorProperty()
Default sorting behavior XGridColumn.SortingBehavior.UP_DOWN
@NonNull Property<XGridColumn.Alignment> alignmentProperty()
Default alignment XGridColumn.Alignment.LEFT
@NonNull Property<CellValueMatcherFunction<R,C,java.lang.Object>> autoFilterMatcherFunctionProperty()
Default matcher use Object.equals(Object)
of the cell value
@NonNull Property<java.util.function.Supplier<java.util.List<AutoFilterEntry<R,C,java.lang.Object>>>> autoFilterDataSupplierProperty()
Default supplier provides an empty list
@NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> autoFilterTextFunctionProperty()
Property value is initially null
If property value is null
the
textFunctionProperty()
is used.
@NonNull Property<java.util.Comparator<R>> sorterProperty()
Default comparator uses cellValueFunctionProperty()
if cell
value is instanceof
Comparable
and
textFunctionProperty()
otherwise
@NonNull Property<java.lang.Integer> indexProperty()
@NonNull Property<ExportValueFunction<R,C>> exportValueFunctionProperty()
Property value is initially DefaultExportValueFunction
@NonNull Property<CellMetaDataFunction<R,C>> metaDataFunctionProperty()
Property value is initialized with a default function who returns no meta data
@NonNull XGrid<R,XGridContentProvider<R>> getGrid()
void requestUpdate()
void requestUpdate(R element)
element
- the element to updatevoid dispose()
java.lang.Object getExportValue(R element)
exportValueFunctionProperty()
element
- the element