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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionAttributeLocalizationComponent(CoreProperties coreProperties, MsgBundleTools msgBundleTools, Metadata metadata, Messages messages, MessageTools messageTools, UiComponents uiComponents, DataComponents dataComponents, DataContext dataContext) 
- 
Method SummaryModifier 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.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, 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
- 
isEnabledprotected boolean isEnabled
 
- 
- 
Constructor Details- 
AttributeLocalizationComponentpublic AttributeLocalizationComponent(CoreProperties coreProperties, MsgBundleTools msgBundleTools, Metadata metadata, Messages messages, MessageTools messageTools, UiComponents uiComponents, DataComponents dataComponents, DataContext dataContext) 
 
- 
- 
Method Details- 
initContentprotected com.vaadin.flow.component.orderedlayout.VerticalLayout initContent()- Overrides:
- initContentin class- com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
 
- 
loadLocalizedValuesprotected void loadLocalizedValues()
- 
addAttributeLocalizedValue
- 
getAttributeLocalizedValue
- 
createAttributeLocalizedValue
- 
setMsgBundle
- 
getMsgBundle
- 
setupFieldsLockprotected void setupFieldsLock()
- 
setNameMsgBundle
- 
setDescriptionMsgBundle
- 
removeDescriptionColumnpublic void removeDescriptionColumn()
- 
setEnabledpublic void setEnabled(boolean enabled) 
- 
getNameMsgBundle
- 
getDescriptionMsgBundle
 
-