Package org.openqreg.bean

Examples of org.openqreg.bean.JSMenuItem


        JSMenu menu6 = new JSMenu("Ackis", ">", "#222266", "#666666", 20, 20,200, -70, 0, true);
        jsmb.add(menu1);
        jsmb.add(menu2);
        jsmb.add(menu3);
        //jsmb.add(menu4);
        JSMenuItem midirect = new JSMenuItem("xxxx", "http://www.ucr.uu.se", 60,100, 0, "checkXXX", "Test on directitem");
        jsmb.add(midirect);
        //String label, String target, int width, int spacing
        JSMenuItem mi1 = new JSMenuItem("mi1", "#", 20,100, 0,"", "check me");
        JSMenuItem mi2 = new JSMenuItem("mi2", "http://www.uu.se", 20,100, 0 ,"checkMi2", "go to uu.se");
        JSMenuItem mi3 = new JSMenuItem("mi3", "#", 20,100, 0);
        //JSMenuItem mi4  = new JSMenuItem("mi4", "#", 20, 0);
        JSMenuItem mi5 = new JSMenuItem("mi7", "#", 20,100, 0);
        JSMenuItem mi6 = new JSMenuItem("mi6", "#", 20,100, 0);
        menu1.add(mi1);
        menu2.add(mi2);
        menu3.add(mi3);
        menu3.add(menu5);
        //menu4.add(mi4);
        menu2.add(mi5);
        menu5.add(menu6);
        menu6.add(mi6);
        JSMenu menu4 = new JSMenu("Test", ">", "#aa2244", "#2222aa", 20, 80,200, 0, 0, true);
        jsmb.add(menu4);
        menu4.add(new JSMenuItem("mi4", "#", 60, 100,00));
    /*
        jsmb.generateMenu();

    Vector v = jsmb.getJSMenuItemFunctions();
    Enumeration e = v.elements();
View Full Code Here


 
  @Test
  public void testJSMenuBar(){
    JSMenuBar menubar   = new JSMenuBar(0,60,"#666666","#333333",false,18);
    JSMenu menu = new JSMenu("label", ">", "#666666", "#333333", 18, 100,105, 0,0, true);
    JSMenuItem menuitem = new JSMenuItem("item label","target", 18,150, 0,"functionid", "status text");
   
    menubar.add(menu);
    assertTrue("Menyn skall finnas p� menyraden", menubar.containsMenu(menu));
   
    menubar.add(menu);
View Full Code Here

TOP

Related Classes of org.openqreg.bean.JSMenuItem

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.