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.StandardComponentStandardComponent.BindingDirection
 
- 
 - 
Constructor SummaryConstructors Constructor Description SpinnerComponent(int min, int max)SpinnerComponent(int min, int max, ValueChangeApply applyValueChange)SpinnerComponent(ISpinnerParameterization<Integer> parameterization)Creates a newSpinnerComponentinstance with the given parameterization.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SpinnerViewModelcreateControlViewModel()Creates 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.AbstractControlComponentcreateViewModels, disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
 - 
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponentbindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
 - 
Methods inherited from class com._1c.g5.aef2.components.ComponentaddComponent, 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- 
SpinnerComponentpublic SpinnerComponent(ISpinnerParameterization<Integer> parameterization) Creates a newSpinnerComponentinstance with the given parameterization.- Parameters:
- parameterization- the parameterization.
 
 - 
SpinnerComponentpublic SpinnerComponent(int min, int max)- Parameters:
- min- the minimum allowed threshold
- max- the maximum allowed threshold
 
 - 
SpinnerComponentpublic SpinnerComponent(int min, int max, ValueChangeApply applyValueChange)- Parameters:
- min- the minimum allowed threshold
- max- the maximum allowed threshold
- applyValueChange- the apply value change to set, cannot be- null
 
 
- 
 - 
Method Detail- 
createControlViewModelprotected SpinnerViewModel createControlViewModel() Description copied from class:AbstractControlComponentCreates control view model instance.- Specified by:
- createControlViewModelin class- AbstractControlComponent<IValue<Integer>,ISpinnerParameterization<Integer>,SpinnerViewModel>
- Returns:
- a newly created control view model.
 
 - 
setMaxValuepublic void setMaxValue(int max) Sets the new value of the maximum threshold.- Parameters:
- max- the new value
 
 - 
setMinValuepublic void setMinValue(int min) Sets the new value of the minimum threshold.- Parameters:
- min- the new value
 
 
- 
 
-