Class SingleLanguageFormattedTextComponent
- 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<SingleLanguageModel,IDtActionBarParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.AbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
-
- com._1c.g5.v8.dt.md.ui.aef.components.SingleLanguageFormattedTextComponent
-
- All Implemented Interfaces:
IComponent<ISingleLanguageFormattedTextModel>
,IEventChannel
public class SingleLanguageFormattedTextComponent extends AbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
SingleLanguage 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 SingleLanguageFormattedTextComponent(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, IValue<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, IValue<String> workingCopy)
Called when dialog is closed by pressing OK button.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.AbstractSingleLanguageComponent
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
-
SingleLanguageFormattedTextComponent
public SingleLanguageFormattedTextComponent(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:AbstractSingleLanguageComponent
Returns whether Open button should be visible.- Overrides:
isOpenButtonShouldBeVisible
in classAbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
- Returns:
- true if Open button should be visible, false otherwise
-
createMultiLanguageDialog
protected LocalStringDialog createMultiLanguageDialog(org.eclipse.swt.widgets.Shell shell, boolean isMultiLine, IValue<String> inputData)
Description copied from class:AbstractSingleLanguageComponent
Creates dialog for editing strings on multiple languages.- Overrides:
createMultiLanguageDialog
in classAbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
- Parameters:
shell
- the shellisMultiLine
- are strings multilineinputData
- dialog input data, cannot benull
- Returns:
- the created dialog, never
null
-
onDialogClosedByOK
protected void onDialogClosedByOK(LocalStringDialog dialog, IValue<String> workingCopy)
Description copied from class:AbstractSingleLanguageComponent
Called when dialog is closed by pressing OK button.- Overrides:
onDialogClosedByOK
in classAbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
- 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 classAbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
- Returns:
- a newly created control view model.
-
getValueForView
protected String getValueForView(String value)
Description copied from class:AbstractSingleLanguageComponent
Gets value for view based on given value.- Overrides:
getValueForView
in classAbstractSingleLanguageComponent<ISingleLanguageFormattedTextModel>
- Parameters:
value
- the value, can benull
.- Returns:
- the value for view, never
null
.
-
-