Package com.sun.dtv.lwuit.events

Examples of com.sun.dtv.lwuit.events.ActionEvent


    }
   
    protected void fireActionEvent() {
        parent.componentChanged();
        super.fireActionEvent();
        dispatcher.fireActionEvent(new ActionEvent(parent));
    }
View Full Code Here


    /**
     * Notifies listeners of a change to the text area
     */
    void fireActionEvent() {
        if (actionListeners != null) {
            ActionEvent evt = new ActionEvent(this);
            for (int iter = 0; iter < actionListeners.size(); iter++) {
                ActionListener a = (ActionListener) actionListeners.elementAt(iter);
                a.actionPerformed(evt);
            }
        }
View Full Code Here

     * @inheritDoc
     */
    void fireActionEvent(){
        super.fireActionEvent();
        if(cmd != null) {
            dispatcher.fireActionEvent(new ActionEvent(cmd));
        } else {
            dispatcher.fireActionEvent(new ActionEvent(this));
        }
    }
View Full Code Here

                        if (softCommand[iter] == menuCommand) {
                            showMenu();
                            return;
                        }
                        if (softCommand[iter] != null) {
                            ActionEvent e = new ActionEvent(softCommand[iter]);
                            softCommand[iter].actionPerformed(e);
                            actionCommandImpl(softCommand[iter]);
                        }
                        return;
                    }
View Full Code Here

                if (result == selectMenuItem) {
                    c = (Command) ((Form) d).menuBar.commandList.getSelectedItem();
                } else {
                    c = result;
                }
                ActionEvent e = new ActionEvent(c);
                c.actionPerformed(e);
                actionCommandImpl(c);
            }
            ((Form) d).menuBar.commandList = null;
            Form upcoming = Display.getInstance().getCurrentUpcoming();
View Full Code Here

                                if (keyCode == clearSK) {
                                    c = getClearCommand();
                                }
                            }
                            if (c != null) {
                                c.actionPerformed(new ActionEvent(c, keyCode));
                                actionCommandImpl(c);
                            }
                        }
                    }
                }
View Full Code Here

    /**
     * @inheritDoc
     */
    protected void fireActionEvent() {
        super.fireActionEvent();
        dispatcher.fireActionEvent(new ActionEvent(this));
    }
View Full Code Here

     * rather than implementing many command instances
     */
    private void actionCommandImpl(Command cmd) {
        if (cmd != selectCommand) {
            if (commandListener != null) {
                commandListener.actionPerformed(new ActionEvent(cmd));
            }
            actionCommand(cmd);
        } else {
            Component c = getFocused();
            if (c != null) {
View Full Code Here

        // prevent the default action from stealing the behavior from the popup/combo box...
        if (game == Display.GAME_FIRE && current == null) {
            Command defaultCmd = getDefaultCommand();
            if (defaultCmd != null) {
                defaultCmd.actionPerformed(new ActionEvent(defaultCmd, keyCode));
                actionCommandImpl(defaultCmd);
            }
        }
        fireKeyEvent(keyListeners, keyCode);
        fireKeyEvent(gameKeyListeners, game);
View Full Code Here

    private void fireKeyEvent(Hashtable keyListeners, int keyCode) {
        if (keyListeners != null) {
            Vector listeners = (Vector) keyListeners.get(new Integer(keyCode));
            if (listeners != null) {
                ActionEvent evt = new ActionEvent(this, keyCode);
                for (int iter = 0; iter < listeners.size(); iter++) {
                    ((ActionListener) listeners.elementAt(iter)).actionPerformed(evt);
                    if (evt.isConsumed()) {
                        return;
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.dtv.lwuit.events.ActionEvent

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.