Class ReportTemplateDetailView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardDetailView<ReportTemplate>
io.jmix.reportsflowui.view.template.ReportTemplateDetailView
- 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
,FragmentOwner
,ChangeTracker
,DetailView<ReportTemplate>
,ReadOnlyAwareView
,Serializable
@Route(value="reports/templates/:id",
layout=DefaultMainViewParent.class)
@ViewController("report_ReportTemplate.detail")
@ViewDescriptor("report-template-detail-view.xml")
@DialogMode(width="40em")
public class ReportTemplateDetailView
extends StandardDetailView<ReportTemplate>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.SetupLockEvent, StandardDetailView.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected JmixCheckbox
static final String
static final String
protected JmixSelect<CustomTemplateDefinedBy>
protected JmixCodeEditor
protected com.vaadin.flow.component.icon.Icon
protected JmixCheckbox
protected JmixCheckbox
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected Dialogs
protected JmixRadioButtonGroup<Boolean>
protected MessageBundle
protected Metadata
protected Notifications
protected TypedTextField<String>
protected JmixComboBox<ReportOutputType>
protected PolicyStore
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
static final String
protected ReportScriptEditor
protected InstanceContainer<ReportTemplate>
protected SecureOperations
protected TableEditFragment
protected JmixCodeEditor
protected FileUploadField
protected UiComponents
Fields inherited from class io.jmix.flowui.view.StandardDetailView
DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME, reloadSaved
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<AbstractDescriptionEditFragment<?>>
protected boolean
hasHtmlCsvTemplateOutput
(ReportOutputType reportOutputType) protected boolean
hasScriptCustomDefinedBy
(CustomTemplateDefinedBy customTemplateDefinedBy) protected boolean
hasSupportedFileExtension
(ReportOutputType reportOutputType) protected boolean
hasTemplateOutput
(ReportOutputType reportOutputType) protected void
protected void
initDefaultField
(ReportTemplate currentTemplate) protected void
protected void
protected void
protected void
initTemplateEditor
(ReportTemplate reportTemplate) protected void
initUploadField
(ReportTemplate reportTemplate) protected boolean
isContentAttributeUpdatePermitted
(ReportTemplate reportTemplate) void
void
onBeforeShow
(View.BeforeShowEvent event) void
onCustomDefinitionFullScreenBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onCustomDefinitionHelpIconClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) void
onInit
(View.InitEvent event) void
protected void
onOutputNamePatternHelpIconClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) protected void
onReportTemplateDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<ReportTemplate> event) void
onTemplateFileEditorFullScreenBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
void
void
protected void
protected void
setupTemplateTypeVisibility
(boolean visibility) protected void
setupVisibility
(boolean customEnabled, ReportOutputType reportOutputType) protected void
setupVisibilityDescriptionEdit
(boolean customEnabled, ReportOutputType reportOutputType) protected void
updateOutputNamePattern
(ReportOutputType value, ReportOutputType prevValue) protected void
protected boolean
protected boolean
protected void
visibleTemplateEditor
(ReportOutputType outputType) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateView
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigation
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, 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.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
CUSTOM_DEFINE_BY_PROPERTY
- See Also:
-
CUSTOM_PROPERTY
- See Also:
-
REPORT_OUTPUT_TYPE_PROPERTY
- See Also:
-
isGroovyRadioButtonGroup
-
customField
-
defaultField
-
customDefinedByField
-
customDefinitionField
-
alterableField
-
templateUploadField
-
outputNamePatternField
-
templateFileEditor
-
outputTypeField
-
descriptionEditBox
@ViewComponent protected com.vaadin.flow.component.orderedlayout.HorizontalLayout descriptionEditBox -
previewBox
-
reportTemplateDc
-
messageBundle
-
dialogs
-
secureOperations
-
metadata
-
policyStore
-
notifications
-
uiComponents
-
reportScriptEditor
-
customDefinitionHelpIcon
protected com.vaadin.flow.component.icon.Icon customDefinitionHelpIcon -
tableEditComposite
-
-
Constructor Details
-
ReportTemplateDetailView
public ReportTemplateDetailView()
-
-
Method Details
-
onInit
-
onInitEntity
-
onBeforeShow
-
onBeforeSave
-
onTemplateUploadFieldFileUploadStarted
@Subscribe("templateUploadField") public void onTemplateUploadFieldFileUploadStarted(FileUploadStartedEvent<FileUploadField> event) -
onTemplateUploadFieldFileUploadFailed
@Subscribe("templateUploadField") public void onTemplateUploadFieldFileUploadFailed(FileUploadFailedEvent<FileUploadField> event) -
onTemplateUploadFieldFileUploadSucceeded
@Subscribe("templateUploadField") public void onTemplateUploadFieldFileUploadSucceeded(FileUploadSucceededEvent<FileUploadField> event) -
initDefaultField
-
initCustomDefinitionHelpIcon
protected void initCustomDefinitionHelpIcon() -
initDescriptionComposites
protected void initDescriptionComposites() -
onCustomDefinitionHelpIconClick
protected void onCustomDefinitionHelpIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) -
openCustomDefinitionHelpDialog
protected void openCustomDefinitionHelpDialog() -
initOutputNamePatternField
protected void initOutputNamePatternField() -
onOutputNamePatternHelpIconClick
protected void onOutputNamePatternHelpIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) -
onCustomDefinitionFullScreenBtnClick
@Subscribe("customDefinitionFullScreenBtn") public void onCustomDefinitionFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
initUploadField
-
onReportTemplateDcItemPropertyChange
protected void onReportTemplateDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<ReportTemplate> event) -
getDescriptionEditors
-
initOutputTypeList
protected void initOutputTypeList() -
initTemplateEditor
-
visibleTemplateEditor
-
onTemplateFileEditorFullScreenBtnClick
@Subscribe("templateFileEditorFullScreenBtn") public void onTemplateFileEditorFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
setupVisibility
-
setupTemplateTypeVisibility
protected void setupTemplateTypeVisibility(boolean visibility) -
setupVisibilityDescriptionEdit
protected void setupVisibilityDescriptionEdit(boolean customEnabled, ReportOutputType reportOutputType) -
validateTemplateFile
protected boolean validateTemplateFile() -
validateInputOutputFormats
protected boolean validateInputOutputFormats() -
updateOutputType
protected void updateOutputType() -
updateOutputNamePattern
-
hasSupportedFileExtension
-
hasTemplateOutput
-
hasScriptCustomDefinedBy
-
hasHtmlCsvTemplateOutput
-
isContentAttributeUpdatePermitted
-