ImageResourceInfo backgroundInfo = new ImageResourceInfo(
aResourceReference);
int width = backgroundInfo.getWidth();
int height = backgroundInfo.getHeight();
CSSInlineStyle aCSSInlineStyle = new CSSInlineStyle();
aCSSInlineStyle.add("background", "url("
+ RequestCycle.get().urlFor(aResourceReference) + ")");
aCSSInlineStyle.add("width", width + "px");
aCSSInlineStyle.add("height", height + "px");
Map propertyMap = yuiAttribute.getPropertyMap();
Set keySet = propertyMap.keySet();
Iterator iter = keySet.iterator();
while (iter.hasNext()) {
String aKey = (String) iter.next();
YuiProperty aYuiProperty = (YuiProperty) propertyMap
.get(aKey);
aCSSInlineStyle.add("border", "solid "
+ removeQuote(aYuiProperty.getFrom()));
}
CSSInlineStyleList.add(aCSSInlineStyle);
} else {
YuiTextBox aTextBox = (YuiTextBox) list.get(i);
CSSInlineStyle aCSSInlineStyle = new CSSInlineStyle();
aCSSInlineStyle.add("background", aTextBox.getBackground());
aCSSInlineStyle.add("width", aTextBox.getWidth() + "px");
aCSSInlineStyle.add("height", aTextBox.getHeight() + "px");
Map propertyMap = yuiAttribute.getPropertyMap();
Set keySet = propertyMap.keySet();
Iterator iter = keySet.iterator();
while (iter.hasNext()) {
String aKey = (String) iter.next();
YuiProperty aYuiProperty = (YuiProperty) propertyMap
.get(aKey);
aCSSInlineStyle.add("border", "solid "
+ removeQuote(aYuiProperty.getFrom()));
}
CSSInlineStyleList.add(aCSSInlineStyle);
}
}