Class MdPictureModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.aef2.models.value.Value<T>
-
- com._1c.g5.aef2.models.pojo.PojoValue<MdPicture>
-
- com._1c.g5.v8.dt.md.ui.aef.models.MdPictureModel
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<MdPicture>
,IValidable
,IModelApiAwareModel
,IMdPictureModel
public class MdPictureModel extends PojoValue<MdPicture> implements IMdPictureModel, IModelApiAwareModel
MdPicture
model implementationIMdPictureModel
}.
-
-
Constructor Summary
Constructors Constructor Description MdPictureModel(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IModelObjectFactory modelFactory, IRuntimeVersionSupport runtimeVersionSupport)
Instantiates a new picture model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit()
Commits the changes to the data model.void
dispose()
Disposes this model.IModelApi
getModelApi()
Returns the model API.void
setContent(byte[] content, String fileExtension, Point transparentPoint)
SetsMdPicture
content.void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
-
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, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, 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, discard, 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
-
-
-
-
Constructor Detail
-
MdPictureModel
public MdPictureModel(MdObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IModelObjectFactory modelFactory, IRuntimeVersionSupport runtimeVersionSupport)
Instantiates a new picture model.- Parameters:
object
- the md-object, can not benull
feature
- the object feature, can not benull
modelFactory
- the model factory, can not benull
runtimeVersionSupport
- the version support, can not benull
-
-
Method Detail
-
setContent
public void setContent(byte[] content, String fileExtension, Point transparentPoint)
Description copied from interface:IMdPictureModel
SetsMdPicture
content.- Specified by:
setContent
in interfaceIMdPictureModel
- Parameters:
content
- the picture contentfileExtension
- the picture file extensiontransparentPoint
- the picture transparent point
-
commit
public void commit()
Description copied from interface:IModel
Commits the changes to the data model.
-
getModelApi
public IModelApi getModelApi()
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
setModelApi
public void setModelApi(IModelApi modelApi)
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
-