1 21 22 package org.opensubsystems.patterns.thickclient.application.swt; 23 24 import org.eclipse.swt.events.SelectionEvent; 25 import org.opensubsystems.patterns.thickclient.application.EventProcessor; 26 27 36 public class EventNotifierSelectionAdapter extends DelegatingSelectionAdapter 37 { 38 40 43 protected EventProcessor m_listener; 44 45 48 protected String m_strEventName; 49 50 54 protected Integer m_intEventId; 55 56 58 67 public EventNotifierSelectionAdapter( 68 EventProcessor listener, 69 String strEventName, 70 Integer intEventId 71 ) 72 { 73 m_listener = listener; 74 m_strEventName = strEventName; 75 m_intEventId = intEventId; 76 } 77 78 81 public void widgetSelected( 82 SelectionEvent event 83 ) 84 { 85 m_listener.processEvent(m_strEventName, m_intEventId); 86 } 87 } 88 | Popular Tags |