semorg.gui
Class ClientBookingWindow.InputChangedListener

java.lang.Object
  extended by semorg.gui.ClientBookingWindow.InputChangedListener
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener, CalendarControl.SWTCalendarListener
Enclosing class:
ClientBookingWindow

 class ClientBookingWindow.InputChangedListener
extends Object
implements org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, CalendarControl.SWTCalendarListener

Inner class which provides a listener reacting on changes of the input in the ClientBookingWindow window.


Constructor Summary
ClientBookingWindow.InputChangedListener()
           
 
Method Summary
 void dateChanged(CalendarControl.SWTCalendarEvent event)
          Invokes inputChanged() if a date has been changed.
private  void inputChanged()
          Appends to the title of the window an asterisk (*) if the input has changed.
 void modifyText(org.eclipse.swt.events.ModifyEvent e)
          Invokes inputChanged() if a text has been changed.
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
          Invokes inputChanged() if a doubleclick has occured.
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
          Invokes inputChanged() if a widget has been selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientBookingWindow.InputChangedListener

ClientBookingWindow.InputChangedListener()
Method Detail

inputChanged

private void inputChanged()
Appends to the title of the window an asterisk (*) if the input has changed. Furthermore it sets the flag inputChanged() to true.


modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent e)
Invokes inputChanged() if a text has been changed.

Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Invokes inputChanged() if a widget has been selected.

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

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Invokes inputChanged() if a doubleclick has occured.

Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

dateChanged

public void dateChanged(CalendarControl.SWTCalendarEvent event)
Invokes inputChanged() if a date has been changed.

Specified by:
dateChanged in interface CalendarControl.SWTCalendarListener
Parameters:
event - the event