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
,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.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 com.vaadin.flow.component.icon.Icon
protected JmixTextArea
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 JmixTextArea
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<AbstractDescriptionEditFragment<?>>
protected boolean
hasHtmlCsvTemplateOutput
(ReportOutputType reportOutputType) protected boolean
hasScriptCustomDefinedBy
(CustomTemplateDefinedBy customTemplateDefinedBy) protected boolean
hasTemplateOutput
(ReportOutputType reportOutputType) protected void
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) protected void
onCustomDefinitionHelpIconClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) protected void
onExpandCustomDefinitionExpandIconClick
(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
void
void
protected void
setCustomDefinitionIconsVisible
(boolean visible) protected void
setupTemplateTypeVisibility
(boolean visibility) protected void
setupVisibility
(boolean customEnabled, ReportOutputType reportOutputType) protected void
setupVisibilityDescriptionEdit
(boolean customEnabled, ReportOutputType reportOutputType) 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, entityCanBeLoaded, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getPessimisticLockStatus, getRouteParamName, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit
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, setApplicationContext, setId, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
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 -
customDefinitionExpandIcon
protected com.vaadin.flow.component.icon.Icon customDefinitionExpandIcon -
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() -
initCustomDefinitionExpandIcon
protected void initCustomDefinitionExpandIcon() -
initDescriptionComposites
protected void initDescriptionComposites() -
onCustomDefinitionHelpIconClick
protected void onCustomDefinitionHelpIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) -
initOutputNamePatternField
protected void initOutputNamePatternField() -
onOutputNamePatternHelpIconClick
protected void onOutputNamePatternHelpIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) -
onExpandCustomDefinitionExpandIconClick
protected void onExpandCustomDefinitionExpandIconClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.icon.Icon> event) -
initUploadField
-
onReportTemplateDcItemPropertyChange
protected void onReportTemplateDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<ReportTemplate> event) -
getDescriptionEditors
-
setCustomDefinitionIconsVisible
protected void setCustomDefinitionIconsVisible(boolean visible) -
initOutputTypeList
protected void initOutputTypeList() -
initTemplateEditor
-
visibleTemplateEditor
-
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() -
hasTemplateOutput
-
hasScriptCustomDefinedBy
-
hasHtmlCsvTemplateOutput
-
isContentAttributeUpdatePermitted
-