|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IconGenerator
An interface for defining icon generators that work in conjunction with SkinUtils#getJiveObjectIcon. Create an implementation of this interface and register it by calling SkinUtils.addIconGenerator(int objectType, IconGenerator generator). Gives customers the ability to override the icons generated for existing content types and gives them the ability to add icons for new content types.
SkinUtils.addIconGenerator(int, IconGenerator),
SkinUtils.removeIconGenerator(int),
SkinUtils.getIcon(String, boolean, int)| Method Summary | |
|---|---|
String |
getCommentIcon(JiveObject object,
boolean returnAsCssClass,
int type)
Fetch an comment icon for the given JiveObject, return null if the method declines to provide an icon and the SkinUtils implementation will delegate to the system default. |
String |
getIcon(boolean returnAsCssClass,
int type)
Variation of getIcon(JiveObject, boolean, int) which does not require an actual jive object. |
String |
getIcon(JiveObject object,
boolean returnAsCssClass,
int type)
Fetch an icon for the given JiveObject, return null if the method declines to provide an icon and the SkinUtils implementation will delegate to the system default. |
| Method Detail |
|---|
String getIcon(JiveObject object,
boolean returnAsCssClass,
int type)
object - the object to fetch an icon forreturnAsCssClass - true to return a css class (may be partial), false to return the path
to the image (not including the context root i.e. /clearspace/)type - 0 for small, 1 for medium, 2 for large, 3 for xlarge, 4 for a label icon, 5 for
no type
String getIcon(boolean returnAsCssClass,
int type)
getIcon(JiveObject, boolean, int) which does not require an actual jive object. This is for
use in ui building where only the type is known, but no actual instance of it exists.
returnAsCssClass - true to return a css class (may be partial), false to return the path
to the image (not including the context root i.e. /clearspace/)type - 0 for small, 1 for medium, 2 for large, 3 for xlarge, 4 for a label icon, 5 for
no type
String getCommentIcon(JiveObject object,
boolean returnAsCssClass,
int type)
object - the object to fetch an icon forreturnAsCssClass - true to return a css class (may be partial), false to return the path
to the image (not including the context root i.e. /clearspace/)type - 0 for small, 1 for medium, 2 for large, 3 for xlarge, 4 for a label icon, 5 for
no type
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||