Package org.andrewberman.ui.menu

Examples of org.andrewberman.ui.menu.Menu


    String menuFile = (String) "menus/"+PhyloWidget.ui.menuFile;
    ArrayList menus = MenuIO.loadFromXML(p, menuFile, this);

    for (int i = 0; i < menus.size(); i++)
    {
      Menu menu = (Menu) menus.get(i);
      if (menu.getClass() == PhyloContextMenu.class)
      {
        context = (PhyloContextMenu) menu;
      }
      /*
       * Set a callback for the "use branch lengths" property.
       */
      MenuItem item = menu.get("Use Branch Lengths");
      if (item != null)
      {
        System.out.println("GOT IT");
        CheckBox cb = (CheckBox) item;
        cb.setAction(this,"layout");
View Full Code Here


    ArrayList menus = MenuIO.loadFromXML(p, menuFile, this);

    setMenus(menus);

    for (int i = 0; i < menus.size(); i++) {
      Menu menu = (Menu) menus.get(i);
      if (menu.getClass() == PhyloContextMenu.class) {
        context = (PhyloContextMenu) menu;
      }
      /*
       * Set a callback for the "use branch lengths" property.
       */
      MenuItem item = menu.get("Use Branch Lengths");
      if (item != null) {
        System.out.println("GOT IT");
        CheckBox cb = (CheckBox) item;
        cb.setAction(this, "layout");
      }
View Full Code Here

    // TODO Auto-generated method stub

    ArrayList<Menu> menus = getMenus();

    for (int i = 0; i < menus.size(); i++) {
      Menu menu = (Menu) menus.get(i);

      MenuItem item = menu.get(MENU_ITEM_SAVE_TO_DB);
      if (item != null) {
        System.out.println("menu item save to data enabled = " + pShowEditableMenu);
        item.setEnabled(pShowEditableMenu);
      }
    }
View Full Code Here

TOP

Related Classes of org.andrewberman.ui.menu.Menu

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.