Package com.storedobject.ui
Interface EditableDataGrid<T>
- Type Parameters:
T- Type of data in the grid.
- All Known Implementing Classes:
AbstractInvoiceBrowser,AbstractLinkGrid,AbstractReceiveMaterialReturned,AbstractReceiveMaterialTransferred,AbstractRequestMaterial,AbstractReturnMaterial,AbstractSale,AbstractSendAndReceiveMaterial,ApproveTransaction,BaseCustomerInvoiceBrowser,BaseProcessMaterialRequest,BaseReceiveMaterialRequested,BaseRequestMaterial,BaseSupplierInvoiceBrowser,CrossServerManager,CustomerInvoiceBrowser,DetailLinkGrid,EditableGrid,EditableObjectGrid,GRN,InquiryBrowser,JournalVoucherBrowser,ListEditor,LoanOutItems,ManageBiometric,ObjectBrowser,ObjectBrowserEditor,ObjectBrowserViewer,ObjectListEditor,ObjectSearchBrowser,PackingUnitBrowser,POBrowser,ProcessMaterialRequest,ReceiveMaterialRequested,ReceiveMaterialReturned,ReceiveMaterialTransferred,ReferenceLinkGrid,RequestMaterial,RequestTool,RestrictedSystemUserBrowser,ReturnMaterial,Sale,SendItemsForRepair,SendItemsOut,SupplierInvoiceBrowser,SystemUserGroupBrowser,TemplateBrowser,TextContentBrowser,TransferMaterial,UnitDefinitionBrowser
public interface EditableDataGrid<T>
Methods for "editable" data grids.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck whether an item can be deleted or not.default booleanCheck whether an item can be edited or not.default booleancanPostLedger(T item) Check whether financial entries can be created for the item or not.default booleancanViewLedger(T item) Check whether financial entries of this item can be viewed or not.booleanisColumnEditable(String columnName) Whether a given column is editable or not.Stream<com.vaadin.flow.component.HasValue<?, ?>> Get the stream of editable fields of this grid.
-
Method Details
-
isColumnEditable
Whether a given column is editable or not. A field will be created for editing the value only if this method returns true for a particular column.- Parameters:
columnName- Column name.- Returns:
- True/false.
-
streamEditableFields
Stream<com.vaadin.flow.component.HasValue<?,?>> streamEditableFields()Get the stream of editable fields of this grid.- Returns:
- Stream of editable fields.
-
canEdit
Check whether an item can be edited or not. (This control will be applied only for user interaction).- Parameters:
item- Item.- Returns:
- True/false.
-
canDelete
Check whether an item can be deleted or not. (This control will be applied only for user interaction).- Parameters:
item- Item to delete.- Returns:
- True/false.
-
canPostLedger
Check whether financial entries can be created for the item or not. (This control will be applied for user interaction).- Parameters:
item- Item for which financial entries to be created.- Returns:
- True/false.
-
canViewLedger
Check whether financial entries of this item can be viewed or not. (This control will be applied for user interaction).- Parameters:
item- Item for which financial entries to be viewed.- Returns:
- True/false.
-