public abstract Dimension calculateDimensions();
protected Object getDataToStore(FacesContext context, Object data) {
Skin skin = SkinFactory.getInstance().getSkin(context);
Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(context);
Color col = null;
String skinParameter = "headerTextColor";
String headerTextColor = (String) skin.getParameter(context, skinParameter);
if (null == headerTextColor || "".equals(headerTextColor))
headerTextColor = (String) defaultSkin.getParameter(context, skinParameter);
if (headerTextColor == null) {
return null;
}
col = HtmlColor.decode(headerTextColor);
byte[] ret = new byte[6];
Zipper.zip(ret, col.getRGB(), 0);
skinParameter = "headerBackgroundColor";
String headerBackgroundColor = (String) skin.getParameter(context, skinParameter);
if (null == headerBackgroundColor || "".equals(headerBackgroundColor))
headerBackgroundColor = (String) defaultSkin.getParameter(context, skinParameter);
if (headerBackgroundColor == null) {
return null;
}