Class MessageTemplateParameterDetailView
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<MessageTemplateParameter>
io.jmix.messagetemplatesflowui.view.messagetemplateparameter.MessageTemplateParameterDetailView
- 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<MessageTemplateParameter>
,ReadOnlyAwareView
,Serializable
@ViewController("msgtmp_MessageTemplateParameter.detail")
@ViewDescriptor("message-template-parameter-detail-view.xml")
@DialogMode(width="40em",
resizable=true)
public class MessageTemplateParameterDetailView
extends StandardDetailView<MessageTemplateParameter>
- 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 JmixCheckbox
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected JmixComboBox<String>
protected DataGrid<MessageTemplateParameterLocalization>
protected JmixTabSheet
protected MessageBundle
protected MessageParameterLocalizationSupport
protected MessageParameterResolver
protected Messages
protected MessageTools
protected JmixComboBox<String>
protected Metadata
protected MetadataTools
protected Notifications
protected ObjectToStringConverter
protected List<MessageTemplateParameter>
protected UiComponents
protected UiComponentsGenerator
protected ViewValidation
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 TypeMethodDescriptionvoid
aliasFieldValidator
(String alias) protected com.vaadin.flow.component.Component
generateLocaleComponent
(EditComponentGenerationContext<MessageTemplateParameterLocalization> context) protected List<MessageTemplateParameter>
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected boolean
isDefaultValueUnavailable
(MessageTemplateParameter editedEntity) protected boolean
isLocaleAlreadyDefined
(String currentLocale) protected boolean
boolean
boolean
void
localizationDataGridEditorCloseListener
(com.vaadin.flow.component.grid.editor.EditorCloseEvent<MessageTemplateParameterLocalization> event) void
localizationDataGridEditorOpenListener
(com.vaadin.flow.component.grid.editor.EditorOpenEvent<MessageTemplateParameterLocalization> event) boolean
void
void
onBeforeShow
(View.BeforeShowEvent event) protected void
onDefaultValueComponentValueChanged
(com.vaadin.flow.component.HasValue.ValueChangeEvent<?> event) void
onInit
(View.InitEvent event) void
void
protected void
void
onParameterDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<MessageTemplateParameter> event) void
protected void
resetActionText
(Action action) void
setParentTemplateParameters
(List<MessageTemplateParameter> parentTemplateParameters) protected void
protected void
showWarningNotification
(String message) 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, 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, 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
-
metaClassField
-
enumerationField
-
defaultDateIsCurrentField
-
defaultValuePlaceholder
@ViewComponent protected com.vaadin.flow.component.orderedlayout.HorizontalLayout defaultValuePlaceholder -
mainTabSheet
-
messageBundle
-
localizationDataGrid
-
parameterLocalizationDc
@ViewComponent protected CollectionContainer<MessageTemplateParameterLocalization> parameterLocalizationDc -
metadata
-
metadataTools
-
messages
-
messageTools
-
uiComponentsGenerator
-
accessManager
-
notifications
-
uiComponents
-
viewValidation
-
objectToStringConverter
-
messageParameterResolver
-
messageParameterLocalizationSupport
-
parentTemplateParameters
-
-
Constructor Details
-
MessageTemplateParameterDetailView
public MessageTemplateParameterDetailView()
-
-
Method Details
-
onInit
-
onBeforeShow
-
setupParameterLocalization
protected void setupParameterLocalization() -
onInitEntity
@Subscribe public void onInitEntity(StandardDetailView.InitEntityEvent<MessageTemplateParameter> event) -
onParameterDcItemPropertyChange
@Subscribe(id="messageTemplateParameterDc", target=DATA_CONTAINER) public void onParameterDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<MessageTemplateParameter> event) -
initMetaClassField
protected void initMetaClassField() -
initEnumerationField
protected void initEnumerationField() -
initDefaultValueField
protected void initDefaultValueField() -
onDefaultValueComponentValueChanged
protected void onDefaultValueComponentValueChanged(com.vaadin.flow.component.HasValue.ValueChangeEvent<?> event) -
initCurrentDateTimeField
protected void initCurrentDateTimeField() -
updateLayoutByParameterType
-
isParameterDateOrTime
protected boolean isParameterDateOrTime() -
initLocalizationDataGrid
protected void initLocalizationDataGrid() -
handleGridEnterPress
protected void handleGridEnterPress() -
handleGridEscapePress
protected void handleGridEscapePress() -
resetActionText
-
generateLocaleComponent
protected com.vaadin.flow.component.Component generateLocaleComponent(EditComponentGenerationContext<MessageTemplateParameterLocalization> context) -
onLocalizationDataGridCreate
@Subscribe("localizationDataGrid.create") public void onLocalizationDataGridCreate(ActionPerformedEvent event) -
onLocalizationDataGridEdit
@Subscribe("localizationDataGrid.edit") protected void onLocalizationDataGridEdit(ActionPerformedEvent event) -
localizationDataGridCreateEnabledRule
-
localizationDataGridEditEnabledRule
-
localizationDataGridRemoveEnabledRule
-
localizationDataGridEditorOpenListener
@Install(to="localizationDataGrid.@editor", subject="openListener") public void localizationDataGridEditorOpenListener(com.vaadin.flow.component.grid.editor.EditorOpenEvent<MessageTemplateParameterLocalization> event) -
localizationDataGridEditorCloseListener
@Install(to="localizationDataGrid.@editor", subject="closeListener") public void localizationDataGridEditorCloseListener(com.vaadin.flow.component.grid.editor.EditorCloseEvent<MessageTemplateParameterLocalization> event) -
isLocaleAlreadyDefined
-
aliasFieldValidator
-
getParentTemplateParameters
-
setParentTemplateParameters
-
onValidation
-
onBeforeSave
-
showWarningNotification
-