Class AbstractDtReadonlyActionBarComponent<M extends IModel,P extends IDtActionBarParameterization>
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<M,P>
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
AbstractChoiceParameterLinksComponent
,AbstractDtColorActionBarComponent
,AbstractSelectionActionBarComponent
,AbstractTypeLinkComponent
,ButtonDataPathComponent
,ChoiceListComponent
,ChoiceParametersComponent
,CommandChooserComponent
,CustomPaletteComponent
,DataPathComponent
,FontSelectionComponent
,FormAttributeComponent
,GeographicalCoordinatesSelectionComponent
,PictureSelectionComponent
,TimeScaleLabelSelectionComponent
public abstract class AbstractDtReadonlyActionBarComponent<M extends IModel,P extends IDtActionBarParameterization>
extends AbstractDtActionBarComponent<M,P>
The
AbstractDtActionBarComponent
with the read-only editor.
So the component handles changes fired only by model-side, but not by view model.-
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
ConstructorsModifierConstructorDescriptionprotected
AbstractDtReadonlyActionBarComponent
(P parameterization) Creates a new component. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindModelToViewModel
(M model) Binds the model to view model.protected void
Creates the view models of this component.protected void
Disposes the view models of this component.protected abstract String
transformModelToString
(M model) Transforms the given model object to string representation.protected void
updateViewModel
(M model) Updates the view model with the model state.void
Updates view models of the component.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, createButtons, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, dispose, handleButtonClicked
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 Details
-
AbstractDtReadonlyActionBarComponent
Creates a new component.- Parameters:
parameterization
- the parameterization.
-
-
Method Details
-
updateViewModels
public void updateViewModels()Description copied from class:StandardComponent
Updates view models of the component. Override it to update view model properties according to current state of the component.- Overrides:
updateViewModels
in classAbstractControlComponent<M extends IModel,
P extends IDtActionBarParameterization, ActionBarViewModel>
-
createViewModels
protected void createViewModels()Description copied from class:Component
Creates the view models of this component. Override it to provide a view models of this component.- Overrides:
createViewModels
in classAbstractDtSelectComponent<M extends IModel,
P extends IDtActionBarParameterization, ActionBarViewModel>
-
bindModelToViewModel
Binds the model to view model.- Parameters:
model
- the model.
-
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 classAbstractControlComponent<M extends IModel,
P extends IDtActionBarParameterization, ActionBarViewModel>
-
updateViewModel
Updates the view model with the model state.- Parameters:
model
- the model.
-
transformModelToString
Transforms the given model object to string representation.- Parameters:
model
- the model.- Returns:
- string representation of the model values.
-