i3mclient.findusers
Class FindUsersGUI

java.lang.Object
  |
  +--i3mclient.findusers.FindUsersGUI
All Implemented Interfaces:
ControlListener, DisposeListener, DragSourceListener, EventListener, FindUsersListener, MouseListener, SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class FindUsersGUI
extends Object
implements FindUsersListener, ControlListener, SelectionListener, MouseListener, DragSourceListener, DisposeListener

The GUI of FindUsers.

Author:
Gunther Wuerz
See Also:
FindUsers

Constructor Summary
FindUsersGUI(Shell parentWindow, FindUsers findUsersSet)
          Constructor.
 
Method Summary
 void addSearchResult(String userID, String nick, String firstName, String lastName, String zip, String city, String country, String eMail)
          Add a result to table at the buttom of the window.
 void controlMoved(ControlEvent arg0)
           
 void controlResized(ControlEvent arg0)
           
 void dragFinished(DragSourceEvent arg0)
           
 void dragSetData(DragSourceEvent event)
           
 void dragStart(DragSourceEvent event)
           
 void findUsersPerformed(UserData[] searchResult)
          Called after the search for specific users and transmits the found results.
 long getSelectedUserID()
          Get the userID of the selected table item.
 void mouseDoubleClick(MouseEvent arg0)
           
 void mouseDown(MouseEvent event)
           
 void mouseUp(MouseEvent arg0)
           
 void widgetDefaultSelected(SelectionEvent arg0)
           
 void widgetDisposed(DisposeEvent arg0)
           
 void widgetSelected(SelectionEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindUsersGUI

public FindUsersGUI(Shell parentWindow,
                    FindUsers findUsersSet)
Constructor.

Parameters:
parentWindow - The parent window of this new find users shell
findUsersSet - The find user object which belongs to this gui
Method Detail

addSearchResult

public void addSearchResult(String userID,
                            String nick,
                            String firstName,
                            String lastName,
                            String zip,
                            String city,
                            String country,
                            String eMail)
Add a result to table at the buttom of the window.

Parameters:
userID - The userID of the user which was found
nick - The nick of the user which was found
firstName - The first name of the user which was found
lastName - The last name of the user which was found
zip - The zip code of the user which was found
city - The city of the user which was found
country - The country of the user which was found
eMail - The email address of the user which was found

getSelectedUserID

public long getSelectedUserID()
Get the userID of the selected table item.

Returns:
-1 if no item is selected

findUsersPerformed

public void findUsersPerformed(UserData[] searchResult)
Description copied from interface: FindUsersListener
Called after the search for specific users and transmits the found results.

Specified by:
findUsersPerformed in interface FindUsersListener
Parameters:
searchResult - The search result

controlMoved

public void controlMoved(ControlEvent arg0)
Specified by:
controlMoved in interface ControlListener

controlResized

public void controlResized(ControlEvent arg0)
Specified by:
controlResized in interface ControlListener

widgetSelected

public void widgetSelected(SelectionEvent event)
Specified by:
widgetSelected in interface SelectionListener

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent arg0)
Specified by:
widgetDefaultSelected in interface SelectionListener

mouseDoubleClick

public void mouseDoubleClick(MouseEvent arg0)
Specified by:
mouseDoubleClick in interface MouseListener

mouseDown

public void mouseDown(MouseEvent event)
Specified by:
mouseDown in interface MouseListener

mouseUp

public void mouseUp(MouseEvent arg0)
Specified by:
mouseUp in interface MouseListener

dragStart

public void dragStart(DragSourceEvent event)
Specified by:
dragStart in interface DragSourceListener

dragSetData

public void dragSetData(DragSourceEvent event)
Specified by:
dragSetData in interface DragSourceListener

dragFinished

public void dragFinished(DragSourceEvent arg0)
Specified by:
dragFinished in interface DragSourceListener

widgetDisposed

public void widgetDisposed(DisposeEvent arg0)
Specified by:
widgetDisposed in interface DisposeListener