Class AttributeLocalizationComponent
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
io.jmix.dynattrflowui.view.localization.AttributeLocalizationComponent
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
public class AttributeLocalizationComponent
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CorePropertiesprotected final DataComponentsprotected final DataContextprotected static final Stringprotected booleanprotected static final Stringprotected List<AttributeLocalizedValue>protected com.vaadin.flow.component.grid.Grid<AttributeLocalizedValue>protected CollectionContainer<AttributeLocalizedValue>protected CollectionLoader<AttributeLocalizedValue>protected final Messagesprotected final MessageToolsprotected final Metadataprotected final MsgBundleToolsprotected static final Stringprotected final UiComponents -
Constructor Summary
ConstructorsConstructorDescriptionAttributeLocalizationComponent(CoreProperties coreProperties, MsgBundleTools msgBundleTools, Metadata metadata, Messages messages, MessageTools messageTools, UiComponents uiComponents, DataComponents dataComponents, DataContext dataContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttributeLocalizedValue(String locale, String propertyName, String value) protected AttributeLocalizedValuecreateAttributeLocalizedValue(String locale) protected AttributeLocalizedValuegetAttributeLocalizedValue(String locale) protected StringgetMsgBundle(String propertyName) protected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected voidvoidvoidsetDescriptionMsgBundle(String descriptionMsgBundle) voidsetEnabled(boolean enabled) protected voidsetMsgBundle(String msgBundle, String propertyName) voidsetNameMsgBundle(String nameMsgBundle) protected voidMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, 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
-
NAME_PROPERTY
- See Also:
-
DESCRIPTION_PROPERTY
- See Also:
-
LANG_PROPERTY
- See Also:
-
coreProperties
-
msgBundleTools
-
metadata
-
messages
-
messageTools
-
uiComponents
-
dataComponents
-
dataContext
-
localizedValuesDl
-
localizedValuesDc
-
localizedValuesDataGrid
-
localizedValues
-
isEnabled
protected boolean isEnabled
-
-
Constructor Details
-
AttributeLocalizationComponent
public AttributeLocalizationComponent(CoreProperties coreProperties, MsgBundleTools msgBundleTools, Metadata metadata, Messages messages, MessageTools messageTools, UiComponents uiComponents, DataComponents dataComponents, DataContext dataContext)
-
-
Method Details
-
initContent
protected com.vaadin.flow.component.orderedlayout.VerticalLayout initContent()- Overrides:
initContentin classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
-
loadLocalizedValues
protected void loadLocalizedValues() -
addAttributeLocalizedValue
-
getAttributeLocalizedValue
-
createAttributeLocalizedValue
-
setMsgBundle
-
getMsgBundle
-
setupFieldsLock
protected void setupFieldsLock() -
setNameMsgBundle
-
setDescriptionMsgBundle
-
removeDescriptionColumn
public void removeDescriptionColumn() -
setEnabled
public void setEnabled(boolean enabled) -
getNameMsgBundle
-
getDescriptionMsgBundle
-