T - the grid bean typepublic class EditColumnConfigurator<T> extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
Grid.Column<T> |
checkbox(ItemUpdater<T,Boolean> itemUpdater)
Configures the column to have a checkbox editor with the given item
updater.
|
<V> Grid.Column<T> |
custom(AbstractField<?,V> component,
ItemUpdater<T,V> itemUpdater) |
Grid.Column<T> |
getColumn()
Gets the column.
|
<E extends Enum<E>> |
select(ItemUpdater<T,E> itemUpdater,
Class<E> enumType)
Configures the column to have a select editor with the given item
updater, enum type using toString() as the string representation.
|
<E extends Enum<E>> |
select(ItemUpdater<T,E> itemUpdater,
Class<E> enumType,
SerializableFunction<E,String> getStringRepresentation)
Configures the column to have a select editor with the given item
updater, enum type and string representation callback.
|
Grid.Column<T> |
select(ItemUpdater<T,String> itemUpdater,
List<String> options)
Configures the column to have a select editor with the given item updater
and options.
|
Grid.Column<T> |
select(ItemUpdater<T,String> itemUpdater,
String... options)
Configures the column to have a select editor with the given item updater
and options.
|
Grid.Column<T> |
text(ItemUpdater<T,String> itemUpdater)
Configures the column to have a text editor with the given item updater.
|
public Grid.Column<T> getColumn()
public Grid.Column<T> text(ItemUpdater<T,String> itemUpdater)
itemUpdater - the callback function that is called when item is changed. It
receives two arguments: item, newValue.public <V> Grid.Column<T> custom(AbstractField<?,V> component, ItemUpdater<T,V> itemUpdater)
public Grid.Column<T> checkbox(ItemUpdater<T,Boolean> itemUpdater)
itemUpdater - the callback function that is called when item is changed. It
receives two arguments: item, newValue.public Grid.Column<T> select(ItemUpdater<T,String> itemUpdater, List<String> options)
itemUpdater - the callback function that is called when item is changed. It
receives two arguments: item, newValue.options - options provided for the select editorpublic Grid.Column<T> select(ItemUpdater<T,String> itemUpdater, String... options)
itemUpdater - the callback function that is called when item is changed. It
receives two arguments: item, newValue.options - options provided for the select editorpublic <E extends Enum<E>> Grid.Column<T> select(ItemUpdater<T,E> itemUpdater, Class<E> enumType, SerializableFunction<E,String> getStringRepresentation)
select(ItemUpdater, String...).E - the enum typeitemUpdater - the callback function that is called when item is changed. It
receives two arguments: item and newValue.enumType - the enum classgetStringRepresentation - callback used to get the string representation for each enum
constant.IllegalArgumentException - if any of the enum constants have the same string
representationpublic <E extends Enum<E>> Grid.Column<T> select(ItemUpdater<T,E> itemUpdater, Class<E> enumType)
select(ItemUpdater, String...).E - the enum typeitemUpdater - the callback function that is called when item is changed. It
receives two arguments: item and newValue.enumType - the enum classCopyright © 2025. All rights reserved.