Class MessageTemplateDetailView
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<MessageTemplate>
io.jmix.messagetemplatesflowui.view.messagetemplate.MessageTemplateDetailView
- 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<MessageTemplate>,ReadOnlyAwareView,Serializable
@Route(value="msgtmp/messagetemplate/:id",
layout=DefaultMainViewParent.class)
@ViewController("msgtmp_MessageTemplate.detail")
@ViewDescriptor("message-template-detail-view.xml")
@DialogMode(minWidth="64em")
public class MessageTemplateDetailView
extends StandardDetailView<MessageTemplate>
- 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.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.RestoreComponentsStateEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected CorePropertiesprotected DataManagerprotected DialogWindowsprotected Downloaderprotected GrapesJsprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected FileUploadFieldprotected booleanprotected MessageBundleprotected Metadataprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected UiPropertiesFields 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 voidprotected GrapesJsBlockblockMapper(MessageTemplateBlock block) protected voidprotected voidprotected voidprotected voidprotected voidprotected List<GrapesJsBlock>voidonBeforeShow(View.BeforeShowEvent event) voidonEditCodeBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected voidvoidvoidonInit(View.InitEvent event) voidvoidonMessageTemplateDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<MessageTemplate> event) voidvoidonViewBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) voidvoidvoidsetReadOnly(boolean readOnly) Changes the read-only mode.protected voidMethods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, clearChanges, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getEditedEntityOrNull, getLockStatus, getRouteParamName, getSaveNotificationText, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, onDetachInternal, save, setCrossFieldValidationEnabled, setEntityToEdit, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateViewMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, 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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
grapesJsEditor
-
importTemplateField
-
plainTextAreaLayout
-
grapesJsEditorLayout
@ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout grapesJsEditorLayout -
messageBundle
-
dataManager
-
dialogWindows
-
downloader
-
metadata
-
accessManager
-
uiProperties
-
coreProperties
-
isEditPermitted
protected boolean isEditPermitted
-
-
Constructor Details
-
MessageTemplateDetailView
public MessageTemplateDetailView()
-
-
Method Details
-
onInit
-
onInitEntity
-
onBeforeShow
-
applySecurityConstraints
protected void applySecurityConstraints() -
initComponents
protected void initComponents() -
initBlocks
protected void initBlocks() -
initGrapesJsEditor
protected void initGrapesJsEditor() -
loadBlocks
-
blockMapper
-
onGrapesJsValueChange
-
onImportTemplateFieldUpload
@Subscribe("importTemplateField") public void onImportTemplateFieldUpload(FileUploadSucceededEvent<FileUploadField> event) -
onEditCodeBtnClick
@Subscribe("editCodeBtn") public void onEditCodeBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
htmlEditorAfterCloseListener
-
htmlEditorViewConfigurer
-
onViewBtnClick
@Subscribe("viewBtn") public void onViewBtnClick(com.vaadin.flow.component.ClickEvent<JmixButton> event) -
onMessageTemplateDcItemPropertyChange
@Subscribe(id="messageTemplateDc", target=DATA_CONTAINER) public void onMessageTemplateDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<MessageTemplate> event) -
onValidation
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:ReadOnlyAwareViewChanges the read-only mode.- Specified by:
setReadOnlyin interfaceReadOnlyAwareView- Overrides:
setReadOnlyin classStandardDetailView<MessageTemplate>- Parameters:
readOnly-trueto enable the read-only mode,falseotherwise
-
updateContentAwareComponents
protected void updateContentAwareComponents() -
parametersDataGridCreateViewConfigurer
@Install(to="parametersDataGrid.create", subject="viewConfigurer") public void parametersDataGridCreateViewConfigurer(MessageTemplateParameterDetailView detailView) -
parametersDataGridEditViewConfigurer
@Install(to="parametersDataGrid.edit", subject="viewConfigurer") public void parametersDataGridEditViewConfigurer(MessageTemplateParameterDetailView detailView)
-