public final class ImageUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getImageBasename(java.lang.Object entity)
Gets the image basename.
|
static java.lang.String |
getImageUrl(java.lang.Object entity)
Gets the image url.
|
static java.lang.String |
getImageUrl(java.lang.Object entity,
java.lang.Integer size,
boolean extended)
Gets the image url.
|
static java.lang.String |
getImageUrl16(java.lang.Object entity)
Gets the 16x16 image url.
|
static java.lang.String |
getImageUrl16(java.lang.Object entity,
boolean extended)
Gets the 16x16 image url.
|
static java.lang.String |
getImageUrl32(java.lang.Object entity)
Gets the 32x32 image url.
|
static java.lang.String |
getImageUrl48(java.lang.Object entity)
Gets the 48x48 image url.
|
public static java.lang.String getImageBasename(java.lang.Object entity)
entity
- the entitypublic static java.lang.String getImageUrl(java.lang.Object entity)
The correct icon is determined by the type of the element and whether it is completed or subscribed.
entity
- the entitypublic static java.lang.String getImageUrl16(java.lang.Object entity)
entity
- the entitypublic static java.lang.String getImageUrl16(java.lang.Object entity, boolean extended)
entity
- the entityextended
- the extendedpublic static java.lang.String getImageUrl32(java.lang.Object entity)
entity
- the entitypublic static java.lang.String getImageUrl48(java.lang.Object entity)
entity
- the entitypublic static java.lang.String getImageUrl(java.lang.Object entity, java.lang.Integer size, boolean extended)
The correct icon is determined by the type of the element and whether it is completed or subscribed.
entity
- the entitysize
- the size from the imageextended
- the extended