Class NullableSpinnerComponent
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<IValue<Integer>,ISpinnerParameterization<Integer>,NullableSpinnerViewModel>
com._1c.g5.v8.dt.ui.aef.component.NullableSpinnerComponent
- All Implemented Interfaces:
IComponent<IValue<Integer>>,IEventChannel
public class NullableSpinnerComponent
extends AbstractControlComponent<IValue<Integer>,ISpinnerParameterization<Integer>,NullableSpinnerViewModel>
Component that manages the
Integer model as the one value of the allowed
value set. The value set is represented by integer values from the set up
minimum and maximum value.-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection -
Constructor Summary
ConstructorsConstructorDescriptionNullableSpinnerComponent(int min, int max) NullableSpinnerComponent(ISpinnerParameterization<Integer> parameterization) Creates a newNullableSpinnerComponentinstance with the given parameterization. -
Method Summary
Modifier and TypeMethodDescriptionprotected NullableSpinnerViewModelCreates control view model instance.voidsetMaxValue(int max) Sets the new value of the maximum threshold.voidsetMinValue(int min) Sets the new value of the minimum threshold.Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModelsMethods 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, dispose, 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
-
NullableSpinnerComponent
Creates a newNullableSpinnerComponentinstance with the given parameterization.- Parameters:
parameterization- the parameterization.
-
NullableSpinnerComponent
public NullableSpinnerComponent(int min, int max) - Parameters:
min- the minimum allowed thresholdmax- the maximum allowed threshold
-
-
Method Details
-
createControlViewModel
Description copied from class:AbstractControlComponentCreates control view model instance.- Specified by:
createControlViewModelin classAbstractControlComponent<IValue<Integer>,ISpinnerParameterization<Integer>, NullableSpinnerViewModel> - Returns:
- a newly created control view model.
-
setMaxValue
public void setMaxValue(int max) Sets the new value of the maximum threshold.- Parameters:
max- the new value
-
setMinValue
public void setMinValue(int min) Sets the new value of the minimum threshold.- Parameters:
min- the new value
-