Examples of focusGained()


Examples of charva.awt.event.FocusListener.focusGained()

      for (Enumeration<FocusListener> e = _focusListeners.elements();
        e.hasMoreElements(); ) {

    FocusListener fl = (FocusListener) e.nextElement();
    if (fe_.getID() == AWTEvent.FOCUS_GAINED)
        fl.focusGained(fe_);
    else
        fl.focusLost(fe_);
      }
  }
    }
View Full Code Here

Examples of java.awt.event.FocusAdapter.focusGained()

                }
            }

            FocusAdapter focus = addFocusAdapter(autocomplete, defaultACItemComparator);
            // fire focus event in advance or otherwise the popup list will be too small at first
            focus.focusGained(null);

            int recentTagsToShow = PROPERTY_RECENT_TAGS_NUMBER.get();
            if (recentTagsToShow > MAX_LRU_TAGS_NUMBER) {
                recentTagsToShow = MAX_LRU_TAGS_NUMBER;
            }
View Full Code Here

Examples of java.awt.event.FocusListener.focusGained()

    public void testToolBarFocusListener() {
        toolBar.add(b);
        FocusListener l = ui.createToolBarFocusListener();
        FocusEvent e = new FocusEvent(b, FocusEvent.FOCUS_GAINED);
        l.focusGained(e);
        assertEquals(toolBar.getComponentIndex(b), ui.focusedCompIndex);
    }

    private void createAndShowFrame() {
        frame = new JFrame();
View Full Code Here

Examples of java.awt.event.FocusListener.focusGained()

    @Override
    public void focusGained(final FocusEvent event) {
      FocusListener listener = get(event);
      if (listener != null) {
        listener.focusGained(event);
      }
    }

    @Override
    public void focusLost(final FocusEvent event) {
View Full Code Here

Examples of java.awt.event.FocusListener.focusGained()

    public void testToolBarFocusListener() {
        toolBar.add(b);
        FocusListener l = ui.createToolBarFocusListener();
        FocusEvent e = new FocusEvent(b, FocusEvent.FOCUS_GAINED);
        l.focusGained(e);
        assertEquals(toolBar.getComponentIndex(b), ui.focusedCompIndex);
    }

    private void createAndShowFrame() {
        frame = new JFrame();
View Full Code Here

Examples of org.eclipse.swt.events.FocusListener.focusGained()

        public void handleEvent(Event event) {
          Object[] listeners= fFocusListeners.getListeners();
          for (int i= 0; i < listeners.length; i++) {
            FocusListener focusListener= (FocusListener)listeners[i];
            if (event.type == SWT.Activate) {
              focusListener.focusGained(new FocusEvent(event));
            } else {
              focusListener.focusLost(new FocusEvent(event));
            }
          }
        }
View Full Code Here

Examples of org.eclipse.swt.events.FocusListener.focusGained()

        public void handleEvent(Event event) {
          Object[] listeners= fFocusListeners.getListeners();
          for (int i= 0; i < listeners.length; i++) {
            FocusListener focusListener= (FocusListener)listeners[i];
            if (event.type == SWT.Activate) {
              focusListener.focusGained(new FocusEvent(event));
            } else {
              focusListener.focusLost(new FocusEvent(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.