at.spardat.xma.page
Class EventAdapter

java.lang.Object
  extended byat.spardat.xma.page.EventAdapter
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.HelpListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.swt.events.TreeListener, org.eclipse.swt.events.VerifyListener

public class EventAdapter
extends java.lang.Object
implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.VerifyListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.HelpListener, org.eclipse.swt.events.TreeListener

Adapter for SWT-Events It forwards all supported Events to the PageClient. It is used to prevent the event-Methods from appearing in the public interface of PageClient.


Constructor Summary
EventAdapter(PageClient page)
          Constructor for EventAdapter.
 
Method Summary
 void focusGained(org.eclipse.swt.events.FocusEvent event)
          Eventhandler called by SWT every time, a Control on the PageClient gets the focus.
 void focusLost(org.eclipse.swt.events.FocusEvent event)
          Eventhandler called by SWT every time, a Control on the PageClient has lost the focus.
 void helpRequested(org.eclipse.swt.events.HelpEvent event)
          Eventhandler called by SWT every time, help is requested for a Control.
 void modifyText(org.eclipse.swt.events.ModifyEvent event)
          Eventhandler called by SWT every time, the contents of a Text or Combo on the PageClient was modified.
 void treeCollapsed(org.eclipse.swt.events.TreeEvent event)
          Eventhandler called by SWT every time, a TreeNode on the PageClient was modified.
 void treeExpanded(org.eclipse.swt.events.TreeEvent event)
          Eventhandler called by SWT every time, a TreeNode on the PageClient was modified.
 void verifyText(org.eclipse.swt.events.VerifyEvent event)
          Eventhandler called by SWT every time, the contents of a Text on the PageClient will be modified.
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
          Eventhandler called by SWT every time, a List, Table or Tree on the PageClient receives a double-click.
 void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
          Eventhandler called by SWT every time, a List, Table or Tree on the PageClient gets selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventAdapter

public EventAdapter(PageClient page)
Constructor for EventAdapter.

Method Detail

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
Eventhandler called by SWT every time, a List, Table or Tree on the PageClient gets selected.

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
event - the SWT-Event that happended.

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
Eventhandler called by SWT every time, a List, Table or Tree on the PageClient receives a double-click.

Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
event - the SWT-Event that happended.

verifyText

public void verifyText(org.eclipse.swt.events.VerifyEvent event)
Eventhandler called by SWT every time, the contents of a Text on the PageClient will be modified. This happens on every Keystroke delivered to such a Control. The Event is delivered bevor the change takes place. The Eventhandler may prevent the change from actually taking place.

Specified by:
verifyText in interface org.eclipse.swt.events.VerifyListener
Parameters:
event - the SWT-Event that happended.

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent event)
Eventhandler called by SWT every time, the contents of a Text or Combo on the PageClient was modified. This happens on every Keystroke delivered to such a Control.

Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener
Parameters:
event - the SWT-Event that happended.

focusGained

public void focusGained(org.eclipse.swt.events.FocusEvent event)
Eventhandler called by SWT every time, a Control on the PageClient gets the focus. Only the Message in the StatusBar is updated.

Specified by:
focusGained in interface org.eclipse.swt.events.FocusListener
Parameters:
event - the SWT-Event that happended.

focusLost

public void focusLost(org.eclipse.swt.events.FocusEvent event)
Eventhandler called by SWT every time, a Control on the PageClient has lost the focus.

Specified by:
focusLost in interface org.eclipse.swt.events.FocusListener
Parameters:
event - the SWT-Event that happended.

helpRequested

public void helpRequested(org.eclipse.swt.events.HelpEvent event)
Eventhandler called by SWT every time, help is requested for a Control.

Specified by:
helpRequested in interface org.eclipse.swt.events.HelpListener
Parameters:
event - the SWT-Event that happended.

treeCollapsed

public void treeCollapsed(org.eclipse.swt.events.TreeEvent event)
Eventhandler called by SWT every time, a TreeNode on the PageClient was modified. Sent when a tree branch is collapsed.

Specified by:
treeCollapsed in interface org.eclipse.swt.events.TreeListener
Parameters:
event - the SWT-Event that happended.

treeExpanded

public void treeExpanded(org.eclipse.swt.events.TreeEvent event)
Eventhandler called by SWT every time, a TreeNode on the PageClient was modified. Sent when a tree branch is expanded.

Specified by:
treeExpanded in interface org.eclipse.swt.events.TreeListener
Parameters:
event - the SWT-Event that happended.