|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
net.sourceforge.pavlov.startup.StartupWindow
public class StartupWindow
Shows an unbordered window with an image that closes itself when the main application becomes visible.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JProgressBar |
pbar
Describe variable pbar here. |
protected int |
progress
Describe variable progress here. |
protected String |
text
Progress status message text. |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StartupWindow(String imageURL,
JFrame who)
Creates a new StartupWindow instance. |
|
| Method Summary | |
|---|---|
void |
incrementStatus(int i,
String msg)
Increments progress bar value by i and sets message. |
void |
killme()
Close the window and free up my resources. |
void |
setMainApp(JFrame mainApp)
Describe setMainApp method here. |
void |
setProgress(int i)
Sets the progress bar value to i. |
void |
setStatus(int i,
String msg)
Sets progress bar value and message. |
void |
setText(String msg)
Describe setText method here. |
void |
windowActivated(WindowEvent e)
Called when main application is activated. |
void |
windowClosed(WindowEvent e)
Describe windowClosed method here. |
void |
windowClosing(WindowEvent e)
Describe windowClosing method here. |
void |
windowDeactivated(WindowEvent e)
Describe windowDeactivated method here. |
void |
windowDeiconified(WindowEvent e)
Describe windowDeiconified method here. |
void |
windowIconified(WindowEvent e)
Describe windowIconified method here. |
void |
windowOpened(WindowEvent e)
Called when main application is opened. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String text
protected JProgressBar pbar
pbar here.
protected int progress
progress here.
| Constructor Detail |
|---|
public StartupWindow(String imageURL,
JFrame who)
StartupWindow instance.
imageURL - a String valuewho - a Frame value| Method Detail |
|---|
public void setText(String msg)
setText method here.
setText in interface AbstractStartupWindowmsg - a String value
FIXME: should be protectedpublic void setProgress(int i)
setProgress in interface AbstractStartupWindowi - an int value
public void setStatus(int i,
String msg)
setStatus in interface AbstractStartupWindowi - an int valuemsg - a String value
public void incrementStatus(int i,
String msg)
incrementStatus in interface AbstractStartupWindowi - an int valuemsg - a String valuepublic void setMainApp(JFrame mainApp)
setMainApp method here.
setMainApp in interface AbstractStartupWindowmainApp - a JFrame valuepublic void killme()
public void windowActivated(WindowEvent e)
windowActivated in interface WindowListenere - a WindowEvent valuepublic void windowClosed(WindowEvent e)
windowClosed method here.
windowClosed in interface WindowListenere - a WindowEvent valuepublic void windowClosing(WindowEvent e)
windowClosing method here.
windowClosing in interface WindowListenere - a WindowEvent valuepublic void windowDeactivated(WindowEvent e)
windowDeactivated method here.
windowDeactivated in interface WindowListenere - a WindowEvent valuepublic void windowDeiconified(WindowEvent e)
windowDeiconified method here.
windowDeiconified in interface WindowListenere - a WindowEvent valuepublic void windowIconified(WindowEvent e)
windowIconified method here.
windowIconified in interface WindowListenere - a WindowEvent valuepublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenere - a WindowEvent value
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||