net.sourceforge.pavlov.startup
Interface AbstractStartupWindow

All Known Implementing Classes:
StartupWindow

public interface AbstractStartupWindow

An interface that represents the functionality of a "Startup Window." A window that displays an application's logo, copyright information, and its startup progress.


Method Summary
 void incrementStatus(int howMuch, String msg)
          Sets progress bar to howMuch percent, and gives it the given message.
 void setMainApp(JFrame frame)
          Implement this method to be informed of which JFrame represents the main application.
 void setProgress(int n)
          Sets the progress percentage to the given number.
 void setStatus(int howMuch, String msg)
          Sets progress bar to howMuch percent, and gives it the given message.
 void setText(String t)
          Sets the progress text to the given string.
 

Method Detail

incrementStatus

void incrementStatus(int howMuch,
                     String msg)
Sets progress bar to howMuch percent, and gives it the given message.

Parameters:
howMuch - an int value
msg - a String value

setProgress

void setProgress(int n)
Sets the progress percentage to the given number.

Parameters:
n - an int value

setStatus

void setStatus(int howMuch,
               String msg)
Sets progress bar to howMuch percent, and gives it the given message.

Parameters:
howMuch - an int value
msg - a String value

setText

void setText(String t)
Sets the progress text to the given string.

Parameters:
t - a String value

setMainApp

void setMainApp(JFrame frame)
Implement this method to be informed of which JFrame represents the main application. This allows the startup window to close itself when the main application is visible.

Parameters:
frame - a JFrame value