Class SelectionListenerUtil

java.lang.Object
org.eclipse.nebula.widgets.opal.commons.SelectionListenerUtil

public class SelectionListenerUtil
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    SelectionListenerUtil()  
  • Method Summary

    Modifier and Type Method Description
    static void addSelectionListener​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)
    Add a SelectionListener to a given Control
    static boolean fireSelectionListeners​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event sourceEvent)
    Fire the selection listeners of a given control
    static void removeSelectionListener​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)
    Remove a SelectionListener of a given Control

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addSelectionListener

      public static void addSelectionListener​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)
      Add a SelectionListener to a given Control
      Parameters:
      control - control on which the selection listener is added
      listener - listener to add
    • removeSelectionListener

      public static void removeSelectionListener​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)
      Remove a SelectionListener of a given Control
      Parameters:
      control - control on which the selection listener is removed
      listener - listener to remove
    • fireSelectionListeners

      public static boolean fireSelectionListeners​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event sourceEvent)
      Fire the selection listeners of a given control
      Parameters:
      control - the control that fires the event
      sourceEvent - mouse event
      Returns:
      true if the selection could be changed, false otherwise