Examples of MenuHandler


Examples of br.com.gmartins.simbler.menuhelper.MenuHandler

        for (final MenuItem menuItem : this.menuItems) {
            menuItem.addActionListener(new java.awt.event.ActionListener() {

                @Override
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    MenuHandler menuHandler = new MenuHandler(menuItem.getDefinition());
                    menuHandler.executeAction();
                }
            });
        }
    }
View Full Code Here

Examples of br.com.gmartins.simbler.menuhelper.MenuHandler

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
        // Opens a new editor
        new MenuHandler(MenuActions.ACT_NEW).executeAction();
        this.bindKeys();
        this.buttonPanel.bindKeys(Principal.this);
    }//GEN-LAST:event_formWindowOpened
View Full Code Here

Examples of br.com.gmartins.simbler.menuhelper.MenuHandler

        this.bindKeys();
        this.buttonPanel.bindKeys(Principal.this);
    }//GEN-LAST:event_formWindowOpened

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        MenuHandler menuHandler = new MenuHandler(MenuActions.ACT_EXIT);
        menuHandler.executeAction();
    }//GEN-LAST:event_formWindowClosing
View Full Code Here

Examples of br.com.gmartins.simbler.menuhelper.MenuHandler

            btnPause.doClick(300);
        }
    };

    public void actionPerformed(String actionName) {
        MenuHandler handler = new MenuHandler(actionName);
        handler.executeAction();
    }
View Full Code Here

Examples of org.apache.pivot.wtk.MenuHandler

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame2 = (Frame)bxmlSerializer.readObject(MenuBarTest.class, "menu_bar_test.bxml");
        frame2.setTitle("Frame 2, from bxml");
        bxmlSerializer.bind(this, MenuBarTest.class);

        MenuHandler menuHandler = new MenuHandler.Adapter() {
            @Override
            public void configureMenuBar(Component component, MenuBar menuBar) {
                System.out.println("Configure menu bar: got focus on " + component.getName());
            }
View Full Code Here

Examples of org.apache.pivot.wtk.MenuHandler

        BXMLSerializer bxmlSerializer = new BXMLSerializer();
        frame2 = (Frame)bxmlSerializer.readObject(MenuBarTest.class, "menu_bar_test.bxml");
        bxmlSerializer.bind(this, MenuBarTest.class);

        MenuHandler menuHandler = new MenuHandler.Adapter() {
            @Override
            public void configureMenuBar(Component component, MenuBar menuBar) {
                System.out.println("Configure menu bar: " + component);
            }
View Full Code Here

Examples of org.apache.pivot.wtk.MenuHandler

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame2 = (Frame)wtkxSerializer.readObject(this, "menu_bar_test.wtkx");
        wtkxSerializer.bind(this, MenuBarTest.class);

        MenuHandler menuHandler = new MenuHandler.Adapter() {
            @Override
            public void configureMenuBar(Component component, MenuBar menuBar) {
                System.out.println("Configure menu bar: " + component);
            }
View Full Code Here

Examples of org.apache.pivot.wtk.MenuHandler

        WTKXSerializer wtkxSerializer = new WTKXSerializer();
        frame2 = (Frame)wtkxSerializer.readObject(this, "menu_bar_test.wtkx");
        wtkxSerializer.bind(this, MenuBarTest.class);

        MenuHandler menuHandler = new MenuHandler.Adapter() {
            @Override
            public void configureMenuBar(Component component, MenuBar menuBar) {
                System.out.println("Configure menu bar: " + component);
            }
View Full Code Here

Examples of org.boris.xlloop.menu.MenuHandler

        FunctionInformationHandler firh = new FunctionInformationHandler();
        firh.add(rfh.getFunctions());
        firh.add(lfh.getInformation());
        firh.add(srep); // add script repository as a function provider
        cfh.add(firh);
        cfh.add(new MenuHandler(new TestMenu()));
        cfh.add(new CompTest1());
        return cfh;
    }
View Full Code Here

Examples of org.moparscape.msc.gs.model.MenuHandler

   */
  public static final World world = Instance.getWorld();

  public void handlePacket(Packet p, IoSession session) throws Exception {
    Player player = (Player) session.getAttachment();
    MenuHandler menuHandler = player.getMenuHandler();
    if (menuHandler == null) {
      player.setSuspiciousPlayer(true);
      return;
    }
    int option = (int) p.readByte();
    String reply = menuHandler.getOption(option);
    player.resetMenuHandler();
    if (reply == null) {
      player.setSuspiciousPlayer(true);
      return;
    }
    menuHandler.handleReply(option, reply);
  }
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.