Examples of insertSeparator()


Examples of com.google.gwt.user.client.ui.MenuBar.insertSeparator()

    // install language sub-menus
    Map<String, String> supportedLanguages = Messages.getResourceBundle().getSupportedLanguages();
    if ( supportedLanguages != null && supportedLanguages.keySet() != null && !supportedLanguages.isEmpty() ) {
      MenuBar langMenu = (MenuBar) languageMenu.getManagedObject();
      langMenu.insertSeparator( 0 );
      for ( String lang : supportedLanguages.keySet() ) {
        MenuItem langMenuItem = new MenuItem( supportedLanguages.get( lang ), new SwitchLocaleCommand( lang ) );
        langMenuItem.getElement().setId( supportedLanguages.get( lang ) + "_menu_item" ); //$NON-NLS-1$
        langMenu.insertItem( langMenuItem, 0 );
      }
View Full Code Here

Examples of com.sun.star.awt.XPopupMenu.insertSeparator()

        xPopupMenu.insertItem((short) 0, "~First Entry", MenuItemStyle.AUTOCHECK, (short) 0);
        xPopupMenu.insertItem((short) 1, "First ~Radio Entry", (short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), (short) 1);
        xPopupMenu.insertItem((short) 2, "~Second Radio Entry", (short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), (short) 2);
        xPopupMenu.insertItem((short) 3, "~Third RadioEntry",(short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), (short) 3);
        xPopupMenu.insertSeparator((short)4);
        xPopupMenu.insertItem((short) 4, "F~ifth Entry", (short) (MenuItemStyle.CHECKABLE + MenuItemStyle.AUTOCHECK), (short) 5);
        xPopupMenu.insertItem((short) 5, "~Fourth Entry", (short) (MenuItemStyle.CHECKABLE + MenuItemStyle.AUTOCHECK), (short) 6);
        xPopupMenu.enableItem((short) 1, false);
        xPopupMenu.insertItem((short) 6, "~Sixth Entry", (short) 0, (short) 7);
        xPopupMenu.insertItem((short) 7, "~Close Dialog", (short) 0, (short) 8);
View Full Code Here

Examples of com.sun.star.awt.XPopupMenu.insertSeparator()

        xPopupMenu.insertItem(nId++, "First Entry", MenuItemStyle.AUTOCHECK, nPos++);
        xPopupMenu.insertItem(nId++, "First Radio Entry", (short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), nPos++);
        xPopupMenu.insertItem(nId++, "Second Radio Entry", (short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), nPos++);
        xPopupMenu.insertItem(nId++, "Third RadioEntry",(short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), nPos++);
        xPopupMenu.insertSeparator(nPos++);
        xPopupMenu.insertItem(nId++, "Fifth Entry", (short) (MenuItemStyle.CHECKABLE + MenuItemStyle.AUTOCHECK), nPos++);
        xPopupMenu.insertItem(nId++, "Fourth Entry", (short) (MenuItemStyle.CHECKABLE + MenuItemStyle.AUTOCHECK), nPos++);
        xPopupMenu.insertItem(nId++, "Sixth Entry", (short) 0, nPos++);
        xPopupMenu.insertItem(nId++, "Close Dialog", (short) 0, nPos++);
View Full Code Here

Examples of com.sun.star.awt.XPopupMenu.insertSeparator()

        xPopupMenu.insertItem((short) 0, "~First Entry", MenuItemStyle.AUTOCHECK, (short) 0);
        xPopupMenu.insertItem((short) 1, "First ~Radio Entry", (short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), (short) 1);
        xPopupMenu.insertItem((short) 2, "~Second Radio Entry", (short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), (short) 2);
        xPopupMenu.insertItem((short) 3, "~Third RadioEntry",(short) (MenuItemStyle.RADIOCHECK + MenuItemStyle.AUTOCHECK), (short) 3);
        xPopupMenu.insertSeparator((short)4);
        xPopupMenu.insertItem((short) 4, "F~ifth Entry", (short) (MenuItemStyle.CHECKABLE + MenuItemStyle.AUTOCHECK), (short) 5);
        xPopupMenu.insertItem((short) 5, "~Fourth Entry", (short) (MenuItemStyle.CHECKABLE + MenuItemStyle.AUTOCHECK), (short) 6);
        xPopupMenu.enableItem((short) 1, false);
        xPopupMenu.insertItem((short) 6, "~Sixth Entry", (short) 0, (short) 7);
        xPopupMenu.insertItem((short) 7, "~Close Dialog", (short) 0, (short) 8);
View Full Code Here

Examples of javax.swing.JMenu.insertSeparator()

      final JMenuItem exit = new JMenuItem( "Exit", 'Q');
      exit.setAccelerator(KeyStroke.getKeyStroke('Q',
            Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
      fileMenu.add(exit);

      fileMenu.insertSeparator(2);
     
     
      ActionListener menuListener = new ActionListener()
      {
        public void actionPerformed(ActionEvent event)
View Full Code Here

Examples of javax.swing.JMenu.insertSeparator()

          {
            JMenuItem serviceItem = new JMenuItem(title);
            serviceItem.addActionListener(new MenuItemListener(item));

            childMenu.insert(serviceItem, 0);
            childMenu.insertSeparator(1);

            menu.add(childMenu);
          }
        }
      }
View Full Code Here

Examples of javax.swing.JMenu.insertSeparator()

    mSaveAs = new JMenuItem("Save As..");
    mSaveAs.addActionListener(this);
    mSaveAs.setIcon(iSaveAs);
   
    JMenu fm = ref.getMenu(0);
    fm.insertSeparator(0);
    fm.add(mSaveAs, 0);
    fm.add(mSave, 0);
    fm.insertSeparator(0);
    fm.insert(mClose, 0);
    fm.add(mOpen, 0);
View Full Code Here

Examples of javax.swing.JMenu.insertSeparator()

   
    JMenu fm = ref.getMenu(0);
    fm.insertSeparator(0);
    fm.add(mSaveAs, 0);
    fm.add(mSave, 0);
    fm.insertSeparator(0);
    fm.insert(mClose, 0);
    fm.add(mOpen, 0);
    fm.insertSeparator(0);
    fm.add(mNew, 0);
  }
View Full Code Here

Examples of javax.swing.JMenu.insertSeparator()

    fm.add(mSaveAs, 0);
    fm.add(mSave, 0);
    fm.insertSeparator(0);
    fm.insert(mClose, 0);
    fm.add(mOpen, 0);
    fm.insertSeparator(0);
    fm.add(mNew, 0);
  }

  
  public void setPluginPool(Vector<Plugin> ref) {
View Full Code Here

Examples of javax.swing.JMenu.insertSeparator()

      final JMenuItem exit = new JMenuItem( "Exit", 'Q');
      exit.setAccelerator(KeyStroke.getKeyStroke('Q',
            Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
      fileMenu.add(exit);

      fileMenu.insertSeparator(2);
     
     
      ActionListener menuListener = new ActionListener()
      {
        public void actionPerformed(ActionEvent event)
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.