de.beamertool.viewer.gui
Class GuiController

java.lang.Object
  extended by de.beamertool.viewer.gui.GuiController
All Implemented Interfaces:
DataListener, RemoteControlListener

public class GuiController
extends Object
implements RemoteControlListener, DataListener

This class handles all request to update the gui.
It honors the Swing thread policy and uses SwingUtilities.invokeLater. So neither the data layer nor the real gui classes have to work on the Swing thread policy

Author:
ocm-zeeman

Constructor Summary
GuiController(Settings theSettings)
           
 
Method Summary
 void addCloseMainWindowListener(CloseMainWindowListener newListener)
           
static void centerWindow(Component frame)
           
 void clearChat()
           
 SerBufferedImage getScreenshot()
           
 void newCommercial(String commercial)
          This method is called by the datacontroller if new commercials are availible for gui presentation.
 void newSms(InboundMessage aSms)
          This method is called by the datacontroller if new messages are availible for gui presentation.
 int[] refreshDirs()
           
 void say(String sayText)
           
 void startCountdown(long countdown)
           
 void startCry(String cryText)
           
 void stopCountdown()
           
 void stopCry()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiController

public GuiController(Settings theSettings)
Method Detail

centerWindow

public static void centerWindow(Component frame)

addCloseMainWindowListener

public void addCloseMainWindowListener(CloseMainWindowListener newListener)

clearChat

public void clearChat()
Specified by:
clearChat in interface RemoteControlListener

getScreenshot

public SerBufferedImage getScreenshot()
Specified by:
getScreenshot in interface RemoteControlListener

newCommercial

public void newCommercial(String commercial)
Description copied from interface: DataListener
This method is called by the datacontroller if new commercials are availible for gui presentation.

Specified by:
newCommercial in interface DataListener

newSms

public void newSms(InboundMessage aSms)
Description copied from interface: DataListener
This method is called by the datacontroller if new messages are availible for gui presentation.

Specified by:
newSms in interface DataListener

refreshDirs

public int[] refreshDirs()
Specified by:
refreshDirs in interface RemoteControlListener

say

public void say(String sayText)
Specified by:
say in interface RemoteControlListener

startCountdown

public void startCountdown(long countdown)
Specified by:
startCountdown in interface RemoteControlListener

startCry

public void startCry(String cryText)
Specified by:
startCry in interface RemoteControlListener

stopCountdown

public void stopCountdown()
Specified by:
stopCountdown in interface RemoteControlListener

stopCry

public void stopCry()
Specified by:
stopCry in interface RemoteControlListener