Package org.sgx.yuigwt.yui.node

Examples of org.sgx.yuigwt.yui.node.Node.addClass()


      if(clickHandler!=null)
        labelEl.on("click", clickHandler);
     
      if(childs!=null&&childs.length>0) {
//        labelEl.addClass("yui3-menuitem-content");
        labelEl.addClass("yui3-menu-label");
        Node root = NODE(Y, "tag:'div',class:'yui3-menu'", null, null),
        content = NODE(Y, "tag:'div',class:'yui3-menu-content'", null, null),
        list = NODE(Y, "tag:'ul'", null, null);
        root.append(content);
        content.append(list);
View Full Code Here


  }
  public static Node makeMenu(YuiContext Y, boolean horizontal, Node[] menuItems) {
    Node root = NODE(Y, "tag:'div',class:'yui3-menu'", null, null),
        content = NODE(Y, "tag:'div',class:'yui3-menu-content'", null, null);
//    Window.alert(root+"");
    root.addClass(horizontal?"yui3-menu-horizontal":"yui3-menu-vertical");
    root.append(content);
    if(menuItems==null || menuItems.length==0)
      return root;
    Node list = NODE(Y, "tag:'ul'", null, null);
//    list.addClass("first-of-type");
View Full Code Here

      if(clickHandler!=null)
        labelEl.on("click", clickHandler);
     
      if(childs!=null&&childs.length>0) {
//        labelEl.addClass("yui3-menuitem-content");
        labelEl.addClass("yui3-menu-label");
        Node root = NODE(Y, "tag:'div',class:'yui3-menu'", null, null),
        content = NODE(Y, "tag:'div',class:'yui3-menu-content'", null, null),
        list = NODE(Y, "tag:'ul'", null, null);
        root.append(content);
        content.append(list);
View Full Code Here

  }
  public static Node makeMenu(YuiContext Y, boolean horizontal, Node[] menuItems) {
    Node root = NODE(Y, "tag:'div',class:'yui3-menu'", null, null),
        content = NODE(Y, "tag:'div',class:'yui3-menu-content'", null, null);
//    Window.alert(root+"");
    root.addClass(horizontal?"yui3-menu-horizontal":"yui3-menu-vertical");
    root.append(content);
    if(menuItems==null || menuItems.length==0)
      return root;
    Node list = NODE(Y, "tag:'ul'", null, null);
//    list.addClass("first-of-type");
View Full Code Here

  public void ready(final YuiContext Y_) {
    this.Y = Y_.cast();

    Node body = Y.one("body");
    // Document.get().getBody().addClassName("yui3-skin-sam");
    body.addClass("yui3-skin-sam");

    // create a dyn stylesheet
    ssheet1 = Y.newStyleSheet();

    // set the YUI skin to use
View Full Code Here

    // create a dyn stylesheet
    ssheet1 = Y.newStyleSheet();

    // set the YUI skin to use
    body.addClass("yui3-skin-sam");

    mainPanel = body.one("#layout");
    navContent = body.one("#nav>.content");
    mainContent = body.one("#main>.content");
    mainContent.getDOMNode().setId("main-example-panel");
View Full Code Here

      if(clickHandler!=null)
        labelEl.on("click", clickHandler);
     
      if(childs!=null&&childs.length>0) {
//        labelEl.addClass("yui3-menuitem-content");
        labelEl.addClass("yui3-menu-label");
        Node root = NODE(Y, "tag:'div',class:'yui3-menu'", null, null),
        content = NODE(Y, "tag:'div',class:'yui3-menu-content'", null, null),
        list = NODE(Y, "tag:'ul'", null, null);
        root.append(content);
        content.append(list);
View Full Code Here

  }
  public static Node makeMenu(YuiContext Y, boolean horizontal, Node[] menuItems) {
    Node root = NODE(Y, "tag:'div',class:'yui3-menu'", null, null),
        content = NODE(Y, "tag:'div',class:'yui3-menu-content'", null, null);
//    Window.alert(root+"");
    root.addClass(horizontal?"yui3-menu-horizontal":"yui3-menu-vertical");
    root.append(content);
    if(menuItems==null || menuItems.length==0)
      return root;
    Node list = NODE(Y, "tag:'ul'", null, null);
//    list.addClass("first-of-type");
View Full Code Here

  public void render() {

    styleSheet = Y.newStyleSheet();
   
    Node body = Y.one("body");
    body.addClass("yui3-skin-sam");
   
    mainPanel = body.one("#layout");
    navContent = body.one("#nav>.content");
    navContent.setStyle("border", "4px solid pink");
    mainContent = body.one("#main>.content");
View Full Code Here

  @Override
  public void ready(YuiContext Y) {
    Node parentNode = Y.one(RootPanel.get());
   
    //remember to add yui3 skin class name to your root node      
    parentNode.addClass("yui3-skin-sam");
   
    Button button1 = (Button) Y.newButton(
      ButtonConfig.create().label("a YUI3 button widget")
    ).render(parentNode)
    button1.on("click", new EventCallback() {     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.