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 theIntegermodel 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 NullableSpinnerComponent(int min, int max)NullableSpinnerComponent(ISpinnerParameterization<Integer> parameterization)Creates a newNullableSpinnerComponentinstance with the given parameterization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NullableSpinnerViewModelcreateControlViewModel()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.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
-
NullableSpinnerComponent
public NullableSpinnerComponent(ISpinnerParameterization<Integer> parameterization)
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 Detail
-
createControlViewModel
protected NullableSpinnerViewModel 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
-
-