CSSSelector selector = style.getSelector(); selector = cg.mapSelector(selector); writeAttributes(selectorPrefix + selector, style);
CSSSelector selector = cg.mapSelector(style.getSelector()); out.print(selectorPrefix).print(selector.getSelectorString()).print("{"); style.write(out); out.print("}\n");
        private void writeAttributesFrom(SComponent component)                throws IOException {            String selectorPrefix = "#" + component.getName();            if (component instanceof SFrame)                selectorPrefix = "body";            Collection dynamicStyles = component.getDynamicStyles();            if (dynamicStyles != null) {                ComponentCG cg = component.getCG();                for (Iterator iterator = dynamicStyles.iterator(); iterator.hasNext();) {                    Style style = (Style) iterator.next();                    CSSSelector selector = style.getSelector();                    selector = cg.mapSelector(selector);                    writeAttributes(selectorPrefix + selector, style);                }            }            SBorder border = component.getBorder();            if (border != null) {                writeAttributes(selectorPrefix, border.getAttributes());            }        }