Package io.jmix.reportsflowui.view.run
Class ReportTableView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<ViewLayout>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.reportsflowui.view.run.ReportTableView
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.router.AfterNavigationObserver,com.vaadin.flow.router.BeforeEnterObserver,com.vaadin.flow.router.BeforeLeaveObserver,com.vaadin.flow.router.HasDynamicTitle,com.vaadin.flow.router.internal.AfterNavigationHandler,com.vaadin.flow.router.internal.BeforeEnterHandler,com.vaadin.flow.router.internal.BeforeLeaveHandler,FacetOwner,FragmentOwner,Serializable
@RouteAlias(value="reports/tables",
layout=DefaultMainViewParent.class)
@Route(value="report/tables",
layout=DefaultMainViewParent.class)
@ViewController("report_ReportTableView")
@ViewDescriptor("report-table-view.xml")
@DialogMode(width="50em",
resizable=true)
public class ReportTableView
extends StandardView
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Actionsprotected CurrentUserSubstitutionprotected DataComponentsprotected DatatypeRegistryprotected InputParametersFragmentprotected Messagesprotected Metadataprotected MetadataToolsprotected Notificationsprotected OpenedDialogWindowsprotected JmixButtonprotected com.vaadin.flow.component.html.Divprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected ReportExcelHelperprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected ReportOutputDocumentprotected ReportRepositoryprotected ReportRunnerprotected CollectionLoader<Report> protected StandardSerializationprotected booleanprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected Stringprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected UiComponentsprotected ViewNavigatorsprotected ViewValidation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseOtherDialogs(@Nullable com.vaadin.flow.component.UI ui) Closes any other dialog views that remained open (e.g.protected voidcreateColumns(KeyValueCollectionContainer collectionContainer, DataGrid<KeyValueEntity> table, Set<JmixTableData.ColumnInfo> headers) protected KeyValueCollectionContainercreateContainer(String dataSetName, List<KeyValueEntity> keyValueEntities, Map<String, Set<JmixTableData.ColumnInfo>> headerMap) protected ReportFilterprotected DataGrid<KeyValueEntity> createTable(String dataSetName, KeyValueCollectionContainer container, Map<String, Set<JmixTableData.ColumnInfo>> headerMap) protected voiddrawTables(ReportOutputDocument document) protected @Nullable StringfindTableCode(Report report) voidRenders the configured report output document into the view.protected voidonBeforeShow(View.BeforeShowEvent event) protected voidonOpenInViewBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected voidonReady(View.ReadyEvent event) voidonReportEntityComboBoxComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<EntityComboBox<Report>, Report> event) voidonRunAction(ActionPerformedEvent event) reportsDlLoadDelegate(LoadContext<Report> ignored) voidsetReportOutputDocument(ReportOutputDocument reportOutputDocument) voidsetReportParameters(Map<String, Object> reportParameters) voidsetTemplateCode(@Nullable String templateCode) Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, processBeforeEnterInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setTestId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
parametersFrameHolder
@ViewComponent protected com.vaadin.flow.component.orderedlayout.HorizontalLayout parametersFrameHolder -
reportForm
-
tablesVBoxLayout
-
parametersBox
-
topActionsPanel
-
openInViewBtn
-
reportsDl
-
uiComponents
-
metadata
-
metadataTools
-
serialization
-
viewValidation
-
actions
-
reportRunner
-
dataComponents
-
datatypeRegistry
-
messages
-
notifications
-
reportExcelHelper
-
reportRepository
-
currentUserSubstitution
-
openedDialogWindows
-
templateCode
-
reportParameters
-
inputParametersFrame
-
reportOutputDocument
-
tablesDrawn
protected boolean tablesDrawn
-
-
Constructor Details
-
ReportTableView
public ReportTableView()
-
-
Method Details
-
setTemplateCode
-
setReportParameters
-
setReportOutputDocument
-
onReportEntityComboBoxComponentValueChange
@Subscribe("reportEntityComboBox") public void onReportEntityComboBoxComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<EntityComboBox<Report>, Report> event) -
onBeforeShow
-
onReady
-
loadReportContent
public void loadReportContent()Renders the configured report output document into the view. Idempotent: subsequent invocations are no-ops, and the method does nothing untilsetReportOutputDocument(ReportOutputDocument)has been called. For the NAVIGATION open mode, where the document is set after the regular lifecycle events, this method must be invoked explicitly fromwithAfterNavigationHandler. -
onOpenInViewBtnClick
@Subscribe("openInViewBtn") protected void onOpenInViewBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
closeOtherDialogs
protected void closeOtherDialogs(@Nullable com.vaadin.flow.component.UI ui) Closes any other dialog views that remained open (e.g. the input parameters dialog stacked behind this view), so that the navigation target is shown without leftover modal layers. -
reportsDlLoadDelegate
@Install(to="reportsDl", target=DATA_LOADER) protected List<Report> reportsDlLoadDelegate(LoadContext<Report> ignored) -
createFilter
-
onRunAction
-
findTableCode
-
drawTables
-
createContainer
protected KeyValueCollectionContainer createContainer(String dataSetName, List<KeyValueEntity> keyValueEntities, Map<String, Set<JmixTableData.ColumnInfo>> headerMap) -
createTable
protected DataGrid<KeyValueEntity> createTable(String dataSetName, KeyValueCollectionContainer container, Map<String, Set<JmixTableData.ColumnInfo>> headerMap) -
createColumns
protected void createColumns(KeyValueCollectionContainer collectionContainer, DataGrid<KeyValueEntity> table, Set<JmixTableData.ColumnInfo> headers)
-