|
|||||||||
| 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
javax.swing.JWindow
org.ceryle.ui.WelcomeWindow
public class WelcomeWindow
A class that creates a simple window to be displayed during the startup of the application, with a small message area to show startup messages.
This expects three System properties to be previously set:
| Nested Class Summary | |
|---|---|
class |
WelcomeWindow.WindowEventHandler
The listener class to handle the closing of a window. |
| Nested classes/interfaces inherited from class javax.swing.JWindow |
|---|
JWindow.AccessibleJWindow |
| 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 | |
|---|---|
static boolean |
animateColors
When true, the message area's colors are animated during display. |
static int |
height
|
static String |
welcomeAnimeImage
|
static String |
welcomeImage
The filename of the welcome image. |
static int |
width
|
| Fields inherited from class javax.swing.JWindow |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| 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 |
| Method Summary | |
|---|---|
static WelcomeWindow |
getInstance(MessageHandler messagehandler)
As this is a singleton class, returns the single instance of this class. |
boolean |
isComplete()
Returns the state of the boolean complete, which is set true once the trailer is finished. |
String |
writeMessage(int status,
String message)
Writes the String message to the message area, implementing the MessageWriter API. |
void |
writeMessage(String message)
Writes the String message to the message area, implementing the MessageWriter API. |
void |
writeStatus(String message)
Writes the String message to the message area, implementing the MessageWriter API. |
void |
writeTrailer()
Show the window and write opening trailer messages with a slight delay between. |
| Methods inherited from class javax.swing.JWindow |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update, windowInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean animateColors
public static String welcomeImage
public static String welcomeAnimeImage
public static int width
public static int height
| Method Detail |
|---|
public static WelcomeWindow getInstance(MessageHandler messagehandler)
public void writeTrailer()
public boolean isComplete()
public void writeMessage(String message)
writeMessage in interface MessageWriter
public String writeMessage(int status,
String message)
writeMessage in interface MessageWriterMessageHandlerpublic void writeStatus(String message)
writeStatus in interface MessageWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||