de.scheisseichfindemalkeinen.gui
Class GuiEvent

java.lang.Object
  extended by de.scheisseichfindemalkeinen.gui.GuiEvent

public class GuiEvent
extends java.lang.Object

Class which contains Listeners for GUI-Events


Method Summary
 void addListener(IGuiEventListener l)
          Add Listener
 void exitApp(boolean restart)
          Exit program
 void exitAppForce(java.lang.String message, java.lang.String title, java.awt.Component owner, boolean restart)
          Exit programm after update
 void hideWindow()
          Hide Main-Window
static GuiEvent instance()
          Returns the instance
 void keywordsChanged()
          KeywordsChanged
 void removeListener(IGuiEventListener l)
          Remove Listener
 void showWindow(java.lang.Class cl)
          Show Window
 void splashProgressBarChanged(int min, int max, int val)
          Progressbar changed
 void splashProgressBarTextChanged(java.lang.String text)
          Progressbar text changed
 void splashProgressBarVisibilityChanged(boolean visible)
          Progressbar visibility changed
 void splashTextChanged(java.lang.String text)
          Splashscreen text changed
 void updateWindowClosed(boolean updateRunned, boolean updateSuccessfull)
          Update-Window was closed If an update was downloaded and installed updateRunned is true otherwise false.
 void updateWindowOpened()
          Update-Window was opened and will be open until updateWindowClosed-Method is called
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static GuiEvent instance()
Returns the instance

Returns:
Instance

showWindow

public void showWindow(java.lang.Class cl)
Show Window

Parameters:
cl - Class of window to show

hideWindow

public void hideWindow()
Hide Main-Window


exitApp

public void exitApp(boolean restart)
Exit program

Parameters:
restart - Restart

exitAppForce

public void exitAppForce(java.lang.String message,
                         java.lang.String title,
                         java.awt.Component owner,
                         boolean restart)
Exit programm after update

Parameters:
message - Message
title - Title
owner - Owner
restart - Restart

keywordsChanged

public void keywordsChanged()
KeywordsChanged


splashTextChanged

public void splashTextChanged(java.lang.String text)
Splashscreen text changed

Parameters:
text - Text

splashProgressBarChanged

public void splashProgressBarChanged(int min,
                                     int max,
                                     int val)
Progressbar changed

Parameters:
min - Minimum
max - Maximum
val - Value

splashProgressBarTextChanged

public void splashProgressBarTextChanged(java.lang.String text)
Progressbar text changed

Parameters:
text - Text

splashProgressBarVisibilityChanged

public void splashProgressBarVisibilityChanged(boolean visible)
Progressbar visibility changed

Parameters:
visible - Visible

updateWindowOpened

public void updateWindowOpened()
Update-Window was opened and will be open until updateWindowClosed-Method is called


updateWindowClosed

public void updateWindowClosed(boolean updateRunned,
                               boolean updateSuccessfull)
Update-Window was closed If an update was downloaded and installed updateRunned is true otherwise false. updateSuccessfull is true if the update was successfull otherwise it will be false.

Parameters:
updateRunned - Update runned
updateSuccessfull - Update successfull

addListener

public void addListener(IGuiEventListener l)
Add Listener

Parameters:
l - Listener

removeListener

public void removeListener(IGuiEventListener l)
Remove Listener

Parameters:
l - Listener