"/adf/images/t.gif");
rw.endElement("img");
}
else
{
Icon icon = rc.getIcon(name);
if (icon == null)
{
StringBuffer fullName = new StringBuffer(_ICON_NAME_PREFIX.length() +
name.length() +
_ICON_NAME_SUFFIX.length());
fullName.append(_ICON_NAME_PREFIX);
char firstChar = Character.toUpperCase(name.charAt(0));
fullName.append(firstChar);
fullName.append(name.substring(1));
fullName.append(_ICON_NAME_SUFFIX);
icon = rc.getIcon(fullName.toString());
}
// If we've got an Icon, and it has content, render it
if ((icon != null) && !icon.isNull())
{
rw.startElement("span", comp);
// If this icon renders as an image, don't embed it in a span
boolean embed = icon.getImageURI(context, rc) == null;
if (embed)
{
renderId(context, comp);
// Don't render style class, as it's handled by the icon code
renderAllAttributes(context, rc, comp, bean, false);
}
// ... unless we have inlineStyle or Javascript, which won't
// get rendered on the icon itself. If none are present,
// our ResponseWriter will trim the unneeded span
else
{ // render the events only if the browser supports JavaScript
if (supportsScripting(rc))
{
renderEventHandlers(context, comp, bean);
}
}
// inlineStyle, if set, always goes on the span (today)
renderInlineStyle(context, rc, comp, bean);
icon.renderIcon(context, rc,
_getNodeAttributeMap(context, comp, bean, embed));
rw.endElement("span");
}
}
}