Examples of postEvent()


Examples of ae.java.awt.EventQueue.postEvent()

        }

        public void run() {
            final EventQueue eq = (EventQueue)appContext.get(EVENT_QUEUE_KEY);
            if (eq != null) {
                eq.postEvent(AWTAutoShutdown.getShutdownEvent());
            }
        }
    }

    static final class CreateThreadAction implements PrivilegedAction {
View Full Code Here

Examples of appeng.api.networking.IGrid.postEvent()

    if ( node != null )
    {
      try
      {
        IGrid g = getGrid();
        g.postEvent( new MENetworkPowerIdleChange( node ) );
      }
      catch (GridAccessException e)
      {
        // not ready for this yet..
      }
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

  Toolkit term = Toolkit.getDefaultToolkit();
  EventQueue evtqueue = term.getSystemEventQueue();

  // First scroll the list DOWN so that index 0 is visible.
  evtqueue.postEvent(
          new ScrollEvent(this, ScrollEvent.DOWN,
    new Point(0, 0)));

  // Then (if necessary) scroll it UP so that the specified index
  // is not below the bottom of the viewport.
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

          new ScrollEvent(this, ScrollEvent.DOWN,
    new Point(0, 0)));

  // Then (if necessary) scroll it UP so that the specified index
  // is not below the bottom of the viewport.
  evtqueue.postEvent(
          new ScrollEvent(this, ScrollEvent.UP,
    new Point(0, index_)));
    }

    /**
 
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

     * this keystroke.
     */
    if (_currentRow >= _listModel.getSize() -1)
        return;

    evtqueue.postEvent(
        new ScrollEvent(this, ScrollEvent.UP,
      new Point(0, ++_currentRow)));
    break;

      case KeyEvent.VK_PAGE_DOWN:
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

      case KeyEvent.VK_PAGE_DOWN:
    _currentRow += _visibleRows;
    if (_currentRow >= _listModel.getSize())
        _currentRow = _listModel.getSize() -1;

    evtqueue.postEvent(
        new ScrollEvent(this, ScrollEvent.UP,
      new Point(0, _currentRow)));
    break;

      case KeyEvent.VK_END:
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

      new Point(0, _currentRow)));
    break;

      case KeyEvent.VK_END:
    _currentRow = _listModel.getSize() - 1;
    evtqueue.postEvent(new ScrollEvent(
            this, ScrollEvent.UP, new Point(0, _currentRow)));
    break;

      case KeyEvent.VK_UP:
    /* If we are already at the top of the list, ignore
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

     * this keystroke.
     */
    if (_currentRow < 1)
        return;

    evtqueue.postEvent(new ScrollEvent(
            this, ScrollEvent.DOWN, new Point(0, --_currentRow)));
    break;

      case KeyEvent.VK_PAGE_UP:
    _currentRow -= _visibleRows;
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

      case KeyEvent.VK_PAGE_UP:
    _currentRow -= _visibleRows;
    if (_currentRow < 0)
        _currentRow = 0;

    evtqueue.postEvent(new ScrollEvent(this, ScrollEvent.DOWN,
      new Point(0, _currentRow)));
    break;

      case KeyEvent.VK_ENTER:
    _doSelect();
View Full Code Here

Examples of charva.awt.EventQueue.postEvent()

  Object selectedItem = _popup.getSelectedItem();
  if (selectedItem != null)
      _model.setSelectedItem(selectedItem);

  evtqueue.postEvent(new ActionEvent(
      this, _model.getSelectedItem().toString()));
    }

    public void requestFocus() {
  /* Generate the FOCUS_GAINED 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.