Class StandardObjectValueModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel<M>
com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue<Value,IValueModel>
com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectValueModel
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<Value>
,IValidable
,IModelApiAwareModel
,IValueModel
public class StandardObjectValueModel
extends StandardObjectSwitchingSourceValue<Value,IValueModel>
implements IValueModel
The
IValueModel
instance for standard attributes.-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<T extends IModel>
-
Constructor Summary
ConstructorsConstructorDescriptionStandardObjectValueModel
(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the currentTypeItem
.org.eclipse.emf.ecore.EObject
Returns value property object.Returns theTypeDescription
of the object that keeps theValue
.Returns the model ofTypeItem
.Returns the {@link IV8Project).Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
dispose, getChange, getModelApi, getProxy, getWrappedModel, isOnline, setModelApi
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
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.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
Methods inherited from interface com._1c.g5.v8.dt.md.ui.aef.models.value.IValueModel
convertTypeItemToValue
-
Constructor Details
-
StandardObjectValueModel
public StandardObjectValueModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project) The constructor.- Parameters:
proxy
- theStandardAttributeProxy
object, cannot benull
.object
- theStandardAttribute
instance, cannot benull
.feature
- the feature, cannot benull
.v8project
- the V8 project, cannot benull
-
-
Method Details
-
getTypeDescription
Description copied from interface:IValueModel
Returns theTypeDescription
of the object that keeps theValue
.- Specified by:
getTypeDescription
in interfaceIValueModel
- Returns:
- the
TypeDescription
instance.
-
getTypeItemModel
Description copied from interface:IValueModel
Returns the model ofTypeItem
. It is the changeable model that can be changed from component, i.e. in case the user select the type from type selection dialog, or can be changed in automatically in case if theTypeDescription
was changed.- Specified by:
getTypeItemModel
in interfaceIValueModel
- Returns:
- the model of
TypeItem
, cannot benull
-
getCurrentTypeItem
Description copied from interface:IValueModel
Returns the currentTypeItem
. It is calculated object that is depends on current state ofIValueModel.getTypeItemModel()
andIValueModel.getTypeDescription()
.- Specified by:
getCurrentTypeItem
in interfaceIValueModel
- Returns:
- the current
TypeItem
.
-
getObject
public org.eclipse.emf.ecore.EObject getObject()Description copied from interface:IValueModel
Returns value property object.- Specified by:
getObject
in interfaceIValueModel
- Returns:
- the value property object.
-
getV8project
Description copied from interface:IValueModel
Returns the {@link IV8Project).- Specified by:
getV8project
in interfaceIValueModel
- Returns:
- the v8 project.
-
getColorProvider
- Specified by:
getColorProvider
in interfaceIValueModel
- Returns:
- the color provider, can be
null
-
getFontProvider
- Specified by:
getFontProvider
in interfaceIValueModel
- Returns:
- the font provider, can be
null
-
getContentProvider
- Specified by:
getContentProvider
in interfaceIValueModel
- Returns:
- the default content provider, can be
null
-