Package com.storedobject.ui
Class EditableObjectGrid<T extends StoredObject>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.grid.Grid<T>
com.storedobject.vaadin.DataGrid<T>
com.storedobject.vaadin.ListGrid<T>
com.storedobject.ui.DataGrid<T>
com.storedobject.ui.AbstractEditableGrid<T>
com.storedobject.ui.EditableObjectGrid<T>
- Type Parameters:
T
- Type of object to edit.
- All Implemented Interfaces:
Executable
,Reentrant
,FilterMethods<T>
,HasLogic
,ObjectLoader<T>
,ObjectSearcher<T>
,ObjectSetter<T>
,ObjectsSetter<T>
,EditableDataGrid<T>
,ObjectEditorListener
,ObjectGridData<T,
,T> ObjectLoader<T>
,Transactional
,ViewFilterSupport<T>
,ClickHandler
,ExecutableView
,HasColumns<T>
,SupportWindowMode
,ValueChangeHandler
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.grid.Grid<T>>
,com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.grid.Grid<T>>
,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.grid.Grid<T>>
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasTheme
,com.vaadin.flow.component.HasValue.ValueChangeListener
,com.vaadin.flow.data.event.SortEvent.SortNotifier<com.vaadin.flow.component.grid.Grid<T>,
,com.vaadin.flow.component.grid.GridSortOrder<T>> com.vaadin.flow.data.provider.HasDataGenerators<T>
,com.vaadin.flow.data.provider.HasDataView<T,
,Void, com.vaadin.flow.component.grid.dataview.GridDataView<T>> com.vaadin.flow.data.provider.HasLazyDataView<T,
,Void, com.vaadin.flow.component.grid.dataview.GridLazyDataView<T>> com.vaadin.flow.data.provider.HasListDataView<T,
,com.vaadin.flow.component.grid.dataview.GridListDataView<T>> Serializable
,Iterable<T>
,Runnable
,Collection<T>
,EventListener
,Consumer<T>
,List<T>
,SequencedCollection<T>
- Direct Known Subclasses:
AbstractLinkGrid
,ObjectListEditor
public class EditableObjectGrid<T extends StoredObject>
extends AbstractEditableGrid<T>
implements ObjectGridData<T,T>, EditableDataGrid<T>, ObjectEditorListener
An editable grid of objects. It internally maintains an
EditableList
that provides status information on each row
of the grid.- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.grid.Grid
com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T>, com.vaadin.flow.component.grid.Grid.Column<T>, com.vaadin.flow.component.grid.Grid.DataCommunicatorBuilder<T,
U extends com.vaadin.flow.data.provider.ArrayUpdater>, com.vaadin.flow.component.grid.Grid.MultiSortPriority, com.vaadin.flow.component.grid.Grid.NestedNullBehavior, com.vaadin.flow.component.grid.Grid.SelectionMode, com.vaadin.flow.component.grid.Grid.UpdateQueue Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.storedobject.vaadin.ClickHandler
ClickHandler.ModifiedClickEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.storedobject.vaadin.HasColumns
HasColumns.SOGrid<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionEditableObjectGrid
(Class<T> objectClass) EditableObjectGrid
(Class<T> objectClass, boolean any) protected
EditableObjectGrid
(Class<T> objectClass, Iterable<String> columns) EditableObjectGrid
(Class<T> objectClass, Iterable<String> columns, boolean any) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(int index, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) com.vaadin.flow.shared.Registration
addObjectChangedListener
(ObjectChangedListener<T> listener) com.vaadin.flow.shared.Registration
addValueChangeTracker
(BiConsumer<AbstractListProvider<T>, Boolean> tracker) void
Inform the grid that we have appended an item.void
Cancel the editing if it is active.protected boolean
Invoked to check whether a change is allowed from the client side or not.void
clear()
This method doesn't clear the items.protected ObjectEditor
<T> protected AbstractListProvider
<T> createListDataProvider
(DataList<T> data) Create an instance ofListDataProvider
for the given data.protected ObjectEditor
<T> protected void
Customize the editor that will be used for editing the instances.protected void
deletedNow
(T item) This will be invoked once an item is deleted.protected void
doDeleteAction
(T object) Carry out the delete action for the object.protected void
doInsertAction
(T object) Carry out the insert action for the object.protected void
doReloadAction
(T object) Carry out the reload action for the object.protected void
Carry out the "reload all" action.protected void
doUndeleteAction
(T object) Carry out the undelete action for the object.protected void
doUpdateAction
(T object) Carry out the update action for the object.boolean
Edit a given item.protected com.vaadin.flow.component.HasValue
<?, ?> getColumnField
(String columnName) Get the field for the column.final T
final com.vaadin.flow.component.HasValue
<?, ?> Get the field for the given column name.final ObjectEditor
<T> final ObjectEditor
<T> protected void
insertedNow
(T item) This will be invoked once an item is inserted.boolean
isColumnEditable
(String columnName) All fields are editable by default unless a field for editing the value of a particular column can not be determined from itsObjectEditor
.final boolean
protected boolean
protected void
This will be invoked once all items are reloaded.protected void
reloadedNow
(T item) This will be invoked once an item is reloaded.void
removeObjectChangedListener
(ObjectChangedListener<T> listener) void
void
setAutoSaveOnMove
(boolean autoSave) Set the auto-save mode.void
setObjectSetter
(ObjectSetter<T> setter) void
setReadOnly
(boolean readOnly) Set read only.void
setViewFilter
(Predicate<T> filter) Set a filter.final Stream
<com.vaadin.flow.component.HasValue<?, ?>> Get the stream of editable fields of this grid.protected void
undeletedNow
(T item) This will be invoked once an item is undeleted.protected void
updatedNow
(T item) This will be invoked once an item is updated.void
validateData
(T item) This method is invoked to validate the item being added/edited via the UI.Methods inherited from class com.storedobject.ui.AbstractEditableGrid
changed, createEditableList, createEditor, customizeColumn, delete, getColumnOrder, getEditableList, isAdded, isColumnSortable, isDeleted, isEdited, isFromClient, isSavePending, reload, reloadAll, setEditOnSingleClick, setFromClient, streamAdded, streamAll, streamDeleted, streamEdited, update
Methods inherited from class com.storedobject.ui.DataGrid
actionAllowed, canAllowAction, doAppendAction, getActionPrefix, getDataProvider, getObjectClass, itemAppended, itemDeleted, itemInserted, itemReloaded, itemUndeleted, itemUpdated, load, load, selected, selected, setItems, setItems, setItems, setItems, setItems, setItems, setItems, setItems, sort, sort, validateAppend, validateDelete, validateInsert, validateReload, validateUndelete, validateUpdate
Methods inherited from class com.storedobject.vaadin.ListGrid
add, addViewFilter, clearViewFilters, contains, containsAll, get, getData, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, onAttach, onDetach, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, setData, size, subList, toArray, toArray
Methods inherited from class com.storedobject.vaadin.DataGrid
addConstructedListener, appendFooter, clearConstructedListeners, getColumnByKey, getColumns, getSOGrid, isColumnReorderingAllowed, setColumnReorderingAllowed, streamConstructedListeners
Methods inherited from class com.vaadin.flow.component.grid.Grid
addCellFocusListener, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnReorderListener, addColumnResizeListener, addColumns, addComponentColumn, addContextMenu, addDataGenerator, addDragEndListener, addDragStartListener, addDropListener, addFirstHeaderRow, addItemClickListener, addItemDoubleClickListener, addSelectionListener, addSortListener, addThemeVariants, addValueProvider, appendFooterRow, appendHeaderRow, asMultiSelect, asSingleSelect, compareMaybeComparables, configureBeanType, createColumn, createColumnId, createDefaultArrayUpdater, createSortingComparator, deselect, deselectAll, getAriaLabel, getArrayUpdater, getBeanType, getClassNameGenerator, getColumnLayers, getColumnRendering, getDataCommunicator, getDefaultColumnFactory, getDefaultHeaderRow, getDragFilter, getDropFilter, getDropMode, getEditor, getEmptyStateComponent, getEmptyStateText, getFooterRows, getGenericDataView, getHeaderRows, getLazyDataView, getListDataView, getNestedNullBehavior, getPageSize, getPartNameGenerator, getPropertySet, getSelectedItems, getSelectionMode, getSelectionModel, getSelectionPreservationMode, getSortOrder, getUniqueKeyProperty, getUniqueKeyProvider, initConnector, insertColumnLayer, isAllRowsVisible, isDetailsVisible, isDetailsVisibleOnClick, isMultiSort, isRowsDraggable, onDataProviderChange, onEnabledStateChanged, prependFooterRow, prependHeaderRow, recalculateColumnWidths, removeAllColumns, removeAllFooterRows, removeAllHeaderRows, removeColumn, removeColumnByKey, removeColumnLayer, removeColumns, removeFooterRow, removeHeaderRow, removeThemeVariants, scrollToEnd, scrollToIndex, scrollToItem, scrollToStart, select, setAllRowsVisible, setAriaLabel, setClassNameGenerator, setColumnKey, setColumnOrder, setColumnOrder, setColumnRendering, setColumns, setDataProvider, setDefaultMultiSortPriority, setDetailsVisible, setDetailsVisibleOnClick, setDragDataGenerator, setDragFilter, setDropFilter, setDropMode, setEmptyStateComponent, setEmptyStateText, setItemDetailsRenderer, setItemSelectableProvider, setMultiSort, setMultiSort, setMultiSort, setMultiSort, setNestedNullBehavior, setPageSize, setPartNameGenerator, setRowsDraggable, setSelectionDragDetails, setSelectionMode, setSelectionModel, setSelectionPreservationMode, setSortableColumns, setTooltipGenerator, setUniqueKeyProperty, setUniqueKeyProvider, updateSelectionModeOnClient
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListener
Methods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClicked
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.storedobject.ui.EditableDataGrid
canDelete, canEdit, canPostLedger, canViewLedger
Methods inherited from interface com.storedobject.common.Executable
act
Methods inherited from interface com.storedobject.vaadin.ExecutableView
abort, clean, clicked, close, createMenuItem, error, execute, execute, getMenuIconName, getMenuItem, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, trackValueChange, tray, valueChanged, warning
Methods inherited from interface com.storedobject.core.FilterMethods
getFilterCondition, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
Methods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListener
Methods inherited from interface com.storedobject.vaadin.HasColumns
addConstructedListener, addItemSelectedListener, addItemsSelectedListener, appendFooter, appendHeader, clearAlerts, clearConstructedListeners, compact, configure, constructed, createColumn, createColumn, createColumn, createColumn, createColumn, createComponentColumn, createDecoratedWindow, createFooters, createHeader, createHeaders, createHierarchyColumn, createHTMLColumn, createHTMLHierarchyColumn, createView, customizeColumn, customizeRenderer, deselect, deselect, executing, getApplication, getCaption, getColumn, getColumnCaption, getColumnCount, getColumnDetail, getColumnFunction, getColumnHeaderComponent, getColumnMethodName, getColumnNames, getColumnOrder, getColumnSorter, getColumnTemplate, getConfigureButton, getDataClass, getDefinedColumnCount, getFixedColumnWidth, getMenuItem, getObjectRendered, getObjectUnwrapped, getRelativeColumnWidth, getSelected, getSOGrid, getTextAlign, getView, getViewComponent, ignoreCaseForColumnSorting, includeColumn, isColumnFrozen, isColumnResizable, isColumnSortable, isColumnVisible, prependFooter, prependHeader, refresh, refresh, refresh, removeItemSelectedListener, render, select, select, setCaption, setColumnFrozen, setColumnResizable, setColumnVisible, setMethodHandlerHost, sort, sort, sortOrder, sortOrder, streamConstructedListeners, unwrap
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
Methods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, reversed, spliterator
Methods inherited from interface com.storedobject.ui.ObjectEditorListener
editingCancelled, editingEnded, editingStarted
Methods inherited from interface com.storedobject.ui.ObjectGridData
canSearch, convert, createSearchBuilder, deselect, deselectAll, doLoad, getEntityFilter, getItem, getLoadFilter, getObjectClass, getObjectCount, getSearchBuilder, getSelectionModel, isAllowAny, isSearchMode, populate, populate, populate, resetSearch, scrollTo, search, search, search, select, setLoadFilter, setObject, setObjectConsumer, setObjectConsumer, setObjects, setSelectionMode, validateFilterCondition
Methods inherited from interface com.storedobject.core.ObjectLoader
applyFilter, canContain, getAllowAny, getLinkType, getMaster, getOrderBy, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, reload, setLinkType, setLinkType, setMaster, setMaster, setOrderBy, setOrderBy
Methods inherited from interface com.storedobject.ui.ObjectLoader
addDataLoadedListener, applyFilterPredicate, clear, get, getCacheLevel, getEffectiveCondition, getFixedFilter, indexOf, load, setExtraFilter, setExtraFilter, setFilter, setFilter, setFixedFilter, setFixedFilter, setFixedFilter, setFixedFilter, size, streamAll, streamFiltered
Methods inherited from interface com.storedobject.core.ObjectSetter
accept, setObject
Methods inherited from interface com.storedobject.common.Reentrant
isReentrant
Methods inherited from interface com.storedobject.vaadin.util.SupportWindowMode
createWindow
Methods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
Methods inherited from interface com.storedobject.ui.util.ViewFilterSupport
configure, configure, configure, configureMatch, filterView, getViewFilter
-
Constructor Details
-
EditableObjectGrid
-
EditableObjectGrid
-
EditableObjectGrid
-
EditableObjectGrid
-
EditableObjectGrid
-
-
Method Details
-
isValid
- Overrides:
isValid
in classAbstractEditableGrid<T extends StoredObject>
-
createListDataProvider
Description copied from class:ListGrid
Create an instance ofListDataProvider
for the given data. The default implementation creates an instance of Vaadin's implementation. However, a modified implementation can be provided instead.- Overrides:
createListDataProvider
in classDataGrid<T extends StoredObject>
- Parameters:
data
- Data for which data provider needs to be created.- Returns:
- An instance of the
ListDataProvider
.
-
addValueChangeTracker
public com.vaadin.flow.shared.Registration addValueChangeTracker(BiConsumer<AbstractListProvider<T>, Boolean> tracker) -
getDelegatedLoader
- Specified by:
getDelegatedLoader
in interfaceObjectLoader<T extends StoredObject>
-
setObjectSetter
- Specified by:
setObjectSetter
in interfaceObjectGridData<T extends StoredObject,
T extends StoredObject>
-
setAutoSaveOnMove
public void setAutoSaveOnMove(boolean autoSave) Set the auto-save mode. If this mode is set totrue
, values will be saved from the field when jumping between rows. By default, it is off and field values will not be saved when jumping between rows.- Parameters:
autoSave
- True/false.
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends StoredObject>
- Specified by:
addAll
in interfaceList<T extends StoredObject>
- Overrides:
addAll
in classListGrid<T extends StoredObject>
-
addAll
- Specified by:
addAll
in interfaceList<T extends StoredObject>
- Overrides:
addAll
in classListGrid<T extends StoredObject>
-
add
- Specified by:
add
in interfaceCollection<T extends StoredObject>
- Specified by:
add
in interfaceList<T extends StoredObject>
- Overrides:
add
in classAbstractEditableGrid<T extends StoredObject>
-
append
Description copied from class:DataGrid
Inform the grid that we have appended an item. It will append the item to the grid only ifDataGrid.validateAppend(Object)
doesn't raise any exception. For appending the item, it invokesDataGrid.doAppendAction(Object)
method.Note: This method is an alias to
DataGrid.itemAppended(Object)
method.- Overrides:
append
in classDataGrid<T extends StoredObject>
- Parameters:
item
- Item that is newly added.
-
isColumnEditable
All fields are editable by default unless a field for editing the value of a particular column can not be determined from itsObjectEditor
.- Specified by:
isColumnEditable
in interfaceEditableDataGrid<T extends StoredObject>
- Parameters:
columnName
- Column name.- Returns:
- True/false.
-
getColumnField
Get the field for the column. (Used while editing the row). In general, it is not required to override this. If this method returnsnull
, field will be created from the respective Object Editor.- Parameters:
columnName
- Column name for which field needs to be obtained.- Returns:
- Default implementation returns
null
.
-
getField
Description copied from class:AbstractEditableGrid
Get the field for the given column name.- Overrides:
getField
in classAbstractEditableGrid<T extends StoredObject>
- Parameters:
columnName
- Name of the column for which field is required.- Returns:
- Field if found, otherwise
null
is returned.
-
streamEditableFields
Description copied from interface:EditableDataGrid
Get the stream of editable fields of this grid.- Specified by:
streamEditableFields
in interfaceEditableDataGrid<T extends StoredObject>
- Returns:
- Stream of editable fields.
-
getRowEditor
-
createObjectEditor
-
constructObjectEditor
-
getObjectEditor
-
customizeObjectEditor
protected void customizeObjectEditor()Customize the editor that will be used for editing the instances. You can get the editor by invoking the methodgetObjectEditor()
. -
setReadOnly
public void setReadOnly(boolean readOnly) Set read only.- Parameters:
readOnly
- If true, rows will not be editable.
-
isReadOnly
public final boolean isReadOnly() -
editItem
Edit a given item.- Overrides:
editItem
in classAbstractEditableGrid<T extends StoredObject>
- Parameters:
item
- Item to edit.- Returns:
- True if editing is started, otherwise false.
-
cancelEdit
public void cancelEdit()Description copied from class:AbstractEditableGrid
Cancel the editing if it is active.- Specified by:
cancelEdit
in classAbstractEditableGrid<T extends StoredObject>
-
saveEdited
public void saveEdited() -
getEditingItem
-
validateData
-
clear
public void clear()Description copied from class:AbstractEditableGrid
This method doesn't clear the items. Instead, it just invokes theAbstractEditableGrid.fireChanged(Object, int)
method withnull
as the item value andEditorAction.ALL
as the "change action". Subclasses should implement the real "clear" functionality.- Specified by:
clear
in interfaceCollection<T extends StoredObject>
- Specified by:
clear
in interfaceList<T extends StoredObject>
- Specified by:
clear
in interfaceObjectLoader<T extends StoredObject>
- Overrides:
clear
in classAbstractEditableGrid<T extends StoredObject>
-
addObjectChangedListener
public com.vaadin.flow.shared.Registration addObjectChangedListener(ObjectChangedListener<T> listener) -
removeObjectChangedListener
-
doInsertAction
Description copied from class:DataGrid
Carry out the insert action for the object. The object is already validated.- Overrides:
doInsertAction
in classDataGrid<T extends StoredObject>
- Parameters:
object
- Item that is newly added.
-
doUpdateAction
Description copied from class:DataGrid
Carry out the update action for the object. The object is already validated.- Overrides:
doUpdateAction
in classDataGrid<T extends StoredObject>
- Parameters:
object
- Item that is updated.
-
doDeleteAction
Description copied from class:DataGrid
Carry out the delete action for the object. The object is already validated.- Overrides:
doDeleteAction
in classDataGrid<T extends StoredObject>
- Parameters:
object
- Item that is deleted.
-
doUndeleteAction
Description copied from class:DataGrid
Carry out the undelete action for the object. The object is already validated.- Overrides:
doUndeleteAction
in classDataGrid<T extends StoredObject>
- Parameters:
object
- Item that is undeleted.
-
doReloadAction
Description copied from class:DataGrid
Carry out the reload action for the object. The object is already validated.- Overrides:
doReloadAction
in classDataGrid<T extends StoredObject>
- Parameters:
object
- Item that is undeleted.
-
doReloadAllAction
protected void doReloadAllAction()Description copied from class:DataGrid
Carry out the "reload all" action. All validation are already done before invoking this.- Overrides:
doReloadAllAction
in classDataGrid<T extends StoredObject>
-
insertedNow
This will be invoked once an item is inserted.- Parameters:
item
- Item.
-
updatedNow
This will be invoked once an item is updated.- Parameters:
item
- Item.
-
deletedNow
This will be invoked once an item is deleted.- Parameters:
item
- Item.
-
undeletedNow
This will be invoked once an item is undeleted.- Parameters:
item
- Item.
-
reloadedNow
This will be invoked once an item is reloaded.- Parameters:
item
- Item.
-
reloadedAllNow
protected void reloadedAllNow()This will be invoked once all items are reloaded. -
canChange
Invoked to check whether a change is allowed from the client side or not.- Parameters:
item
- Item to change.editorAction
- Editor action (One of the static values fromEditorAction
).- Returns:
- True if change is acceptable. If returned false, change will be ignored.
-
setViewFilter
Description copied from class:ListGrid
Set a filter. (All previously added filters will be cleared).- Specified by:
setViewFilter
in interfaceFilterMethods<T extends StoredObject>
- Overrides:
setViewFilter
in classListGrid<T extends StoredObject>
- Parameters:
filter
- Filter to set.
-