Entity specific icons

For a couple of repository entities there is a set of icons which can be obtained dynamically in PIM code.

Here is an example how to get an icon for a specific entity:

// this code provides a small image (16x16px) for the entity "Article"
String entityIdentifier = ArticleCoreConst.ENTITY_ARTICLE;
Image image = RepositoryUiUtils.getImage( entityIdentifier, ImageType.ICON_SMALL );

There are three several sizes of the entity images:

  • ImageTypes#ICON_SMALL - 16x16px

  • ImageTypes#ICON_MEDIUM - 32x32px

  • ImageTypes#ICON_LARGE - 48x48px

An additional image type - ImageTypes#DIALOG - can be used to get an appropriate image for the title area of an TitleAreaDialog. In this case the large variant of the corresponding image will be used and scaled to the size of the title area.

If there is no icon for the requested entity - the default icon will be returned (see also the table below).

All entity icon files are located in the plugin com.heiler.ppm.configuration.server -> folder conf/icons. At the moment there are following entity icons avaliable:

Entity

Small

Medium

Large

Article

images/download/attachments/60755962/Article-icon-small.gif

images/download/attachments/60755962/Article-icon-medium.gif

images/download/attachments/60755962/Article-icon-large.gif

ArticleAssortment

images/download/attachments/60755962/ArticleAssortment-icon-small.gif

images/download/attachments/60755962/ArticleAssortment-icon-medium.gif

images/download/attachments/60755962/ArticleAssortment-icon-large.gif

Assortment

images/download/attachments/60755962/Assortment-icon-small.gif

images/download/attachments/60755962/Assortment-icon-medium.gif

images/download/attachments/60755962/Assortment-icon-large.gif

EntityReportQuery

images/download/attachments/60755962/EntityReportQuery-icon-small.gif

images/download/attachments/60755962/EntityReportQuery-icon-medium.gif

images/download/attachments/60755962/EntityReportQuery-icon-large.gif

MasterCatalog

images/download/attachments/60755962/MasterCatalog-icon-small.gif

images/download/attachments/60755962/MasterCatalog-icon-medium.gif

images/download/attachments/60755962/MasterCatalog-icon-large.gif

MediaAsset

images/download/attachments/60755962/MediaAsset-icon-small.gif

images/download/attachments/60755962/MediaAsset-icon-medium.gif

images/download/attachments/60755962/MediaAsset-icon-large.gif

PriceGroup

images/download/attachments/60755962/PriceGroup-icon-small.gif

images/download/attachments/60755962/PriceGroup-icon-medium.gif

images/download/attachments/60755962/PriceGroup-icon-large.gif

Product

images/download/attachments/60755962/Product-icon-small.gif

images/download/attachments/60755962/Product-icon-medium.gif

images/download/attachments/60755962/Product-icon-large.gif

Product2G

images/download/attachments/60755962/Product2G-icon-small.gif

images/download/attachments/60755962/Product2G-icon-medium.gif

images/download/attachments/60755962/Product2G-icon-large.gif

ProductAssortment

images/download/attachments/60755962/ProductAssortment-icon-small.gif

images/download/attachments/60755962/ProductAssortment-icon-medium.gif

images/download/attachments/60755962/ProductAssortment-icon-large.gif

Revision

images/download/attachments/60755962/Revision-icon-small.gif

images/download/attachments/60755962/Revision-icon-medium.gif

images/download/attachments/60755962/Revision-icon-large.gif

Structure

images/download/attachments/60755962/Structure-icon-small.gif

images/download/attachments/60755962/Structure-icon-medium.gif

images/download/attachments/60755962/Structure-icon-large.gif

StructureGroup

images/download/attachments/60755962/StructureGroup-icon-small.gif

images/download/attachments/60755962/StructureGroup-icon-medium.gif

images/download/attachments/60755962/StructureGroup-icon-large.gif

SupplierCatalog

images/download/attachments/60755962/SupplierCatalog-icon-small.gif

images/download/attachments/60755962/SupplierCatalog-icon-medium.gif

images/download/attachments/60755962/SupplierCatalog-icon-large.gif

Task

images/download/attachments/60755962/Task-icon-small.gif

images/download/attachments/60755962/Task-icon-medium.gif

images/download/attachments/60755962/Task-icon-large.gif

Unit

images/download/attachments/60755962/Unit-icon-small.gif

images/download/attachments/60755962/Unit-icon-medium.gif

images/download/attachments/60755962/Unit-icon-large.gif

User

images/download/attachments/60755962/User-icon-small.gif

images/download/attachments/60755962/User-icon-medium.gif

images/download/attachments/60755962/User-icon-large.gif

Variant

images/download/attachments/60755962/Variant-icon-small.gif

images/download/attachments/60755962/Variant-icon-medium.gif

images/download/attachments/60755962/Variant-icon-large.gif

default (as fallback)

images/download/attachments/60755962/default-icon-small.gif

images/download/attachments/60755962/default-icon-medium.gif

images/download/attachments/60755962/default-icon-large.gif