Interface ICommonPictureContentGridModel
-
- All Superinterfaces:
IEditableModel
,IGridModel<ZipPictureManifestEntry>
,IModel
,IValidable
- All Known Implementing Classes:
CommonPictureContentGridModel
public interface ICommonPictureContentGridModel extends IGridModel<ZipPictureManifestEntry>
The grid model for Common picture content grid component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ZipPictureManifestEntry
addNewZipManifestEntry()
Add newZipPictureManifestEntry
to modelZipPictureManifestEntry
cloneZipManifestEntry()
Clone selectZipPictureManifestEntry
in modelCommonPictureManifestEntryData
getManifestEntryData(ZipPictureManifestEntry manifestEntry)
Content data of specifedZipPictureManifestEntry
byte[]
getSelectedImageData()
Image data of select pictureIV8Project
getV8Project()
Returns the V8 project.boolean
isCollectionMode()
Common picture content can contains a blocks of picturesvoid
removeSelectedZipManifestEntry()
Remove selectZipPictureManifestEntry
from modelvoid
setManifestEntryData(ZipPictureManifestEntry manifestEntry, CommonPictureManifestEntryData data, String extension)
Determine data content for givenZipPictureManifestEntry
void
updateManifestEntry(ZipPictureManifestEntry manifestEntry)
UpdateZipPictureManifestEntry
in model-
Methods inherited from interface com._1c.g5.aef2.models.IEditableModel
isEditable, setEditable
-
Methods inherited from interface com._1c.g5.v8.dt.ui.aef.models.IGridModel
getChildren, getElements, getParent, getSelectedElementModel, hasChildren
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Method Detail
-
getV8Project
IV8Project getV8Project()
Returns the V8 project.- Returns:
- the V8 project, never
null
.
-
addNewZipManifestEntry
ZipPictureManifestEntry addNewZipManifestEntry()
Add newZipPictureManifestEntry
to model- Returns:
- the new instance of
ZipPictureManifestEntry
, nevernull
-
cloneZipManifestEntry
ZipPictureManifestEntry cloneZipManifestEntry()
Clone selectZipPictureManifestEntry
in model- Returns:
- the clone instance of
ZipPictureManifestEntry
, can benull
if no entry selected
-
removeSelectedZipManifestEntry
void removeSelectedZipManifestEntry()
Remove selectZipPictureManifestEntry
from model
-
isCollectionMode
boolean isCollectionMode()
Common picture content can contains a blocks of pictures- Returns:
true
if this picture content can contains a blocks of pictures andfalse
in otherwise
-
getManifestEntryData
CommonPictureManifestEntryData getManifestEntryData(ZipPictureManifestEntry manifestEntry)
Content data of specifedZipPictureManifestEntry
- Parameters:
manifestEntry
- the instance ofZipPictureManifestEntry
, cannot benull
- Returns:
- byte array of image data, can be
null
-
setManifestEntryData
void setManifestEntryData(ZipPictureManifestEntry manifestEntry, CommonPictureManifestEntryData data, String extension)
Determine data content for givenZipPictureManifestEntry
- Parameters:
manifestEntry
- the instance ofZipPictureManifestEntry
, cannot benull
data
-CommonPictureManifestEntryData
of image to set in manifest entry, can benull
for remove content for entryextension
- the extension of image used as data content, can benull
if data isnull
-
getSelectedImageData
byte[] getSelectedImageData()
Image data of select picture- Returns:
- the byte array of selected image, or
null
if no image selected.
-
updateManifestEntry
void updateManifestEntry(ZipPictureManifestEntry manifestEntry)
UpdateZipPictureManifestEntry
in model- Parameters:
manifestEntry
- the instance ofZipPictureManifestEntry
, cannot benull
-
-