Examples of MenuListener


Examples of javax.swing.event.MenuListener

    private JMenu buildOptionsMenu()
    {
        m_menuOptions = new LargeMenu( "Options" );
        m_menuOptions.setMnemonic( 'O' );

        m_menuOptions.addMenuListener( new MenuListener()
        {
            public void menuSelected( MenuEvent event )
            {
                rebuildOptionsMenu();
            }
View Full Code Here

Examples of javax.swing.event.MenuListener

    private JMenu buildWindowMenu()
    {
        m_menuWindow = new LargeMenu( "Window" );
        m_menuWindow.setMnemonic( 'W' );

        m_menuWindow.addMenuListener( new MenuListener()
        {
            public void menuSelected( MenuEvent event )
            {
                rebuildWindowMenu();
            }
View Full Code Here

Examples of listeners.MenuListener

   
    gField = new JTextField();
    gField.setColumns(10);
   
    JButton submitButton = new JButton("Ustaw");
    submitButton.addActionListener(new MenuListener());
   
    lblH = new JLabel("H");
   
    hField = new JTextField();
    hField.setColumns(10);
View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

*
*/
public class CategoryUIUtils
{
  public static void setupCategoryMenu(final Menu menu, final Category category) {
    menu.addMenuListener(new MenuListener() {
      boolean bShown = false;

      public void menuHidden(MenuEvent e) {
        bShown = false;

View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

   */
  public static void addMaintenanceListenerForMenu(final Menu menu,
      final MenuBuilder builder) {

    // Was taken from TableView.java
    menu.addMenuListener(new MenuListener() {
      boolean bShown = false;

      public void menuHidden(MenuEvent e) {
        bShown = false;

View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

    }

    trayItem.setVisible(true);

    menu = new Menu(uiFunctions.getMainShell(), SWT.POP_UP);
    menu.addMenuListener(new MenuListener() {
      public void menuShown(MenuEvent _menu) {}

      public void menuHidden(MenuEvent _menu) {
        if(Constants.isOSX) {
          trayItem.setImage(imgAzureusGray);
View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

    buttonContainer.setLayout(LayoutUtils.createGridLayout(1, 0, 0));
    buttonContainer.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false));

    /* Add */
    final Menu menu = new Menu(getShell(), SWT.POP_UP);
    menu.addMenuListener(new MenuListener() {
      public void menuShown(MenuEvent e) {
        MenuItem[] items = menu.getItems();
        for (MenuItem item : items) {
          item.dispose();
        }
View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

    buttonContainer.setLayout(LayoutUtils.createGridLayout(1, 0, 0));
    buttonContainer.setLayoutData(new GridData(SWT.BEGINNING, SWT.FILL, false, false));

    /* Add */
    fAddMenu = new Menu(getShell(), SWT.POP_UP);
    fAddMenu.addMenuListener(new MenuListener() {
      public void menuShown(MenuEvent e) {
        MenuItem[] items = fAddMenu.getItems();
        for (MenuItem item : items) {
          item.dispose();
        }
View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

        .addSelectionListener(createMarkAllMenuItemSelectionListener(this));

    this.setMenu(menu);

    final LinkedText listLinkedText = this;
    menu.addMenuListener(new MenuListener() {

      @Override
      public void menuHidden(MenuEvent e) {
      }
View Full Code Here

Examples of org.eclipse.swt.events.MenuListener

        .addSelectionListener(createMarkAllMenuItemSelectionListener(this));

    this.setMenu(menu);

    final StyledText listText = this;
    menu.addMenuListener(new MenuListener() {

      @Override
      public void menuHidden(MenuEvent e) {}

      @Override
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.