Package java.awt.event

Examples of java.awt.event.ActionEvent


        // force the table header to redraw itself
        table.getTableHeader().revalidate();
        table.getTableHeader().repaint();

        // notify interested listeners that the sorting has changed
        if(sortListener != null) sortListener.actionPerformed(new ActionEvent(this, 0, "sort"));
    }
View Full Code Here


                // *without* a corresponding keyPressed() callback! It occurs
                // when focus is transferred away from the ComboBoxEditor and
                // then the ENTER key transfers focus back to the ComboBoxEditor.
                if (actionListeners != null) {
                    registerAllActionListeners(comboBox, actionListeners);
                    comboBox.actionPerformed(new ActionEvent(e.getSource(), e.getID(), null));
                }

                // null out our own reference to the ActionListeners
                actionListeners = null;

View Full Code Here

    { //TODO: Change the way the event is detect and dispatch
        //use a dispatcher
        if (hasEvent(peer, inputForm))
        {
            Button btn = (Button) peer.getComponentObject();           
            postEvent(context, new ActionEvent(btn, ActionEvent.ACTION_PERFORMED, btn.getActionCommand()),
                    BridgeEventQueue.LOW_PRIORITY); //always low priority
        }
    }
View Full Code Here

    {
        if (hasEvent(peer, inputForm))
        {
            _logger.finest("Input for " + peer);
            MenuItem item = (MenuItem) peer.getComponentObject();
            postEvent(context, new ActionEvent(item, ActionEvent.ACTION_PERFORMED, item.getActionCommand()));
        } else
        {
            _logger.finest("No input for " + peer);
        }
    }
View Full Code Here

     */
    protected void createTextEvent(BridgeInputContext context, BridgePeer peer,
            TextComponent com)
    {
        super.createTextEvent(context, peer, com);
        ActionEvent evt = new ActionEvent(com, ActionEvent.ACTION_PERFORMED,
                null);
        postEvent(context, evt, BridgeEventQueue.HIGH_PRIORITY);
    }
View Full Code Here

        if (hasEvent(peer, inputForm))
        {
            _logger.finest("Input for " + peer);
            CheckboxMenuItem item = (CheckboxMenuItem) peer.getComponentObject();
            item.setState(!item.getState());
            postEvent(context, new ActionEvent(item, ActionEvent.ACTION_PERFORMED, item.getActionCommand()));
            postEvent(context, new ItemEvent(item, ItemEvent.ITEM_STATE_CHANGED, item, (item.getState()
                    ? ItemEvent.SELECTED
                    : ItemEvent.DESELECTED)));
        } else
        {
View Full Code Here

        private void switchSelection() {
            //if (checkBox.isEnabled()){
                checkBox.setSelected(!checkBox.isSelected());
                CheckBoxList.this.repaint();
                for (ActionListener actionListener : checkBox.getActionListeners()) {
                    actionListener.actionPerformed(new ActionEvent(checkBox, 0, "selectionChanged"));
                }
            //}
        }
View Full Code Here

    guiPackage.getTreeListener().removedSelectedNode();
    for (int i = nodes.length - 1; i >= 0; i--)
    {
        guiPackage.getTreeModel().removeNodeFromParent(nodes[i]);
    }
    ActionRouter.getInstance().actionPerformed(new ActionEvent(e.getSource(),
        e.getID(), JMeterUtils.getResString("edit")));

  }
View Full Code Here

    /* (non-Javadoc)
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent e)
    {
        final ActionEvent evt = e;
        new Thread("PlaylistUIActionEvent")
        {
            public void run()
            {
                processActionEvent(evt);
View Full Code Here

    /* (non-Javadoc)
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent e)
    {
        final ActionEvent evt = e;
        if (e.getActionCommand().equals(PlayerActionEvent.ACPAUSE))
        {
            processActionEvent(e);
        }
        else if ((e.getActionCommand().equals(PlayerActionEvent.ACPLAY)) && (playerState == PAUSE))
View Full Code Here

TOP

Related Classes of java.awt.event.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.