org.opensubsystems.patterns.thickclient.application.swt
Class EventNotifierSelectionAdapter

java.lang.Object
  extended by org.eclipse.swt.events.SelectionAdapter
      extended by org.opensubsystems.patterns.thickclient.application.swt.DelegatingSelectionAdapter
          extended by org.opensubsystems.patterns.thickclient.application.swt.EventNotifierSelectionAdapter
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class EventNotifierSelectionAdapter
extends DelegatingSelectionAdapter

Adapter used to process selection events which result in notification about that event to registered listener.

Version:
$Id: EventNotifierSelectionAdapter.java,v 1.3 2007/01/07 06:14:15 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.1 2006/02/16 14:40:49 bastafidli

Field Summary
protected  java.lang.Integer m_intEventId
          Integer value representing the event.
protected  EventProcessor m_listener
          Listener which will be notified when widget is selected.
protected  java.lang.String m_strEventName
          Name of the event which will be sent to listener when widget is selected.
 
Constructor Summary
EventNotifierSelectionAdapter(EventProcessor listener, java.lang.String strEventName, java.lang.Integer intEventId)
          Construct new adapter processing events from special button.
 
Method Summary
 void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
          
 
Methods inherited from class org.opensubsystems.patterns.thickclient.application.swt.DelegatingSelectionAdapter
widgetDefaultSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_listener

protected EventProcessor m_listener
Listener which will be notified when widget is selected.


m_strEventName

protected java.lang.String m_strEventName
Name of the event which will be sent to listener when widget is selected.


m_intEventId

protected java.lang.Integer m_intEventId
Integer value representing the event. It will be sent to listener when widget is selected.

Constructor Detail

EventNotifierSelectionAdapter

public EventNotifierSelectionAdapter(EventProcessor listener,
                                     java.lang.String strEventName,
                                     java.lang.Integer intEventId)
Construct new adapter processing events from special button.

Parameters:
listener - - listener to call when event needs to be processed
strEventName - - name of the event which will be sent to listener when widget is selected.
intEventId - - Integer value representing the event. It will be sent to listener when widget is selected.
Method Detail

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
Overrides:
widgetSelected in class org.eclipse.swt.events.SelectionAdapter


Copyright © 2003 - 2006 OpenSubsystems s.r.o.