@Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance).setAlignment(Alignment9.CENTER);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final FontElement checkOut = FontElement.checkOut();
   checkOut.setRenderer(Xulor.getInstance().getDocumentParser().getFont("defaultFontBordered30"));
   checkOut.setElementMap(elementMap);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   final String id = "defaultLightColor";
   final ColorElement checkOut2 = ColorElement.checkOut();
   checkOut2.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut2);
   }
   checkOut2.setColor(new Color(1.0f, 1.0f, 1.0f, 1.0f));
   appearance.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   appearance.onChildrenAdded();
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final Padding element = new Padding();
   element.onCheckOut();
   element.setElementMap(elementMap);
   element.setInsets(new Insets(3, 0, 3, 0));
   widget.addBasicElement(element);
   element.onAttributesInitialized();
   element.onChildrenAdded();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance).setAlignment(Alignment9.CENTER);
   appearance.setState("default");
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final PixmapElement checkOut = PixmapElement.checkOut();
   checkOut.setElementMap(elementMap);
   checkOut.setHeight(18);
   checkOut.setPosition(Alignment17.CENTER);
   checkOut.setRotation(GeometrySprite.SpriteRotation.QUARTER_COUNTER_CLOCKWISE);
   checkOut.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut.setWidth(16);
   checkOut.setX(215);
   checkOut.setY(744);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   appearance.onChildrenAdded();
   final DecoratorAppearance appearance2 = widget.getAppearance();
   appearance2.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance2).setAlignment(Alignment9.CENTER);
   appearance2.setState("mouseHover");
   widget.addBasicElement(appearance2);
   appearance2.onAttributesInitialized();
   final PixmapElement checkOut2 = PixmapElement.checkOut();
   checkOut2.setElementMap(elementMap);
   checkOut2.setHeight(18);
   checkOut2.setPosition(Alignment17.CENTER);
   checkOut2.setRotation(GeometrySprite.SpriteRotation.QUARTER_COUNTER_CLOCKWISE);
   checkOut2.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut2.setWidth(16);
   checkOut2.setX(964);
   checkOut2.setY(14);
   appearance2.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   appearance2.onChildrenAdded();
   final DecoratorAppearance appearance3 = widget.getAppearance();
   appearance3.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance3).setAlignment(Alignment9.CENTER);
   appearance3.setState("pressed");
   widget.addBasicElement(appearance3);
   appearance3.onAttributesInitialized();
   final PixmapElement checkOut3 = PixmapElement.checkOut();
   checkOut3.setElementMap(elementMap);
   checkOut3.setHeight(18);
   checkOut3.setPosition(Alignment17.CENTER);
   checkOut3.setRotation(GeometrySprite.SpriteRotation.QUARTER_COUNTER_CLOCKWISE);
   checkOut3.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut3.setWidth(16);
   checkOut3.setX(215);
   checkOut3.setY(723);
   appearance3.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   appearance3.onChildrenAdded();
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance).setAlignment(Alignment9.CENTER);
   appearance.setState("default");
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final PixmapElement checkOut = PixmapElement.checkOut();
   checkOut.setElementMap(elementMap);
   checkOut.setHeight(27);
   checkOut.setPosition(Alignment17.CENTER);
   checkOut.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut.setWidth(27);
   checkOut.setX(191);
   checkOut.setY(3);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   appearance.onChildrenAdded();
   final DecoratorAppearance appearance2 = widget.getAppearance();
   appearance2.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance2).setAlignment(Alignment9.CENTER);
   appearance2.setState("mouseHover");
   widget.addBasicElement(appearance2);
   appearance2.onAttributesInitialized();
   final PixmapElement checkOut2 = PixmapElement.checkOut();
   checkOut2.setElementMap(elementMap);
   checkOut2.setHeight(27);
   checkOut2.setPosition(Alignment17.CENTER);
   checkOut2.setTexture(this.doc.getTexture("mru_0.tga"));
   checkOut2.setWidth(27);
   checkOut2.setX(872);
   checkOut2.setY(363);
   appearance2.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   appearance2.onChildrenAdded();
   final DecoratorAppearance appearance3 = widget.getAppearance();
   appearance3.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance3).setAlignment(Alignment9.CENTER);
   appearance3.setState("pressed");
   widget.addBasicElement(appearance3);
   appearance3.onAttributesInitialized();
   final PixmapElement checkOut3 = PixmapElement.checkOut();
   checkOut3.setElementMap(elementMap);
   checkOut3.setHeight(27);
   checkOut3.setPosition(Alignment17.CENTER);
   checkOut3.setTexture(this.doc.getTexture("mru_0.tga"));
   checkOut3.setWidth(27);
   checkOut3.setX(33);
   checkOut3.setY(300);
   appearance3.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   appearance3.onChildrenAdded();
   final DecoratorAppearance appearance4 = widget.getAppearance();
   appearance4.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance4).setAlignment(Alignment9.CENTER);
   appearance4.setState("disabled");
   widget.addBasicElement(appearance4);
   appearance4.onAttributesInitialized();
   final PixmapElement checkOut4 = PixmapElement.checkOut();
   checkOut4.setElementMap(elementMap);
   checkOut4.setHeight(27);
   checkOut4.setPosition(Alignment17.CENTER);
   checkOut4.setTexture(this.doc.getTexture("mru_0.tga"));
   checkOut4.setWidth(27);
   checkOut4.setX(33);
   checkOut4.setY(420);
   appearance4.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   appearance4.onChildrenAdded();
 }