Examples of MenuBar


Examples of br.com.gmartins.simbler.components.MenuBar

    public Principal() {
        InitialSettings init = new InitialSettings(this);
        initComponents();
        init.setBackgroundColor(Colors.DEFAULT_BACKGROUND);
        init.centralizeFrame();
        setJMenuBar(new MenuBar().getMenu());
    }
View Full Code Here

Examples of ch.rakudave.jnetmap.view.components.MenuBar

    // Statusbar
    statusBar = StatusBar.getInstance();
    statusBar.setMessage(Lang.get("message.status.welcome"));
    add((Component) statusBar, BorderLayout.SOUTH);
    // Menubar
    setJMenuBar(new MenuBar(this));
    pack();
    // apply view settings
    double sidebarRatio = Settings.getDouble("mapview.sidebar.ratio", 0.8);
    splitPane.setDividerLocation(sidebarRatio);
    splitPane.setResizeWeight(sidebarRatio);
View Full Code Here

Examples of com.bbn.openmap.gui.MenuBar

     * MapHandler and probably shouldn't be, since it will find and re-add the
     * Menus it finds there in some random order.
     */
    public JMenuBar getMenuBar() {
        if (menuBar == null) {
            menuBar = new MenuBar();
        }

        menuBar.removeAll();
        Iterator iterator = menus.iterator();
        while (iterator.hasNext()) {
View Full Code Here

Examples of com.bj58.spat.gaea.server.bootstrap.serverframe.MenuBar

    }
    /**设置窗口居中显示器显示*/
    frameMain.setLocation((displaySize.width - frameSize.width) / 2,(displaySize.height - frameSize.height) / 2);
    /** Build main MenuBar */
    logger.info("-----------------build Menu Start------------------");
    frameMain.setJMenuBar(new MenuBar().bulidMenuBar(frameMain));
    logger.info("-----------------build Menu End--------------------");
    frameMain.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
      }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.menu.MenuBar

   
    horizontalPanel = new HorizontalPanel();
   
    verticalPanel = new VerticalPanel();
    verticalPanel.setWidth(VERTICAL_PANEL_MENU_WIDTH);
    mnuBar = new MenuBar();
    verticalPanel.add(mnuBar);
   
    FileMenu fileMenu = new FileMenu();
    mnuFile = new MenuBarItem("Preferencias", fileMenu);
    mnuBar.add(mnuFile);
View Full Code Here

Examples of com.google.gwt.user.client.ui.MenuBar

    boolean someItemAdded = false;
   
    IActionProvider[] actions = menu.getActionProviders();
    for(int i = 0; i < actions.length; i++) {
      if (actions[i] instanceof IMenu) {
        MenuBar subMenu = new MenuBar(true);
       
        if (this.buildMenu(subMenu, (IMenu)actions[i]))
        {
          parentMenu.addItem(actions[i].getActionCaption(), subMenu);
          someItemAdded = true;
View Full Code Here

Examples of com.google.gwt.user.client.ui.MenuBar

        curPhrase = (curPhrase + 1) % phrases.length;
      }
    };

    // Create a menu bar
    MenuBar menu = new MenuBar();
    menu.setAutoOpen(false);
    menu.setWidth("500px");
    menu.setAnimationEnabled(true);

    // Create a sub menu of recent documents
    MenuBar recentDocsMenu = new MenuBar(true);
    String[] recentDocs = new String[]{"Fishing in the desert.txt",
        "How to tame a wild parrot", "Idiots Guide to Emu Farms"};
    for (int i = 0; i < recentDocs.length; i++) {
      recentDocsMenu.addItem(recentDocs[i], menuCommand);
    }

    // Create the file menu
    MenuBar fileMenu = new MenuBar(true);
    fileMenu.setAnimationEnabled(true);
    menu.addItem(new MenuItem("File", fileMenu));
    String[] fileOptions = new String[]{"New", "Open", "Close", "Recents",
        "Exit"};

    for (int i = 0; i < fileOptions.length; i++) {
      if (i == 3) {
        fileMenu.addSeparator();
        fileMenu.addItem(fileOptions[i], recentDocsMenu);
        fileMenu.addSeparator();
      } else {
        fileMenu.addItem(fileOptions[i], menuCommand);
      }
    }

    // Create the edit menu
    MenuBar editMenu = new MenuBar(true);
    menu.addItem(new MenuItem("Edit", editMenu));
    String[] editOptions = new String[]{"Undo", "Redo", "Copy", "Cut",
        "Paste"};

    for (int i = 0; i < editOptions.length; i++) {
      editMenu.addItem(editOptions[i], menuCommand);
    }

    // Create the GWT menu
    MenuBar gwtMenu = new MenuBar(true);
    menu.addItem(new MenuItem("GWT", true, gwtMenu));
    String[] gwtOptions = new String[]{"Download", "Examples", "Source code",
        "GWT wit' the program"};

    for (int i = 0; i < gwtOptions.length; i++) {
      gwtMenu.addItem(gwtOptions[i], menuCommand);
    }

    // Create the help menu
    MenuBar helpMenu = new MenuBar(true);
    menu.addSeparator();
    menu.addItem(new MenuItem("Help", helpMenu));
    String[] helpOptions = new String[]{"Contents", "Fortune cookies",
        "About GWT"};

    for (int i = 0; i < helpOptions.length; i++) {
      helpMenu.addItem(helpOptions[i], menuCommand);
    }

    // Return the menu
    menu.ensureDebugId("cwMenuBar");
    return menu;
View Full Code Here

Examples of com.google.gwt.user.client.ui.MenuBar

   
    Widget ww = _getWidget(row, 0);
    int left = ww.getAbsoluteLeft();
    int top = ww.getAbsoluteTop();

      MenuBar menu = new MenuBar(true);
      final PopupPanel menuPopup = new PopupPanel(true);
     
      if ( row >= FIRST_REGULAR_ROW ) {
        menu.addItem(new MenuItem("Insert row above", new Command() {
          public void execute() {
            _insertRow(row, flexTable.getCellCount(row));
            menuPopup.hide();
          }
        }));
      }
      menu.addItem(new MenuItem("Insert row below", new Command() {
      public void execute() {
        _insertRow(row + 1, flexTable.getCellCount(row));
        menuPopup.hide();
      }
      }));
     
      if ( row >= FIRST_REGULAR_ROW ) {
        menu.addSeparator();
        menu.addItem(new MenuItem("Delete row", new Command() {
          public void execute() {
            _deleteRow(row);
            menuPopup.hide();
          }
        }));
View Full Code Here

Examples of com.mmi.pllTrainer.gui.view.MenuBar

    this.cubeModel = cubeModel;
    setMinimumSize(new Dimension(900, 700));

    setLayout(new GridLayout(1, 2));

    JMenuBar menuBar = new MenuBar(this, this.cubeModel);
    setJMenuBar(menuBar);

    // LeftPanel
    JPanel leftPanel = createLeftPanel(cubeView);
View Full Code Here

Examples of com.vaadin.ui.MenuBar

        beans.setBeanIdProperty("id");

        final Form form = new Form();
        form.setLocale(Locale.GERMAN);
        final Table table = new Table(this.title, beans);
        MenuBar menu = createMenuBar(beans, table);
        layout.addComponent(menu);
       
        table.setSelectable(true);
        table.setImmediate(true);
        table.setVisibleColumns(VISIBLE_COLUMNS);
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.