i3mclient.searchweb
Class SearchWeb

java.lang.Object
  |
  +--i3mclient.searchweb.SearchWeb
All Implemented Interfaces:
EventListener, ModifyListener, MouseListener, SelectionListener, ServerMethodListener, SMSearchWebListener, org.eclipse.swt.internal.SWTEventListener

public class SearchWeb
extends Object
implements SelectionListener, ModifyListener, SMSearchWebListener, MouseListener

The logic of the seach web window.

Author:
Dirk Plate
See Also:
SearchWebGUI

Constructor Summary
SearchWeb()
          Constructor.
 
Method Summary
 void addSearchWebListener(SearchWebListener listener)
          Add a listener for searchweb.
 void i3mServerException(I3MServerException exception)
          Called if a server exception is thrown.
 void init(Shell windowSet)
          Init rest.
 void modifyText(ModifyEvent event)
           
 void mouseDoubleClick(MouseEvent event)
           
 void mouseDown(MouseEvent event)
           
 void mouseUp(MouseEvent event)
           
 void removeSearchWebListener(SearchWebListener listener)
          Remove a listener for searchweb.
 void startSearch(String query)
          Start a web search.
 void webSearchResultsReceived(WebSearchResult[] webSearchResults)
          Called if searchWeb was successfull.
 void widgetDefaultSelected(SelectionEvent event)
           
 void widgetSelected(SelectionEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchWeb

public SearchWeb()
Constructor.

Method Detail

init

public void init(Shell windowSet)
Init rest.

Parameters:
windowSet - The window of the SearchWebGUI

startSearch

public void startSearch(String query)
Start a web search.

Parameters:
query - The search query text

widgetSelected

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

addSearchWebListener

public void addSearchWebListener(SearchWebListener listener)
Add a listener for searchweb.

Parameters:
listener - The listener which will be informed about SearchWeb changes

removeSearchWebListener

public void removeSearchWebListener(SearchWebListener listener)
Remove a listener for searchweb.

Parameters:
listener - The listener which will be no longer informed about SearchWeb changes

widgetDefaultSelected

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

modifyText

public void modifyText(ModifyEvent event)
Specified by:
modifyText in interface ModifyListener

webSearchResultsReceived

public void webSearchResultsReceived(WebSearchResult[] webSearchResults)
Description copied from interface: SMSearchWebListener
Called if searchWeb was successfull.

Specified by:
webSearchResultsReceived in interface SMSearchWebListener
Parameters:
webSearchResults - The search results

i3mServerException

public void i3mServerException(I3MServerException exception)
Description copied from interface: ServerMethodListener
Called if a server exception is thrown.

Specified by:
i3mServerException in interface ServerMethodListener
Parameters:
exception - The converted I3M-server exception

mouseDoubleClick

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

mouseDown

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

mouseUp

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