Class FontSelectionComponent
- 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<M,P>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent<IFontSelectionModel,IFontComponentParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.FontSelectionComponent
-
- All Implemented Interfaces:
IComponent<IFontSelectionModel>
,IEventChannel
public class FontSelectionComponent extends AbstractDtReadonlyActionBarComponent<IFontSelectionModel,IFontComponentParameterization>
The component forFont
object selection.
-
-
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 FontSelectionComponent(IFontComponentParameterization parameterization)
Creates a new component instance with the givenIFontComponentParameterization
.FontSelectionComponent(IDtActionBarParameterization parameterization)
Creates a new component instance.
-
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 void
disposeViewModels()
Disposes the view models of this component.protected void
handleButtonClicked(IViewModel viewModel)
Handles the button clicked event.protected String
transformModelToString(IFontSelectionModel model)
Transforms the given model object to string representation.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent
bindModelToViewModel, createViewModels, updateViewModel, updateViewModels
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent
createControlViewModel
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, dispose
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
addComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, 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
-
FontSelectionComponent
public FontSelectionComponent(IFontComponentParameterization parameterization)
Creates a new component instance with the givenIFontComponentParameterization
.- Parameters:
parameterization
- the parameterization, cannot benull
-
FontSelectionComponent
public FontSelectionComponent(IDtActionBarParameterization parameterization)
Creates a new component instance. Internally newFontComponentParameterization
instance will be created with givenIDtActionBarParameterization
instance as base, and font reset allowed flag set totrue
. This instance will be used as parameterization.- Parameters:
parameterization
- the parameterization, cannot benull
-
-
Method Detail
-
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 classAbstractDtSelectComponent<IFontSelectionModel,IFontComponentParameterization,ActionBarViewModel>
- 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.
-
handleButtonClicked
protected void handleButtonClicked(IViewModel viewModel)
Description copied from class:AbstractDtSelectComponent
Handles the button clicked event.- Overrides:
handleButtonClicked
in classAbstractDtSelectComponent<IFontSelectionModel,IFontComponentParameterization,ActionBarViewModel>
- Parameters:
viewModel
- the view model of the event sender.
-
transformModelToString
protected String transformModelToString(IFontSelectionModel model)
Description copied from class:AbstractDtReadonlyActionBarComponent
Transforms the given model object to string representation.- Specified by:
transformModelToString
in classAbstractDtReadonlyActionBarComponent<IFontSelectionModel,IFontComponentParameterization>
- Parameters:
model
- the model.- Returns:
- string representation of the model values.
-
-