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 newNullableSpinnerComponent
instance with the given parameterization. -
Method Summary
Modifier and TypeMethodDescriptionprotected NullableSpinnerViewModel
Creates control view model instance.void
setMaxValue
(int max) Sets the new value of the maximum threshold.void
setMinValue
(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, updateViewModels
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, 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 newNullableSpinnerComponent
instance 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:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in 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
-