Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusEvent


    case SWT.DefaultSelection:
      toString += new SelectionEvent(event).toString();
      break;
    case SWT.FocusIn:
    case SWT.FocusOut:
      toString += new FocusEvent(event).toString();
      break;
    case SWT.Expand:
    case SWT.Collapse:
      toString += new TreeEvent(event).toString();
      break;
View Full Code Here


    case SWT.DefaultSelection:
      toString += new SelectionEvent(event).toString();
      break;
    case SWT.FocusIn:
    case SWT.FocusOut:
      toString += new FocusEvent(event).toString();
      break;
    case SWT.Expand:
    case SWT.Collapse:
      toString += new TreeEvent(event).toString();
      break;
View Full Code Here

        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));
            }
          }
        }
      };
      fShell.addListener(SWT.Deactivate, fShellListener);
View Full Code Here

    case SWT.DefaultSelection:
      toString += new SelectionEvent(event).toString();
      break;
    case SWT.FocusIn:
    case SWT.FocusOut:
      toString += new FocusEvent(event).toString();
      break;
    case SWT.Expand:
    case SWT.Collapse:
      toString += new TreeEvent(event).toString();
      break;
View Full Code Here

        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));
            }
          }
        }
      };
      fShell.addListener(SWT.Deactivate, fShellListener);
View Full Code Here

      Event propagatedEvent = new Event();
      propagatedEvent.item = e.item;
      propagatedEvent.widget = buttonControl;
      propagatedEvent.type = SWT.BUTTON1;

      delegate.focusLost(new FocusEvent(propagatedEvent));
    }
View Full Code Here

          ((ExpandListener) eventListener).itemExpanded(new ExpandEvent(e))
        }
        break;
      }
      case SWT.FocusIn: {
        ((FocusListener) eventListener).focusGained(new FocusEvent(e));
        break;
      }
      case SWT.FocusOut: {
        ((FocusListener) eventListener).focusLost(new FocusEvent(e));
        break;
      }
      case SWT.Gesture: {
        GestureEvent event = new GestureEvent(e);
        ((GestureListener)eventListener).gesture(event);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.FocusEvent

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.