Class AttributeLocalizationFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.dynattrui.screen.localization.AttributeLocalizationFragment
- All Implemented Interfaces:
FrameOwner
@UiController("dynat_AttributeLocalizationFragment")
@UiDescriptor("attribute-localization-fragment.xml")
public class AttributeLocalizationFragment
extends ScreenFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CorePropertiesprotected static final Stringprotected booleanprotected booleanprotected List<AttributeLocalizedValue>protected DataGrid<AttributeLocalizedValue>protected CollectionContainer<AttributeLocalizedValue>protected CollectionLoader<AttributeLocalizedValue>protected Messagesprotected MessageToolsprotected Metadataprotected MsgBundleToolsprotected static final StringFields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION -
Constructor Summary
Constructors -
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 voidprotected voidprotected StringlocalizedValuesDataGridLanguageColumnGenerator(DataGrid.ColumnGeneratorEvent<AttributeLocalizedValue> event) protected StringlocalizedValuesDataGridRowDescriptionProvider(AttributeLocalizedValue localizedValue) protected List<AttributeLocalizedValue>localizedValuesDlLoadDelegate(LoadContext<AttributeLocalizedValue> loadContext) protected voidonInit(ScreenFragment.InitEvent event) voidsetDescriptionMsgBundle(String descriptionMsgBundle) voidsetEnabled(boolean enabled) protected voidsetMsgBundle(String msgBundle, String propertyName) voidsetNameMsgBundle(String nameMsgBundle) protected voidMethods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
NAME_PROPERTY
- See Also:
-
DESCRIPTION_PROPERTY
- See Also:
-
coreProperties
-
msgBundleTools
-
metadata
-
messages
-
messageTools
-
localizedValuesDl
-
localizedValuesDc
-
localizedValuesDataGrid
-
localizedValues
-
descriptionColumnVisible
protected boolean descriptionColumnVisible -
isEnabled
protected boolean isEnabled
-
-
Constructor Details
-
AttributeLocalizationFragment
public AttributeLocalizationFragment()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
setNameMsgBundle
-
setDescriptionMsgBundle
-
getNameMsgBundle
-
getDescriptionMsgBundle
-
onInit
-
localizedValuesDlLoadDelegate
@Install(to="localizedValuesDl", target=DATA_LOADER) protected List<AttributeLocalizedValue> localizedValuesDlLoadDelegate(LoadContext<AttributeLocalizedValue> loadContext) -
localizedValuesDataGridLanguageColumnGenerator
@Install(to="localizedValuesDataGrid.language", subject="columnGenerator") protected String localizedValuesDataGridLanguageColumnGenerator(DataGrid.ColumnGeneratorEvent<AttributeLocalizedValue> event) -
localizedValuesDataGridRowDescriptionProvider
@Install(to="localizedValuesDataGrid", subject="rowDescriptionProvider") protected String localizedValuesDataGridRowDescriptionProvider(AttributeLocalizedValue localizedValue) -
initLocalizedValuesDataGrid
protected void initLocalizedValuesDataGrid() -
setupFieldsLock
protected void setupFieldsLock() -
loadLocalizedValues
protected void loadLocalizedValues() -
addAttributeLocalizedValue
-
getAttributeLocalizedValue
-
createAttributeLocalizedValue
-
setMsgBundle
-
getMsgBundle
-