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
Modifier and TypeFieldDescriptionprotected CoreProperties
protected static final String
protected boolean
protected boolean
protected List<AttributeLocalizedValue>
protected DataGrid<AttributeLocalizedValue>
protected CollectionContainer<AttributeLocalizedValue>
protected CollectionLoader<AttributeLocalizedValue>
protected Messages
protected MessageTools
protected Metadata
protected MsgBundleTools
protected static final String
Fields 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
-
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 void
protected void
protected String
localizedValuesDataGridLanguageColumnGenerator
(DataGrid.ColumnGeneratorEvent<AttributeLocalizedValue> event) protected String
localizedValuesDataGridRowDescriptionProvider
(AttributeLocalizedValue localizedValue) protected List<AttributeLocalizedValue>
localizedValuesDlLoadDelegate
(LoadContext<AttributeLocalizedValue> loadContext) protected void
onInit
(ScreenFragment.InitEvent event) 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 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
-