net.sf.zekr.ui.helper
Class EventUtils

java.lang.Object
  extended by net.sf.zekr.ui.helper.EventUtils

public class EventUtils
extends java.lang.Object

Author:
Mohsen Saboorian

Constructor Summary
EventUtils()
           
 
Method Summary
static void sendEvent(org.eclipse.swt.widgets.Control control, int eventType, java.lang.String eventName)
          Creates and sends an event of type eventType to the specified shell.
static void sendEvent(org.eclipse.swt.widgets.Control control, java.lang.String eventName)
          Creates and sends an event of type EventProtocol.CUSTOM_ZEKR_EVENT to the specified shell.
static void sendEvent(int eventType, java.lang.String eventName)
          Creates and sends an event of type eventType to all shells listening for this event.
static void sendEvent(java.lang.String eventName)
          Creates and sends an event of type EventProtocol.CUSTOM_ZEKR_EVENT to all shells listening for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventUtils

public EventUtils()
Method Detail

sendEvent

public static void sendEvent(java.lang.String eventName)
Creates and sends an event of type EventProtocol.CUSTOM_ZEKR_EVENT to all shells listening for this event. Event.data is set as eventName parameter.

Parameters:
eventName - Event.data to be sent

sendEvent

public static void sendEvent(int eventType,
                             java.lang.String eventName)
Creates and sends an event of type eventType to all shells listening for this event. Event.data is set as eventName parameter.

Parameters:
eventType - Event.type to be sent
eventName - Event.data to be sent

sendEvent

public static void sendEvent(org.eclipse.swt.widgets.Control control,
                             int eventType,
                             java.lang.String eventName)
Creates and sends an event of type eventType to the specified shell. Event.data is set as eventName parameter.

Parameters:
control - event target
eventType - Event.type to be sent
eventName - Event.data to be sent

sendEvent

public static void sendEvent(org.eclipse.swt.widgets.Control control,
                             java.lang.String eventName)
Creates and sends an event of type EventProtocol.CUSTOM_ZEKR_EVENT to the specified shell. Event.data is set as eventName parameter.

Parameters:
control - event target
eventName - Event.data to be sent