fi.hut.tml.xsmiles
Class EventBroker

java.lang.Object
  extended byfi.hut.tml.xsmiles.EventBroker

public class EventBroker
extends java.lang.Object

Broadcasts events to the all parties attached to when an event is issued. When an issue method is called the EventBroker invokes the corresponding event method in all the static and MLFC components attached to it. All components attached to it must extend the BrowserEventListener.
See Technical Requirements Specification for further details on events.

Version:
$Revision: 5835 $
Author:
Juha
See Also:
BrowserEventListener

Constructor Summary
EventBroker(BrowserWindow myBrowser)
           
 
Method Summary
 void addBrowserEventListener(BrowserEventListener l)
           
 void addGUIEventListener(GUIEventListener l)
           
 void browserReady()
          Informs the gui that browser is resting
 void browserWorking()
          Informs the gui that browser is working
 void destroy()
          Destroy The GUI (delete frame, etc)
 void issueBrowserStateChangedEvent(int state, java.lang.String text)
           
 void removeAllListeners()
          Remove all listeners added to eventbroker
 void removeBrowserEventListener(BrowserEventListener l)
           
 void removeGUIEventListener(GUIEventListener l)
           
 void setLocation(java.lang.String s)
           
 void setStatusText(java.lang.String statusText)
           
 void start()
          After browser is ready, then start is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventBroker

public EventBroker(BrowserWindow myBrowser)
Method Detail

addGUIEventListener

public void addGUIEventListener(GUIEventListener l)
Parameters:
l - Attach GUIEventListener to EventBroker

removeGUIEventListener

public void removeGUIEventListener(GUIEventListener l)

addBrowserEventListener

public void addBrowserEventListener(BrowserEventListener l)
Parameters:
l - Attach BrowserEventListener to EventBroker.

removeBrowserEventListener

public void removeBrowserEventListener(BrowserEventListener l)
Parameters:
l - Attach BrowserEventListener to EventBroker.

removeAllListeners

public void removeAllListeners()
Remove all listeners added to eventbroker


issueBrowserStateChangedEvent

public void issueBrowserStateChangedEvent(int state,
                                          java.lang.String text)
See Also:
BrowserLogic

start

public void start()
After browser is ready, then start is called. Not neccesary to implement


destroy

public void destroy()
Destroy The GUI (delete frame, etc)


browserWorking

public void browserWorking()
Informs the gui that browser is working


browserReady

public void browserReady()
Informs the gui that browser is resting


setLocation

public void setLocation(java.lang.String s)
Parameters:
s - The location that is beeing loaded

setStatusText

public void setStatusText(java.lang.String statusText)
Parameters:
statusText - The text to put in status bar


X-Smiles 1.2