Class NumberValueControlViewModelImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
-
- com._1c.g5.aef2.standard.viewModels.impl.ControlViewModelImpl
-
- com._1c.g5.v8.dt.ui.aef.viewModels.impl.SelectViewModelImpl
-
- com._1c.g5.v8.dt.md.ui.aef.viewModels.impl.ValueControlViewModelImpl
-
- com._1c.g5.v8.dt.md.ui.aef.viewModels.impl.NumberValueControlViewModelImpl
-
- All Implemented Interfaces:
ControlViewModel
,IControlViewModel
,IViewModel
,NumberValueControlViewModel
,ValueControlViewModel
,SelectViewModel
,org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
,org.eclipse.emf.ecore.InternalEObject
public class NumberValueControlViewModelImpl extends ValueControlViewModelImpl implements NumberValueControlViewModel
An implementation of the model object 'Number Value Control View Model'.The following features are implemented:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
NON_NEGATIVE_EDEFAULT
The default value of the 'Non Negative
' attribute.protected boolean
nonNegative
The cached value of the 'Non Negative
' attribute.protected int
precision
The cached value of the 'Precision
' attribute.protected static int
PRECISION_EDEFAULT
The default value of the 'Precision
' attribute.protected int
scale
The cached value of the 'Scale
' attribute.protected static int
SCALE_EDEFAULT
The default value of the 'Scale
' attribute.protected static boolean
SHOW_TRAILING_ZEROES_EDEFAULT
The default value of the 'Show Trailing Zeroes
' attribute.protected boolean
showTrailingZeroes
The cached value of the 'Show Trailing Zeroes
' attribute.protected BigDecimal
value
The cached value of the 'Value
' attribute.protected static BigDecimal
VALUE_EDEFAULT
The default value of the 'Value
' attribute.-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.viewModels.impl.SelectViewModelImpl
buttons
-
Fields inherited from class com._1c.g5.aef2.standard.viewModels.impl.ControlViewModelImpl
APPLY_VALUE_CHANGE_EDEFAULT, applyValueChange, contexts, editable, EDITABLE_EDEFAULT, enabled, ENABLED_EDEFAULT, EVENT_CHANNEL_EDEFAULT, eventChannel, externalValidationStatus, layoutData, status, STATUS_EDEFAULT
-
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NumberValueControlViewModelImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
eGet(int featureID, boolean resolve, boolean coreType)
boolean
eIsSet(int featureID)
void
eSet(int featureID, Object newValue)
protected org.eclipse.emf.ecore.EClass
eStaticClass()
void
eUnset(int featureID)
int
getPrecision()
int
getScale()
BigDecimal
getValue()
boolean
isNonNegative()
boolean
isShowTrailingZeroes()
void
setNonNegative(boolean newNonNegative)
void
setPrecision(int newPrecision)
void
setScale(int newScale)
void
setShowTrailingZeroes(boolean newShowTrailingZeroes)
void
setValue(BigDecimal newValue)
String
toString()
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.viewModels.impl.SelectViewModelImpl
eInverseRemove, getButtons
-
Methods inherited from class com._1c.g5.aef2.standard.viewModels.impl.ControlViewModelImpl
basicGetLayoutData, basicGetParent, basicSetExternalValidationStatus, basicSetParent, eBasicRemoveFromContainerFeature, eInverseAdd, getApplyValueChange, getContexts, getEventChannel, getExternalValidationStatus, getLayoutData, getParent, getStatus, isEditable, isEnabled, setApplyValueChange, setEditable, setEnabled, setEventChannel, setExternalValidationStatus, setLayoutData, setParent, setStatus
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.standard.viewModels.ControlViewModel
getApplyValueChange, getContexts, getExternalValidationStatus, getLayoutData, getStatus, isEditable, isEnabled, setApplyValueChange, setEditable, setEnabled, setExternalValidationStatus, setLayoutData, setStatus
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com._1c.g5.aef2.viewModels.IViewModel
getEventChannel, getParent, setEventChannel, setParent
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com._1c.g5.v8.dt.ui.aef.viewModels.SelectViewModel
getButtons
-
-
-
-
Field Detail
-
VALUE_EDEFAULT
protected static final BigDecimal VALUE_EDEFAULT
The default value of the 'Value
' attribute.- See Also:
getValue()
-
value
protected BigDecimal value
The cached value of the 'Value
' attribute.- See Also:
getValue()
-
PRECISION_EDEFAULT
protected static final int PRECISION_EDEFAULT
The default value of the 'Precision
' attribute.- See Also:
getPrecision()
, Constant Field Values
-
precision
protected int precision
The cached value of the 'Precision
' attribute.- See Also:
getPrecision()
-
SCALE_EDEFAULT
protected static final int SCALE_EDEFAULT
The default value of the 'Scale
' attribute.- See Also:
getScale()
, Constant Field Values
-
scale
protected int scale
The cached value of the 'Scale
' attribute.- See Also:
getScale()
-
NON_NEGATIVE_EDEFAULT
protected static final boolean NON_NEGATIVE_EDEFAULT
The default value of the 'Non Negative
' attribute.- See Also:
isNonNegative()
, Constant Field Values
-
nonNegative
protected boolean nonNegative
The cached value of the 'Non Negative
' attribute.- See Also:
isNonNegative()
-
SHOW_TRAILING_ZEROES_EDEFAULT
protected static final boolean SHOW_TRAILING_ZEROES_EDEFAULT
The default value of the 'Show Trailing Zeroes
' attribute.- See Also:
isShowTrailingZeroes()
, Constant Field Values
-
showTrailingZeroes
protected boolean showTrailingZeroes
The cached value of the 'Show Trailing Zeroes
' attribute.- See Also:
isShowTrailingZeroes()
-
-
Method Detail
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
- Overrides:
eStaticClass
in classValueControlViewModelImpl
-
getValue
public BigDecimal getValue()
- Specified by:
getValue
in interfaceNumberValueControlViewModel
- Returns:
- the value of the 'Value' attribute.
- See Also:
NumberValueControlViewModel.setValue(BigDecimal)
,MdAefPackage.getNumberValueControlViewModel_Value()
-
setValue
public void setValue(BigDecimal newValue)
- Specified by:
setValue
in interfaceNumberValueControlViewModel
- Parameters:
newValue
- the new value of the 'Value' attribute.- See Also:
NumberValueControlViewModel.getValue()
-
getPrecision
public int getPrecision()
- Specified by:
getPrecision
in interfaceNumberValueControlViewModel
- Returns:
- the value of the 'Precision' attribute.
- See Also:
NumberValueControlViewModel.setPrecision(int)
,MdAefPackage.getNumberValueControlViewModel_Precision()
-
setPrecision
public void setPrecision(int newPrecision)
- Specified by:
setPrecision
in interfaceNumberValueControlViewModel
- Parameters:
newPrecision
- the new value of the 'Precision' attribute.- See Also:
NumberValueControlViewModel.getPrecision()
-
getScale
public int getScale()
- Specified by:
getScale
in interfaceNumberValueControlViewModel
- Returns:
- the value of the 'Scale' attribute.
- See Also:
NumberValueControlViewModel.setScale(int)
,MdAefPackage.getNumberValueControlViewModel_Scale()
-
setScale
public void setScale(int newScale)
- Specified by:
setScale
in interfaceNumberValueControlViewModel
- Parameters:
newScale
- the new value of the 'Scale' attribute.- See Also:
NumberValueControlViewModel.getScale()
-
isNonNegative
public boolean isNonNegative()
- Specified by:
isNonNegative
in interfaceNumberValueControlViewModel
- Returns:
- the value of the 'Non Negative' attribute.
- See Also:
NumberValueControlViewModel.setNonNegative(boolean)
,MdAefPackage.getNumberValueControlViewModel_NonNegative()
-
setNonNegative
public void setNonNegative(boolean newNonNegative)
- Specified by:
setNonNegative
in interfaceNumberValueControlViewModel
- Parameters:
newNonNegative
- the new value of the 'Non Negative' attribute.- See Also:
NumberValueControlViewModel.isNonNegative()
-
isShowTrailingZeroes
public boolean isShowTrailingZeroes()
- Specified by:
isShowTrailingZeroes
in interfaceNumberValueControlViewModel
- Returns:
- the value of the 'Show Trailing Zeroes' attribute.
- See Also:
NumberValueControlViewModel.setShowTrailingZeroes(boolean)
,MdAefPackage.getNumberValueControlViewModel_ShowTrailingZeroes()
-
setShowTrailingZeroes
public void setShowTrailingZeroes(boolean newShowTrailingZeroes)
- Specified by:
setShowTrailingZeroes
in interfaceNumberValueControlViewModel
- Parameters:
newShowTrailingZeroes
- the new value of the 'Show Trailing Zeroes' attribute.- See Also:
NumberValueControlViewModel.isShowTrailingZeroes()
-
eGet
public Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classSelectViewModelImpl
-
eSet
public void eSet(int featureID, Object newValue)
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classSelectViewModelImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classSelectViewModelImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classSelectViewModelImpl
-
toString
public String toString()
- Overrides:
toString
in classControlViewModelImpl
-
-