Package org.sgx.yuigwt.yui.widget.panel

Examples of org.sgx.yuigwt.yui.widget.panel.Panel.render()


    PanelConfig panelConfig = (PanelConfig) PanelConfig.create().centered(true).srcNode(panelEl).width("80%").height("450px");
    panelConfig.headerContent("Example Sources");
    panelConfig.bodyContent(tbEl);
    final Panel panel1 = Y.newPanel(panelConfig);
    // panel1.contentBox().setY(0);
    panel1.render();

    // make it draggable by the header.
    panel1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[] { ".yui3-widget-hd" }));
    return panel1;
  }
View Full Code Here


                panel.hide();
              }
            })).render().cast();
            panel.addButton(acceptButton);

            panel.render(y.one("body"));
//            Node bodyNode = (Node) panel.bodyContent();
            Node bodyNode2 = panel.srcNode().one(".bodyContent");
            finalEd.render(bodyNode2);
            finalEd.load(val);
View Full Code Here

        }
      })).render().cast();
      panel.addButton(acceptButton);
     

      panel.render(y.one("body"));
      Node bodyNode2 = panel.srcNode().one(".bodyContent");
      entityEditor.render(bodyNode2);
      entityEditor.load(sampleEntity);
    }
View Full Code Here

    Panel panel2 = Y.newPanel((PanelConfig) PanelConfig.create().xy(10, 10).srcNode(parent.appendChild("<p></p>")).width("400px").render(true));
    panel2.headerContent("<h1>Panel header string</h1>");
    panel2.bodyContent(parent.appendChild("<p>Body <b>content</b> from an other node. Sl asdkljlksajd lfklaj serfjkjd slfj klajsdk fj klaj dsf. </p>"));
    panel2.footerContent("<i>small</i>");
    panel2.align(Align.create().node(parent).points(new Point[] { Point.create(0, 0), Point.create(0, 0) }));
    panel2.render(); // apply the align

    // now make this panel draggable by its header
    panel2.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[] { ".yui3-widget-hd" }));

    // and resizable
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.