Class FormatStringComponent
- 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<IMultilanguageModel>
-
- com._1c.g5.v8.dt.md.ui.aef.components.FormatStringComponent
-
- All Implemented Interfaces:
IComponent<IMultilanguageModel>
,IEventChannel
public class FormatStringComponent extends AbstractMultilanguageComponent<IMultilanguageModel>
The component that processes the multilanguage string with format dialog helper.
-
-
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 FormatStringComponent(IDtActionBarParameterization parameterization)
Creates a new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<ButtonItemViewModel>
createButtons()
Creates a collection of theButtonItemViewModel
that will be added to the component view model.protected LocalStringDialog
createMultiLanguageDialog(org.eclipse.swt.widgets.Shell shell, boolean isMultiLine, Map<String,String> inputData)
Creates dialog for editing strings on multiple languages.protected void
disposeViewModels()
Disposes the view models of this component.protected void
handleButtonClicked(IViewModel viewModel)
Handles the button clicked event.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.AbstractMultilanguageComponent
attachToModel, createControlViewModel, detachFromModel, getCurrentCode, getScriptVariant, getValueForView, getVersion, isEnabled, isOpenButtonShouldBeVisible, onDialogClosedByOK
-
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
-
FormatStringComponent
public FormatStringComponent(IDtActionBarParameterization parameterization)
Creates a new component.- Parameters:
parameterization
- the parameterization.
-
-
Method Detail
-
handleButtonClicked
protected void handleButtonClicked(IViewModel viewModel)
Description copied from class:AbstractDtSelectComponent
Handles the button clicked event.- Overrides:
handleButtonClicked
in classAbstractMultilanguageComponent<IMultilanguageModel>
- Parameters:
viewModel
- the view model of the event sender.
-
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<IMultilanguageModel>
- Parameters:
shell
- the shellisMultiLine
- are strings multilineinputData
- dialog input data, cannot benull
- Returns:
- the created dialog
-
createButtons
protected Collection<ButtonItemViewModel> createButtons()
Description copied from class:AbstractDtSelectComponent
Creates a collection of theButtonItemViewModel
that will be added to the component view model.- Overrides:
createButtons
in classAbstractMultilanguageComponent<IMultilanguageModel>
- Returns:
- the collection of the
ButtonItemViewModel
.
-
disposeViewModels
protected void disposeViewModels()
Description copied from class:Component
Disposes the view models of this component. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeViewModels
in classAbstractMultilanguageComponent<IMultilanguageModel>
-
-