Package com.storedobject.ui.accounts
Class StatementView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.grid.Grid<LedgerEntry>
- All Implemented Interfaces:
ClickHandler
,CloseableView
,ExecutableView
,HasColumns<LedgerEntry>
,SupportWindowMode
,ValueChangeHandler
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.grid.Grid<LedgerEntry>>
,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<LedgerEntry>>
,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.grid.Grid<LedgerEntry>>
,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<LedgerEntry>,
,com.vaadin.flow.component.grid.GridSortOrder<LedgerEntry>> com.vaadin.flow.data.provider.HasDataGenerators<LedgerEntry>
,com.vaadin.flow.data.provider.HasDataView<LedgerEntry,
,Void, com.vaadin.flow.component.grid.dataview.GridDataView<LedgerEntry>> com.vaadin.flow.data.provider.HasLazyDataView<LedgerEntry,
,Void, com.vaadin.flow.component.grid.dataview.GridLazyDataView<LedgerEntry>> com.vaadin.flow.data.provider.HasListDataView<LedgerEntry,
,com.vaadin.flow.component.grid.dataview.GridListDataView<LedgerEntry>> Serializable
,Iterable<LedgerEntry>
,Runnable
,Collection<LedgerEntry>
,EventListener
,List<LedgerEntry>
,SequencedCollection<LedgerEntry>
- 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
ConstructorsConstructorDescriptionStatementView
(Account account) StatementView
(Account account, boolean lockAccountField) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addExtraButtons
(ButtonLayout buttonLayout) void
clicked
(com.vaadin.flow.component.Component c) Default implementation, does nothing.protected AccountField
<Account> com.vaadin.flow.component.Component
You can have a "header row" (as the first row) that covers the whole grid.getCredit
(LedgerEntry le) getDebit
(LedgerEntry le) protected LedgerWindow
int
getRelativeColumnWidth
(String columnName) This method is invoked when the real column is created to determine the relative width of the column.protected List
<LedgerEntry> com.vaadin.flow.component.grid.ColumnTextAlign
getTextAlign
(String columnName) Determines the text alignment of the column.boolean
isColumnSortable
(String columnName) Check if the column is in-memory and back-end sortable.protected void
loadingAccount
(Account account) void
setAccount
(Account account) void
valueChanged
(ChangedValues changedValues) This default implementation invokes theExecutableView.clicked(Component)
with the changed field as the parameter.Methods inherited from class com.storedobject.vaadin.ListGrid
add, add, addAll, addAll, addViewFilter, clear, clearViewFilters, contains, containsAll, createListDataProvider, get, getData, getDataProvider, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, onAttach, onDetach, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, setData, setViewFilter, size, sort, 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, createEditor, 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, setItems, setItems, setItems, setItems, setItemSelectableProvider, setMultiSort, setMultiSort, setMultiSort, setMultiSort, setNestedNullBehavior, setPageSize, setPartNameGenerator, setRowsDraggable, setSelectionDragDetails, setSelectionMode, setSelectionModel, setSelectionPreservationMode, setSortableColumns, setTooltipGenerator, setUniqueKeyProperty, setUniqueKeyProvider, sort, 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.vaadin.ExecutableView
abort, clean, close, createMenuItem, error, execute, execute, getMenuIconName, getMenuItem, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, trackValueChange, tray, warning
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
addItemSelectedListener, addItemsSelectedListener, appendHeader, clearAlerts, compact, configure, constructed, createColumn, createColumn, createColumn, createColumn, createColumn, createComponentColumn, createDecoratedWindow, createFooters, 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, getSelected, getView, getViewComponent, ignoreCaseForColumnSorting, includeColumn, isColumnFrozen, isColumnResizable, isColumnVisible, prependFooter, prependHeader, refresh, refresh, refresh, removeItemSelectedListener, render, select, select, setCaption, setColumnFrozen, setColumnResizable, setColumnVisible, setMethodHandlerHost, sort, sort, sortOrder, sortOrder, 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.data.provider.HasLazyDataView
setItems, setItems
Methods inherited from interface com.vaadin.flow.data.provider.HasListDataView
setItems, setItems
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.vaadin.util.SupportWindowMode
createWindow
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
StatementView
public StatementView() -
StatementView
-
StatementView
-
-
Method Details
-
createAccountField
-
getAccount
-
setAccount
-
createHeader
public com.vaadin.flow.component.Component createHeader()Description copied from interface:HasColumns
You can have a "header row" (as the first row) that covers the whole grid. Typically, such a row is to show your own buttons or components to customize the grid. The default implementation returns null and thus, no such row is created. (Please note thatHasColumns.createHeaders()
} is invoked before this method for adding other header rows just above the main header row. This may be used for column grouping etc.)- Specified by:
createHeader
in interfaceHasColumns<LedgerEntry>
- Returns:
- Component to be used as the "header row".
-
addExtraButtons
-
getTextAlign
Description copied from interface:HasColumns
Determines the text alignment of the column.- Specified by:
getTextAlign
in interfaceHasColumns<LedgerEntry>
- Parameters:
columnName
- Column name- Returns:
- Default implementation returns START for all columns.
-
getRelativeColumnWidth
Description copied from interface:HasColumns
This method is invoked when the real column is created to determine the relative width of the column. It can be any positive integer and applied relative to the values returned for other columns. A value of zero means that the column width is fixed.Note: This is set to the column via the
Grid.Column.setFlexGrow(int)
method. So, if you directly use theGrid.Column.setFlexGrow(int)
method, this can be overridden.- Specified by:
getRelativeColumnWidth
in interfaceHasColumns<LedgerEntry>
- Parameters:
columnName
- Name of the column.- Returns:
- Default implementation returns -1, meaning the value should not be applied.
-
isColumnSortable
Description copied from interface:HasColumns
Check if the column is in-memory and back-end sortable.- Specified by:
isColumnSortable
in interfaceHasColumns<LedgerEntry>
- Parameters:
columnName
- Column name- Returns:
- Default implementation returns
true
.
-
getParticulars
-
getDebit
-
getCredit
-
getBalance
-
clicked
public void clicked(com.vaadin.flow.component.Component c) Description copied from interface:ExecutableView
Default implementation, does nothing.- Specified by:
clicked
in interfaceClickHandler
- Specified by:
clicked
in interfaceExecutableView
- Parameters:
c
- Component
-
valueChanged
Description copied from interface:ExecutableView
This default implementation invokes theExecutableView.clicked(Component)
with the changed field as the parameter. However, nothing happens if the field is not a component.- Specified by:
valueChanged
in interfaceExecutableView
- Specified by:
valueChanged
in interfaceValueChangeHandler
- Parameters:
changedValues
- Change information (field and it value changes) wrapped intoChangedValues
.
-
loadingAccount
-
getTail
-
getLedger
-