Class ReportTemplateDetailView
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.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,FacetOwner,FragmentOwner,ChangeTracker,DetailView<ReportTemplate>,HasEditedEntity<ReportTemplate>,ReadOnlyAwareView,ReadOnlyTracker,SupportEntityLock<ReportTemplate>,Serializable
@RouteAlias(value="reports/templates/:id",
layout=DefaultMainViewParent.class)
@Route(value="report/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.ValidationEventNested 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.RestoreComponentsStateEventNested classes/interfaces inherited from interface io.jmix.flowui.view.ReadOnlyTracker
ReadOnlyTracker.ReadOnlyChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixCheckboxprotected CorePropertiesstatic final Stringstatic final Stringprotected JmixSelect<CustomTemplateDefinedBy> protected JmixCodeEditorprotected com.vaadin.flow.component.button.Buttonprotected com.vaadin.flow.component.icon.FontIconprotected JmixCheckboxprotected JmixCheckboxprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected Dialogsprotected JmixRadioButtonGroup<Boolean> protected MessageBundleprotected Metadataprotected Notificationsprotected TypedTextField<String> protected JmixComboBox<ReportOutputType> protected OutputTypeHelperprotected PolicyStoreprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutstatic final Stringstatic final Stringprotected ReportScriptEditorprotected ReportsPropertiesprotected InstanceContainer<ReportTemplate> protected SecureOperationsprotected TableEditFragmentprotected JmixCodeEditorprotected FileUploadFieldprotected UiComponentsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CodeEditorModegetCodeEditorMode(ReportTemplate reportTemplate) protected Collection<AbstractDescriptionEditFragment<?>> protected booleanhasGroovyCustomDefinedBy(@Nullable CustomTemplateDefinedBy customTemplateDefinedBy) protected booleanhasHtmlCsvTemplateOutput(@Nullable ReportOutputType reportOutputType) protected booleanhasScriptCustomDefinedBy(CustomTemplateDefinedBy customTemplateDefinedBy) protected booleanhasSupportedFileExtension(ReportOutputType reportOutputType) protected booleanhasTemplateOutput(ReportOutputType reportOutputType) protected voidprotected voidprotected voidinitDefaultField(ReportTemplate currentTemplate) protected voidprotected voidprotected voidprotected voidinitTemplateEditor(ReportTemplate reportTemplate) protected voidinitUploadField(ReportTemplate reportTemplate) protected booleanisContentAttributeUpdatePermitted(ReportTemplate reportTemplate) protected booleanprotected booleanvoidvoidonBeforeShow(View.BeforeShowEvent event) voidonCustomDefinitionFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonCustomDefinitionHelpIconClick(com.vaadin.flow.component.ClickEvent<?> event) voidonInit(View.InitEvent event) voidprotected voidonOutputNamePatternHelpIconClick(com.vaadin.flow.component.ClickEvent<?> event) protected voidonReportTemplateDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<ReportTemplate> event) voidonTemplateFileEditorFullScreenBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidvoidvoidprotected voidprotected voidsetupTemplateTypeVisibility(boolean visibility) protected voidsetupVisibility(boolean customEnabled, ReportOutputType reportOutputType) protected voidsetupVisibilityDescriptionEdit(boolean customEnabled, ReportOutputType reportOutputType) protected voidprotected voidupdateOutputNamePattern(ReportOutputType value, ReportOutputType prevValue) protected voidprotected booleanprotected booleanprotected voidvisibleTemplateEditor(@Nullable ReportOutputType outputType) Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addReadOnlyStateChangeListener, addValidationEventListener, beforeEnter, clearChanges, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, preventUnsavedChanges, processBeforeEnterInternal, resolveEntityClass, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, 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
-
CUSTOM_DEFINE_BY_PROPERTY
- See Also:
-
REPORT_CONTENT_PROPERTY
- See Also:
-
CUSTOM_PROPERTY
- See Also:
-
REPORT_OUTPUT_TYPE_PROPERTY
- See Also:
-
isGroovyRadioButtonGroup
-
customField
-
defaultField
-
customDefinedByField
-
customDefinitionField
-
customDefinitionFullScreenBtn
-
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
-
outputTypeHelper
-
coreProperties
-
reportsProperties
-
customDefinitionHelpIcon
protected com.vaadin.flow.component.icon.FontIcon 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, byte[]> event) -
initDefaultField
-
initCustomDefinitionHelpIcon
protected void initCustomDefinitionHelpIcon() -
initDescriptionComposites
protected void initDescriptionComposites() -
onCustomDefinitionHelpIconClick
protected void onCustomDefinitionHelpIconClick(com.vaadin.flow.component.ClickEvent<?> event) -
openCustomDefinitionHelpDialog
protected void openCustomDefinitionHelpDialog() -
initOutputNamePatternField
protected void initOutputNamePatternField() -
onOutputNamePatternHelpIconClick
protected void onOutputNamePatternHelpIconClick(com.vaadin.flow.component.ClickEvent<?> 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() -
initCustomDefinedByList
protected void initCustomDefinedByList() -
initTemplateEditor
-
getCodeEditorMode
-
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
-
hasGroovyCustomDefinedBy
protected boolean hasGroovyCustomDefinedBy(@Nullable CustomTemplateDefinedBy customTemplateDefinedBy) -
hasHtmlCsvTemplateOutput
-
isContentAttributeUpdatePermitted
-
isReportsGroovyEnabled
protected boolean isReportsGroovyEnabled() -
isGroovyCustomDefinitionLocked
protected boolean isGroovyCustomDefinitionLocked() -
updateCustomDefinitionAccess
protected void updateCustomDefinitionAccess()
-