net.sourceforge.java.feednread.frontend
Class SplashScreen

java.lang.Object
  extended bynet.sourceforge.java.feednread.frontend.SplashScreen
All Implemented Interfaces:
EventListener, IJobListener

public class SplashScreen
extends Object
implements IJobListener

Feed'n Read splash screen: Contains a splash Image plus a progress indicator displaying the loading status of the NewsFeedFavoritesTree and NewsFeedWatchesTree.

Author:
Sebastian Machhausen

Field Summary
private  Display display
           The Display for the SplashScreen
private  ProgressBar progress
           The ProgressBar that displays the startup progress
private  Label progressLabel
           The Label to display the progress status
private  LanguageResource resource
           The LanguageResource to retrieve localized messages from
private  Shell shell
           The Shell to hold the SplashScreen Image
private  Image splashImg
           The splash Image to display
 
Constructor Summary
SplashScreen()
           Creates a new SplashScreen instance.
 
Method Summary
private  void createShell()
           Creates the Shell to hold this SplashScreen.
 void dispose()
           Disposes this SplashScreen by disposing the used Shell and splash Image.
 Shell getShell()
           Gets the Shell constructed by this SplashScreen
 void jobDone(JobEvent event)
           Indicates that the IJob whose progress is displayed in this SplashScreen has been done.
 void jobStarted(JobEvent event)
           Indicates that the IJob whose progress is displayed in this SplashScreen has been started.
 void jobStatusChanged(JobEvent event)
           Indicates that the status of the IJob whose progress is displayed in this SplashScreen has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

private Display display

The Display for the SplashScreen


shell

private Shell shell

The Shell to hold the SplashScreen Image


splashImg

private Image splashImg

The splash Image to display


progress

private ProgressBar progress

The ProgressBar that displays the startup progress


progressLabel

private Label progressLabel

The Label to display the progress status


resource

private LanguageResource resource

The LanguageResource to retrieve localized messages from

Constructor Detail

SplashScreen

public SplashScreen()

Creates a new SplashScreen instance.

Method Detail

getShell

public Shell getShell()

Gets the Shell constructed by this SplashScreen

Returns:
the Shell constructed by this SplashScreen

dispose

public void dispose()

Disposes this SplashScreen by disposing the used Shell and splash Image.


createShell

private void createShell()

Creates the Shell to hold this SplashScreen.


jobStarted

public void jobStarted(JobEvent event)

Indicates that the IJob whose progress is displayed in this SplashScreen has been started.

Specified by:
jobStarted in interface IJobListener
Parameters:
event - the triggered JobEvent

jobDone

public void jobDone(JobEvent event)

Indicates that the IJob whose progress is displayed in this SplashScreen has been done.

Specified by:
jobDone in interface IJobListener
Parameters:
event - the triggered JobEvent

jobStatusChanged

public void jobStatusChanged(JobEvent event)

Indicates that the status of the IJob whose progress is displayed in this SplashScreen has changed.

Specified by:
jobStatusChanged in interface IJobListener
Parameters:
event - the triggered JobEvent