de.beamertool.viewer.gui
Class GuiController
java.lang.Object
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
GuiController
public GuiController(Settings theSettings)
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