byte[] ret = new byte[6];
String tmp = (String) ((UIComponent) data).getAttributes().get("height");
int height = HtmlDimensions.decode(tmp == null ? "6" : tmp).intValue();
Zipper2 zipper2 = new Zipper2(ret).addShort((short) height);
String skinParameter = "headerBackgroundColor";
tmp = (String) skin.getParameter(context, skinParameter);
if (null == tmp || "".equals(tmp)) {
Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(context);
tmp = (String) defaultSkin.getParameter(context, skinParameter);
}
zipper2.addColor(HtmlColor.decode(tmp == null ? "#4169E1" : tmp).getRGB());
//XXX by nick - fantonov - ((UISeparator)data).getLineType() ?
tmp = (String) ((UISeparator) data).getLineType();
int lineType = LINE_TYPE_SOLID;
if (tmp.equalsIgnoreCase(UISeparator.LINE_TYPE_DOTTED)) {
lineType = LINE_TYPE_DOTTED;
} else if (tmp.equalsIgnoreCase(UISeparator.LINE_TYPE_DASHED)) {
lineType = LINE_TYPE_DASHED;
} else
if (tmp.equalsIgnoreCase(UISeparator.LINE_TYPE_DOUBLE) && height > 2)
{
lineType = LINE_TYPE_DOUBLE;
}
zipper2.addByte((byte) lineType);
return ret;
}