Copyright© 2008-2022 Sitevision AB, all rights reserved.
public static interface BuddyIconRenderer.BuddyIconInfo
This data is typically used for custom rendering of a buddy icon.
Server-side Javascript example (a function that provides custom rendering of a 48x48 buddy icon image for a given sv:userIdentity Node):
function getHtmlImage(userIdentity) {
const buddyIconRenderer = require('BuddyIconRenderer');
const LARGE_SIZE = require('BuddyIconRenderer.BuddyIconSize.LARGE');
// Load renderer and set proper size
buddyIconRenderer.update(userIdentity);
buddyIconRenderer.setBuddyIconSize(LARGE_SIZE);
// Get BuddyIconInfo data
const info = buddyIconRenderer.getBuddyIconInfo();
// Do custom render...
return '<img src="' + info.getURI() + '">';
}
BuddyIconRenderer.getBuddyIconInfo()
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
The height of current buddy icon.
|
String |
getURI()
The URI of current buddy icon.
|
int |
getWidth()
The width of current buddy icon.
|
String getURI()
int getWidth()
int getHeight()
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.