protocol.getMarinerPageContext()
.getStylingEngine().getStyles(),
DisplayKeywords.NONE);
MutablePropertyValues values = styles.getPropertyValues();
StyleValueFactory svf = StyleValueFactory.getDefaultInstance();
values.setComputedAndSpecifiedValue(
StylePropertyDetails.POSITION, StyleKeywords.FIXED);
values.setComputedAndSpecifiedValue(
StylePropertyDetails.TOP, svf.getLength(null, 0, LengthUnit.PX));
values.setComputedAndSpecifiedValue(
StylePropertyDetails.LEFT, svf.getLength(null, 0, LengthUnit.PX));
values.setComputedAndSpecifiedValue(
StylePropertyDetails.BACKGROUND_COLOR, StyleColorNames.WHITE);
Iterator i = Arrays.asList(StyleShorthands.MARGIN.getStandardProperties()).iterator();
while (i.hasNext()) {
StyleProperty property = (StyleProperty)i.next();
values.setComputedAndSpecifiedValue(property, svf.getLength(null, 5, LengthUnit.PX));
}
i = Arrays.asList(StyleShorthands.PADDING.getStandardProperties()).iterator();
while (i.hasNext()) {
StyleProperty property = (StyleProperty)i.next();
values.setComputedAndSpecifiedValue(property, svf.getLength(null, 0.5, LengthUnit.EM));
}
i = Arrays.asList(StyleShorthands.BORDER_WIDTH.getStandardProperties()).iterator();
while (i.hasNext()) {
StyleProperty property = (StyleProperty)i.next();
values.setComputedAndSpecifiedValue(property, svf.getLength(null, 1, LengthUnit.PX));
}
i = Arrays.asList(StyleShorthands.BORDER_STYLE.getStandardProperties()).iterator();
while (i.hasNext()) {
StyleProperty property = (StyleProperty)i.next();
values.setComputedAndSpecifiedValue(property, StyleKeywords.SOLID);