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 aSelectionListener
to a given Controlstatic boolean
fireSelectionListeners(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event sourceEvent)
Fire the selection listeners of a given controlstatic void
removeSelectionListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)
Remove aSelectionListener
of a given Control
-
Constructor Details
-
SelectionListenerUtil
public SelectionListenerUtil()
-
-
Method Details
-
addSelectionListener
public static void addSelectionListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)Add aSelectionListener
to a given Control- Parameters:
control
- control on which the selection listener is addedlistener
- listener to add
-
removeSelectionListener
public static void removeSelectionListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.events.SelectionListener listener)Remove aSelectionListener
of a given Control- Parameters:
control
- control on which the selection listener is removedlistener
- 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 eventsourceEvent
- mouse event- Returns:
- true if the selection could be changed, false otherwise
-