at.spardat.xma.event.swt
Class XMAFocusAdapter

java.lang.Object
  extended byat.spardat.xma.event.swt.XMAFocusAdapter
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.internal.SWTEventListener

public class XMAFocusAdapter
extends java.lang.Object
implements org.eclipse.swt.events.FocusListener

Event save adapter for focus listeners on SWT-widgets. It wraps event-disabling code of XMA around your event handling code. (see package description)


Constructor Summary
XMAFocusAdapter(PageClient page)
          Constructor for this event adapter.
 
Method Summary
 void focusGained(org.eclipse.swt.events.FocusEvent event)
          The method called by SWT whenever the corresponding event happends.
 void focusGainedImpl(org.eclipse.swt.events.FocusEvent event)
          This method is called every time the corresponding widget has gained the focus.
 void focusLost(org.eclipse.swt.events.FocusEvent event)
          The method called by SWT whenever the corresponding event happends.
 void focusLostImpl(org.eclipse.swt.events.FocusEvent event)
          This method is called every time the corresponding widget has lost the focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMAFocusAdapter

public XMAFocusAdapter(PageClient page)
Constructor for this event adapter.

Parameters:
page - The page containing the widget on which you want to listen for events.
Method Detail

focusGainedImpl

public void focusGainedImpl(org.eclipse.swt.events.FocusEvent event)
This method is called every time the corresponding widget has gained the focus. Overload this method and place your envent handling code here.

Parameters:
event - The event send by SWT.

focusGained

public final void focusGained(org.eclipse.swt.events.FocusEvent event)
The method called by SWT whenever the corresponding event happends. To not overload this method, overload focusGainedImpl(FocusEvent) instead.

Specified by:
focusGained in interface org.eclipse.swt.events.FocusListener
Parameters:
event - The event send by SWT.

focusLostImpl

public void focusLostImpl(org.eclipse.swt.events.FocusEvent event)
This method is called every time the corresponding widget has lost the focus. Overload this method and place your envent handling code here.

Parameters:
event - The event send by SWT.

focusLost

public final void focusLost(org.eclipse.swt.events.FocusEvent event)
The method called by SWT whenever the corresponding event happends. To not overload this method, overload focusLostImpl(FocusEvent) instead.

Specified by:
focusLost in interface org.eclipse.swt.events.FocusListener
Parameters:
event - The event send by SWT.