Package net.xoetrope.xui.style

Examples of net.xoetrope.xui.style.XStyleFactory.addComponent()


      compfactory = new XStyleFactory( project, "net.xoetrope.xui" );
    }
    catch ( Exception ex ) {
      ex.printStackTrace();
    }
    Component xpanel = (Component)compfactory.addComponent( XPage.PANEL, 0, 0, 800, 600, null, "base/grey" );
    Component xpanelc1 = (Component)compfactory.addComponent( XPage.PANEL, 10, 10, 160, 100, null, null );
    Component xpanelc2 = (Component)compfactory.addComponent( XPage.PANEL, 10, 160, 360, 160, null, null );

    /* First child panel */
    compfactory.setParentComponent(xpanelc1);
View Full Code Here


    }
    catch ( Exception ex ) {
      ex.printStackTrace();
    }
    Component xpanel = (Component)compfactory.addComponent( XPage.PANEL, 0, 0, 800, 600, null, "base/grey" );
    Component xpanelc1 = (Component)compfactory.addComponent( XPage.PANEL, 10, 10, 160, 100, null, null );
    Component xpanelc2 = (Component)compfactory.addComponent( XPage.PANEL, 10, 160, 360, 160, null, null );

    /* First child panel */
    compfactory.setParentComponent(xpanelc1);
    XLabel lbl1 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 80, 25, "test 1", null );
View Full Code Here

    catch ( Exception ex ) {
      ex.printStackTrace();
    }
    Component xpanel = (Component)compfactory.addComponent( XPage.PANEL, 0, 0, 800, 600, null, "base/grey" );
    Component xpanelc1 = (Component)compfactory.addComponent( XPage.PANEL, 10, 10, 160, 100, null, null );
    Component xpanelc2 = (Component)compfactory.addComponent( XPage.PANEL, 10, 160, 360, 160, null, null );

    /* First child panel */
    compfactory.setParentComponent(xpanelc1);
    XLabel lbl1 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 80, 25, "test 1", null );
    XLabel lbl2 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 30, 80, 25, "test 2", null );
View Full Code Here

    Component xpanelc1 = (Component)compfactory.addComponent( XPage.PANEL, 10, 10, 160, 100, null, null );
    Component xpanelc2 = (Component)compfactory.addComponent( XPage.PANEL, 10, 160, 360, 160, null, null );

    /* First child panel */
    compfactory.setParentComponent(xpanelc1);
    XLabel lbl1 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 80, 25, "test 1", null );
    XLabel lbl2 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 30, 80, 25, "test 2", null );

    /* Second child panel */
    compfactory.setParentComponent(xpanelc2);
    XLabel lbl3 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 120, 50, "this is a piece of wrapping text", "bold" );
View Full Code Here

    Component xpanelc2 = (Component)compfactory.addComponent( XPage.PANEL, 10, 160, 360, 160, null, null );

    /* First child panel */
    compfactory.setParentComponent(xpanelc1);
    XLabel lbl1 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 80, 25, "test 1", null );
    XLabel lbl2 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 30, 80, 25, "test 2", null );

    /* Second child panel */
    compfactory.setParentComponent(xpanelc2);
    XLabel lbl3 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 120, 50, "this is a piece of wrapping text", "bold" );
    XLabel lbl4 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 90, 120, 20, "test 4", "bold" );
View Full Code Here

    XLabel lbl1 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 80, 25, "test 1", null );
    XLabel lbl2 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 30, 80, 25, "test 2", null );

    /* Second child panel */
    compfactory.setParentComponent(xpanelc2);
    XLabel lbl3 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 120, 50, "this is a piece of wrapping text", "bold" );
    XLabel lbl4 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 90, 120, 20, "test 4", "bold" );

    /* Add a generic component */
    Button b = (Button)compfactory.addComponent( XPage.BUTTON, 120, 70, 150, 35, null );
    b.setActionCommand("calculate");
View Full Code Here

    XLabel lbl2 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 30, 80, 25, "test 2", null );

    /* Second child panel */
    compfactory.setParentComponent(xpanelc2);
    XLabel lbl3 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 120, 50, "this is a piece of wrapping text", "bold" );
    XLabel lbl4 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 90, 120, 20, "test 4", "bold" );

    /* Add a generic component */
    Button b = (Button)compfactory.addComponent( XPage.BUTTON, 120, 70, 150, 35, null );
    b.setActionCommand("calculate");
    b.setLabel("Test button");
View Full Code Here

    compfactory.setParentComponent(xpanelc2);
    XLabel lbl3 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 2, 120, 50, "this is a piece of wrapping text", "bold" );
    XLabel lbl4 = (XLabel)compfactory.addComponent( XPage.LABEL, 10, 90, 120, 20, "test 4", "bold" );

    /* Add a generic component */
    Button b = (Button)compfactory.addComponent( XPage.BUTTON, 120, 70, 150, 35, null );
    b.setActionCommand("calculate");
    b.setLabel("Test button");
    b = (Button)compfactory.addComponent( XPage.BUTTON, 120, 110, 150, 35, null );
    b.setLabel("Click me!!!");

View Full Code Here

    /* Add a generic component */
    Button b = (Button)compfactory.addComponent( XPage.BUTTON, 120, 70, 150, 35, null );
    b.setActionCommand("calculate");
    b.setLabel("Test button");
    b = (Button)compfactory.addComponent( XPage.BUTTON, 120, 110, 150, 35, null );
    b.setLabel("Click me!!!");

    return xpanel;
  }
}
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.