Class SpinnerComponent
- 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>,SpinnerViewModel>
-
- com._1c.g5.aef2.standard.components.SpinnerComponent
-
- All Implemented Interfaces:
IComponent<IValue<Integer>>
,IEventChannel
- Direct Known Subclasses:
NumberCodeMaxLengthSpinnerComponent
public class SpinnerComponent extends AbstractControlComponent<IValue<Integer>,ISpinnerParameterization<Integer>,SpinnerViewModel>
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
Constructors Constructor Description SpinnerComponent(int min, int max)
SpinnerComponent(int min, int max, ValueChangeApply applyValueChange)
SpinnerComponent(ISpinnerParameterization<Integer> parameterization)
Creates a newSpinnerComponent
instance with the given parameterization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SpinnerViewModel
createControlViewModel()
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 Detail
-
SpinnerComponent
public SpinnerComponent(ISpinnerParameterization<Integer> parameterization)
Creates a newSpinnerComponent
instance with the given parameterization.- Parameters:
parameterization
- the parameterization.
-
SpinnerComponent
public SpinnerComponent(int min, int max)
- Parameters:
min
- the minimum allowed thresholdmax
- the maximum allowed threshold
-
SpinnerComponent
public SpinnerComponent(int min, int max, ValueChangeApply applyValueChange)
- Parameters:
min
- the minimum allowed thresholdmax
- the maximum allowed thresholdapplyValueChange
- the apply value change to set, cannot benull
-
-
Method Detail
-
createControlViewModel
protected SpinnerViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<IValue<Integer>,ISpinnerParameterization<Integer>,SpinnerViewModel>
- 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
-
-