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
,ChoiceParametersComponent
,FontSelectionComponent
,PictureSelectionComponent
public abstract class AbstractDtReadonlyActionBarComponent<M extends IModel,P extends IDtActionBarParameterization> extends AbstractDtActionBarComponent<M,P>
TheAbstractDtActionBarComponent
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
Constructors Modifier Constructor Description protected
AbstractDtReadonlyActionBarComponent(P parameterization)
Creates a new component.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
bindModelToViewModel(M model)
Binds the model to view model.protected void
createViewModels()
Creates the view models of this component.protected void
disposeViewModels()
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
updateViewModels()
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 Detail
-
AbstractDtReadonlyActionBarComponent
protected AbstractDtReadonlyActionBarComponent(P parameterization)
Creates a new component.- Parameters:
parameterization
- the parameterization.
-
-
Method Detail
-
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
protected void bindModelToViewModel(M model)
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
protected void updateViewModel(M model)
Updates the view model with the model state.- Parameters:
model
- the model.
-
-