public interface Grid<G extends Grid<G>> extends Component<G>
Column
.Modifier and Type | Interface and Description |
---|---|
static class |
Grid.Attributes |
static class |
Grid.Keys |
Modifier and Type | Method and Description |
---|---|
default G |
addColumn(Column<?> column)
Adds a column to this grid.
|
default G |
addColumn(String name)
Adds a string column with the given name to this grid.
|
default G |
addColumn(String name,
Column<?> column)
Adds a column with the given property name to this grid.
|
default G |
addColumns(Collection<Column<?>> columns)
Adds a collection of columns to this grid.
|
default Optional<Column<?>> |
findColumn(String name)
Finds the column with the given property name.
|
default Column<?> |
getColumn(String name)
Retrieves the column with the given property name, if it exists.
|
default G |
idKey(String idKey)
Define the property used as the unique identifier for the data in a row.
|
default G |
removeColumn(String name)
Removes the column with the given name.
|
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default G idKey(String idKey)
idKey
- the id fielddefault G addColumns(Collection<Column<?>> columns)
columns
- the columns to adddefault G addColumn(String name, Column<?> column)
name
- the name of the propertycolumn
- the columndefault G addColumn(Column<?> column)
column
- the columndefault G addColumn(String name)
name
- the name of the propertydefault G removeColumn(String name)
name
- the column namedefault Column<?> getColumn(String name)
name
- the name of the propertyIllegalArgumentException
- if no component is found with that keyCopyright © 2021. All rights reserved.