return AbstractLightbox.class;
}
@Override
protected void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
AbstractLightbox lightbox = (AbstractLightbox) component;
final HashMap<String, Object> options = new HashMap<String, Object>();
addOptionIfSetAndOrDefault("imageBlank", lightbox.getImageBlank(), getURL(context, "/lightbox-blank.gif"), options);
addOptionIfSetAndOrDefault("imageLoading", lightbox.getImageLoading(), getURL(context, "/lightbox-ico-loading.gif"), options);
addOptionIfSetAndOrDefault("imageBtnNext", lightbox.getImageBtnNext(), getURL(context, "/lightbox-btn-next.gif"), options);
addOptionIfSetAndOrDefault("imageBtnPrev", lightbox.getImageBtnPrev(), getURL(context, "/lightbox-btn-prev.gif"), options);
addOptionIfSetAndOrDefault("imageBtnClose", lightbox.getImageBtnClose(), getURL(context, "/lightbox-btn-close.gif"), options);
addOptionIfSetAndNotDefault("containerBorderSize", lightbox.getContainerBorderSize(), options);
addOptionIfSetAndNotDefault("containerResizeSpeed", lightbox.getContainerResizeSpeed(), options);
addOptionIfSetAndNotDefault("fixedNavigation", lightbox.getFixedNavigation(), options);
addOptionIfSetAndNotDefault("keyToClose", lightbox.getKeyToClose(), options);
addOptionIfSetAndNotDefault("keyToNext", lightbox.getKeyToNext(), options);
addOptionIfSetAndNotDefault("keyToPrev", lightbox.getKeyToPrev(), options);
addOptionIfSetAndNotDefault("overlayBgColor", lightbox.getOverlayBgColor(), options);
addOptionIfSetAndNotDefault("overlayOpacity", lightbox.getOverlayOpacity(), options);
addOptionIfSetAndNotDefault("txtImage", lightbox.getTxtImage(), options);
addOptionIfSetAndNotDefault("txtOf", lightbox.getTxtOf(), options);
writer.startElement(HtmlConstants.DIV_ELEM, component);
writer.writeAttribute(HtmlConstants.ID_ATTRIBUTE, getUtils().clientId(context, component), "id");
getUtils().writeScript(context, component, new JSFunction("RichFaces.Lightbox", lightbox.getSelector(), options));
writer.endElement(HtmlConstants.DIV_ELEM);
}