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.ValidationEvent
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 AccessManager
protected CoreProperties
protected DataManager
protected DialogWindows
protected Downloader
protected GrapesJs
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected FileUploadField
protected boolean
protected MessageBundle
protected Metadata
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected UiProperties
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected GrapesJsBlock
blockMapper
(MessageTemplateBlock block) protected void
protected void
protected void
protected void
protected void
protected List<GrapesJsBlock>
void
onBeforeShow
(View.BeforeShowEvent event) void
onEditCodeBtnClick
(com.vaadin.flow.component.ClickEvent<JmixButton> event) protected void
void
void
onInit
(View.InitEvent event) void
void
onMessageTemplateDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<MessageTemplate> event) void
void
onViewBtnClick
(com.vaadin.flow.component.ClickEvent<JmixButton> event) void
void
void
setReadOnly
(boolean readOnly) Changes the read-only mode.protected void
Methods 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, 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, 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, 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, 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
-
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:ReadOnlyAwareView
Changes the read-only mode.- Specified by:
setReadOnly
in interfaceReadOnlyAwareView
- Overrides:
setReadOnly
in classStandardDetailView<MessageTemplate>
- Parameters:
readOnly
-true
to enable the read-only mode,false
otherwise
-
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)
-