lacam.gui
Class SplashScreen

java.lang.Object
  extended bylacam.gui.SplashScreen

public class SplashScreen
extends java.lang.Object

The systems splash screen which can also be used to show progress to the user.

Author:
Dimitrij Zub

Constructor Summary
SplashScreen()
           
 
Method Summary
static void dispose()
          Disposes the currently shown splass screen or progress information
static void setProgress(java.lang.String description, int value)
          Sets the current progress information visible on the screen.
static void setProgressSize(int size)
          Sets the amount of steps to come.
static void showForm()
          Use this method to show the complete systems splash screen to the user.
static void showProgress(boolean modal)
          Use this method to create a screen that shows progress to the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplashScreen

public SplashScreen()
Method Detail

showProgress

public static void showProgress(boolean modal)
Use this method to create a screen that shows progress to the user.

Parameters:
modal - @see JDialog#JDialog(java.awt.Dialog, boolean)

showForm

public static void showForm()
Use this method to show the complete systems splash screen to the user. The splash screen is never modal.


setProgressSize

public static void setProgressSize(int size)
Sets the amount of steps to come. Use this method immidiatly after showForm() or showProgress(boolean).

Parameters:
size - The maximum amount of progress steps
See Also:
JProgressBar.setMaximum(int)

setProgress

public static void setProgress(java.lang.String description,
                               int value)
Sets the current progress information visible on the screen. Use this method between setProgressSize(int) and dispose()

Parameters:
description - The current steps description
value - The current steps position

dispose

public static void dispose()
Disposes the currently shown splass screen or progress information

See Also:
showForm(), showProgress(boolean)