Package org.sgx.yuigwt.yui.stylesheet

Examples of org.sgx.yuigwt.yui.stylesheet.StyleSheet


        console.log("selected color: "+e.value());
      }
    });
    selList2.render(parent.appendChild("<div id=\"divcolorpicker\"></div>"));
   
    StyleSheet sty = Y.newStyleSheet();
   
    //the main color label
    sty.set("#divcolorpicker .itsa-selectlist-selectedmain div",
        Style.create().width("12px").height("10px").marginLeft("18px"));
   
    sty.set("#divcolorpicker .itsa-selectlist-ullist div",
        Style.create().width("15px").height("15px"));
   
    //the main icon
    sty.set("#divcolorpicker .itsa-icon-textcolor",
        Style.create().backgroundPosition("1px -215px").width("16px"));
   
    sty.set("#divcolorpicker .itsa-selectlist-ullist li",
        Style.create().display("inline-block")
        .padding("2px").border("solid 1px #FFF"));
  }
});
}
View Full Code Here


public void test(final Node parent) {
YUI.Use(new String[]{"stylesheet", "slider"}, new YUICallback() {
  @Override
  public void ready(final YuiContext Y) { 
   
    final StyleSheet ss1 = Y.newStyleSheet();
    Slider sl1 = Y.newSlider(SliderConfig.create().min(8).max(34).value(11));
    sl1.render(parent);
    sl1.on(Slider.EVENT_THUMBMOVE, new EventCallback() {
     
      @Override
      public void call(EventFacade e_) {
        SliderEvent e = (SliderEvent)e_;
        String fsize = (e.offset()+8)+"px";
        ss1.set(".sstest1", Style.create().fontSize(fsize));
      }
    });
   
    parent.append("<p class=\"sstest1\">tres tristes tigres comen trigo en el trigal</p>");
 
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.stylesheet.StyleSheet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.