Examples of headerContent()


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

    Node parentBody = parent.appendChild("<p></p>");
    final Panel panel1 = Y.newPanel((PanelConfig) PanelConfig.create()
    // .centered(true)
        .srcNode(parentBody).width("70%").height("400px").render(true));

    panel1.headerContent(headerContent);
    panel1.bodyContent(bodyContent);
    panel1.contentBox().setStyle("zIndex", 99999);
    panel1.contentBox().setY(10).setX(10);// Math.max(panel1.contentBox().getY()-100,
                        // 5));
    return panel1;
View Full Code Here

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

          @Override
          public void call(EventFacade e) {

            final Panel panel = y.newPanel((PanelConfig) PanelConfig.create().centered(true).width("400px"));
            panel.headerContent("<h1>" + name + "</h1>");
            panel.bodyContent("<div class=\"bodyContent\"></div>");
            panel.footerContent("<i>small</i>");

            Button acceptButton = getContext().newButton(ButtonConfig.create().label("Accept").on("click", new EventCallback<ButtonEvent>() {
              @Override
View Full Code Here

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

    protected void doAddNewEntity() {
      final PropertyHaverEditor2<T> entityEditor = new PropertyHaverEditor2<T>(y);

      final Panel panel = y.newPanel((PanelConfig) PanelConfig.create().centered(true).width("400px"));
      panel.headerContent("<h1>Add new " + entityName + "</h1>");
      panel.bodyContent("<div class=\"bodyContent\"></div>");
      panel.footerContent("<i>small</i>");


      Button cancelButton = y.newButton(ButtonConfig.create().label("Cancel").on("click", new EventCallback<ButtonEvent>() {
View Full Code Here

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

    panel1.addButton(acceptButton.srcNode());

    // a panel initially empty but being poblated using the panel
    // api
    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
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.panel.PanelConfig.headerContent()

    final TabView tb = Y.newTabView(TabViewConfig.create(tabConfig));
    tb.render(tbEl);

    // now render the panel
    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();
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.