Class MultilanguageFormattedTextComponent
- java.lang.Object
-
- com._1c.g5.aef2.components.Component<M,P>
-
- com._1c.g5.aef2.standard.components.StandardComponent<M,P>
-
- com._1c.g5.aef2.standard.components.AbstractControlComponent<M,P,VM>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent<M,P,ActionBarViewModel>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent<MultilanguageModel,IDtActionBarParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.AbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
-
- com._1c.g5.v8.dt.md.ui.aef.components.MultilanguageFormattedTextComponent
-
- All Implemented Interfaces:
IComponent<IMultilanguageFormattedTextModel>
,IEventChannel
public class MultilanguageFormattedTextComponent extends AbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
Multilanguage component with support of formatted text.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
CLEAR_BUTTON_COMMAND_ID, DEFAULT_CONTEXT, OPEN_BUTTON_COMMAND_ID, SELECT_BUTTON_COMMAND_ID
-
-
Constructor Summary
Constructors Constructor Description MultilanguageFormattedTextComponent(IDtActionBarParameterization parameterization)
Creates a new instance of the component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionBarViewModel
createControlViewModel()
Creates control view model instance.protected LocalStringDialog
createMultiLanguageDialog(org.eclipse.swt.widgets.Shell shell, boolean isMultiLine, Map<String,String> inputData)
Creates dialog for editing strings on multiple languages.protected String
getValueForView(String value)
Gets value for view based on given value.protected boolean
isOpenButtonShouldBeVisible()
Returns whether Open button should be visible.protected void
onDialogClosedByOK(LocalStringDialog dialog, IMap<String,String> workingCopy)
Called when dialog is closed by pressing OK button.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.AbstractMultilanguageComponent
attachToModel, createButtons, detachFromModel, disposeViewModels, getCurrentCode, getScriptVariant, getVersion, handleButtonClicked, isEnabled
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels, dispose
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
addComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, disposeComponents, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
-
-
-
Constructor Detail
-
MultilanguageFormattedTextComponent
public MultilanguageFormattedTextComponent(IDtActionBarParameterization parameterization)
Creates a new instance of the component.- Parameters:
parametrization
- options of the component
-
-
Method Detail
-
isOpenButtonShouldBeVisible
protected boolean isOpenButtonShouldBeVisible()
Description copied from class:AbstractMultilanguageComponent
Returns whether Open button should be visible.- Overrides:
isOpenButtonShouldBeVisible
in classAbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
- Returns:
- true if Open button should be visible, false otherwise
-
createMultiLanguageDialog
protected LocalStringDialog createMultiLanguageDialog(org.eclipse.swt.widgets.Shell shell, boolean isMultiLine, Map<String,String> inputData)
Description copied from class:AbstractMultilanguageComponent
Creates dialog for editing strings on multiple languages.- Overrides:
createMultiLanguageDialog
in classAbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
- Parameters:
shell
- the shellisMultiLine
- are strings multilineinputData
- dialog input data, cannot benull
- Returns:
- the created dialog
-
onDialogClosedByOK
protected void onDialogClosedByOK(LocalStringDialog dialog, IMap<String,String> workingCopy)
Description copied from class:AbstractMultilanguageComponent
Called when dialog is closed by pressing OK button.- Overrides:
onDialogClosedByOK
in classAbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
- Parameters:
dialog
- the dialog closed.workingCopy
- the working copy model.
-
createControlViewModel
protected ActionBarViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Overrides:
createControlViewModel
in classAbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
- Returns:
- a newly created control view model.
-
getValueForView
protected String getValueForView(String value)
Description copied from class:AbstractMultilanguageComponent
Gets value for view based on given value.- Overrides:
getValueForView
in classAbstractMultilanguageComponent<IMultilanguageFormattedTextModel>
- Parameters:
value
- the value, can benull
.- Returns:
- the value for view, can be
null
.
-
-