R
- the row typeCP
- the content provider typepublic interface XGrid<R,CP extends XGridContentProvider<R>>
Type | Property and Description |
---|---|
@NonNull Property<CP> |
contentProvider
The default content provider
|
@NonNull Property<java.util.Comparator<R>> |
defaultSort
The default sort.
|
@NonNull Property<ElementComparer<R>> |
elementComparer
The element comparer property
|
@NonNull Property<java.util.Locale> |
locale
The current locale used by the grid
|
@NonNull Property<RowMetaDataFunction<R>> |
metaDataFunction
Function consulted to retrieve row meta data
|
@NonNull Property<XGrid.SelectionMode> |
selectionMode
The selection mode.
|
@NonNull Property<XSelection<R>> |
selection
The selection property
|
Modifier and Type | Interface and Description |
---|---|
static class |
XGrid.SelectionMode
Selection mode
|
Modifier and Type | Method and Description |
---|---|
@NonNull Property<CP> |
contentProviderProperty()
The default content provider
|
@NonNull XGridColumn<R,java.lang.Boolean> |
createCheckedColumn(java.lang.String id,
@NonNull java.util.function.Function<R,java.lang.Boolean> cellValueFunction)
Create a column which presents boolean values as check box
|
<C> @NonNull XGridColumn<R,C> |
createColumn(java.lang.String id,
@NonNull java.util.function.Function<R,C> cellValueFunction)
Create a column
|
@NonNull Property<java.util.Comparator<R>> |
defaultSortProperty()
The default sort.
|
void |
dispose()
dispose grid
|
@NonNull Property<ElementComparer<R>> |
elementComparerProperty()
The element comparer property
|
@NonNull java.util.List<XGridColumn<R,?>> |
getColumns() |
@NonNull java.lang.Object[][] |
getData()
export shown data
|
@NonNull Property<java.util.Locale> |
localeProperty()
The current locale used by the grid
|
@NonNull Property<RowMetaDataFunction<R>> |
metaDataFunctionProperty()
Function consulted to retrieve row meta data
|
@NonNull Property<XGrid.SelectionMode> |
selectionModeProperty()
The selection mode.
|
@NonNull Property<XSelection<R>> |
selectionProperty()
The selection property
|
@NonNull Property<XGrid.SelectionMode> selectionModeProperty
Default XGrid.SelectionMode.SINGLE_ROW
@NonNull Property<java.util.Comparator<R>> defaultSortProperty
Default null
@NonNull Property<java.util.Locale> localeProperty
Default Locale.getDefault()
@NonNull Property<CP extends XGridContentProvider<R>> contentProviderProperty
Default null
@NonNull Property<XSelection<R>> selectionProperty
Default an empty selection
@NonNull Property<ElementComparer<R>> elementComparerProperty
Default implementation provides #hashCode()
and
#equals(Object)
of R
@NonNull Property<RowMetaDataFunction<R>> metaDataFunctionProperty
Property value is initialized with a default function who returns no meta data
<C> @NonNull XGridColumn<R,C> createColumn(java.lang.String id, @NonNull java.util.function.Function<R,C> cellValueFunction)
C
- the cell typeid
- the id of the columncellValueFunction
- the cell value functionXGridColumn.cellValueFunctionProperty()
@NonNull XGridColumn<R,java.lang.Boolean> createCheckedColumn(java.lang.String id, @NonNull java.util.function.Function<R,java.lang.Boolean> cellValueFunction)
id
- the id of the columncellValueFunction
- the cell value functionXGridColumn.cellValueFunctionProperty()
@NonNull Property<XGrid.SelectionMode> selectionModeProperty()
Default XGrid.SelectionMode.SINGLE_ROW
@NonNull Property<java.util.Comparator<R>> defaultSortProperty()
Default null
@NonNull Property<java.util.Locale> localeProperty()
Default Locale.getDefault()
@NonNull Property<CP> contentProviderProperty()
Default null
@NonNull Property<XSelection<R>> selectionProperty()
Default an empty selection
@NonNull Property<ElementComparer<R>> elementComparerProperty()
Default implementation provides #hashCode()
and
#equals(Object)
of R
@NonNull java.util.List<XGridColumn<R,?>> getColumns()
@NonNull Property<RowMetaDataFunction<R>> metaDataFunctionProperty()
Property value is initialized with a default function who returns no meta data
void dispose()
@NonNull java.lang.Object[][] getData()
if the content is empty an empty array will be exported