public class ImageBlockModel extends ContentBlockModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
CAPTION
Generated constant - Attribute key of
ImageBlock.caption attribute defined at extension print. |
static String |
IMAGE
Generated constant - Attribute key of
ImageBlock.image attribute defined at extension print. |
_CATEGORY2CONTENTBLOCKRELATION, CATALOGVERSION, CATEGORIES, CODE, NAME, RENDEREDCONTENT_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
ImageBlockModel()
Generated constructor - Default constructor for generic creation.
|
ImageBlockModel(CatalogVersionModel _catalogVersion,
String _code)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
ImageBlockModel(CatalogVersionModel _catalogVersion,
String _code,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
ImageBlockModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCaption()
Generated method - Getter of the
ImageBlock.caption attribute defined at extension print. |
String |
getCaption(Locale loc)
Generated method - Getter of the
ImageBlock.caption attribute defined at extension print. |
MediaModel |
getImage()
Generated method - Getter of the
ImageBlock.image attribute defined at extension print. |
void |
setCaption(String value)
Generated method - Setter of
ImageBlock.caption attribute defined at extension print. |
void |
setCaption(String value,
Locale loc)
Generated method - Setter of
ImageBlock.caption attribute defined at extension print. |
void |
setImage(MediaModel value)
Generated method - Setter of
ImageBlock.image attribute defined at extension print. |
getCatalogVersion, getCategories, getCode, getName, getName, getRenderedContent, setCatalogVersion, setCategories, setCode, setName, setNamegetComments, getCreationtime, getModifiedtime, getOwner, setComments, setCreationtime, setModifiedtime, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic static final String _TYPECODE
public static final String IMAGE
ImageBlock.image attribute defined at extension print.public static final String CAPTION
ImageBlock.caption attribute defined at extension print.public ImageBlockModel()
public ImageBlockModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public ImageBlockModel(CatalogVersionModel _catalogVersion, String _code)
_catalogVersion - initial attribute declared by type ContentBlock at extension print_code - initial attribute declared by type ContentBlock at extension print@Deprecated public ImageBlockModel(CatalogVersionModel _catalogVersion, String _code, ItemModel _owner)
_catalogVersion - initial attribute declared by type ContentBlock at extension print_code - initial attribute declared by type ContentBlock at extension print_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="caption", type=GETTER) public String getCaption()
ImageBlock.caption attribute defined at extension print.@Accessor(qualifier="caption", type=GETTER) public String getCaption(Locale loc)
ImageBlock.caption attribute defined at extension print.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="image", type=GETTER) public MediaModel getImage()
ImageBlock.image attribute defined at extension print.@Accessor(qualifier="caption", type=SETTER) public void setCaption(String value)
ImageBlock.caption attribute defined at extension print.value - the caption@Accessor(qualifier="caption", type=SETTER) public void setCaption(String value, Locale loc)
ImageBlock.caption attribute defined at extension print.value - the captionloc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="image", type=SETTER) public void setImage(MediaModel value)
ImageBlock.image attribute defined at extension print.value - the imageCopyright © 2017 SAP SE. All Rights Reserved.