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
ConstructorsModifierConstructorDescriptionprotectedAbstractDtReadonlyActionBarComponent(P parameterization) Creates a new component. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindModelToViewModel(M model) Binds the model to view model.protected voidCreates the view models of this component.protected voidDisposes the view models of this component.protected abstract StringtransformModelToString(M model) Transforms the given model object to string representation.protected voidupdateViewModel(M model) Updates the view model with the model state.voidUpdates view models of the component.Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent
createControlViewModelMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createButtons, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, dispose, handleButtonClickedMethods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutDataMethods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatusMethods 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:StandardComponentUpdates view models of the component. Override it to update view model properties according to current state of the component.- Overrides:
updateViewModelsin classAbstractControlComponent<M extends IModel,P extends IDtActionBarParameterization, ActionBarViewModel>
-
createViewModels
protected void createViewModels()Description copied from class:ComponentCreates the view models of this component. Override it to provide a view models of this component.- Overrides:
createViewModelsin 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:ComponentDisposes the view models of this component. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeViewModelsin 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.
-