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
Modifier and TypeFieldDescriptionprotected final CoreProperties
protected final DataComponents
protected final DataContext
protected static final String
protected boolean
protected static final String
protected List<AttributeLocalizedValue>
protected com.vaadin.flow.component.grid.Grid<AttributeLocalizedValue>
protected CollectionContainer<AttributeLocalizedValue>
protected CollectionLoader<AttributeLocalizedValue>
protected final Messages
protected final MessageTools
protected final Metadata
protected final MsgBundleTools
protected static final String
protected final UiComponents
-
Constructor Summary
ConstructorDescriptionAttributeLocalizationComponent
(CoreProperties coreProperties, MsgBundleTools msgBundleTools, Metadata metadata, Messages messages, MessageTools messageTools, UiComponents uiComponents, DataComponents dataComponents, DataContext dataContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAttributeLocalizedValue
(String locale, String propertyName, String value) protected AttributeLocalizedValue
createAttributeLocalizedValue
(String locale) protected AttributeLocalizedValue
getAttributeLocalizedValue
(String locale) protected String
getMsgBundle
(String propertyName) protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected void
void
void
setDescriptionMsgBundle
(String descriptionMsgBundle) void
setEnabled
(boolean enabled) protected void
setMsgBundle
(String msgBundle, String propertyName) void
setNameMsgBundle
(String nameMsgBundle) protected void
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, 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, 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
-
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:
initContent
in 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
-