|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window javax.swing.JWindow org.xnap.commons.gui.SplashWindow
public class SplashWindow
Displays a splash window at the center of the screen.
The following colors are used as background and foreground colors:
UIManager.getColor("TextField.background"); UIManager.getColor("TextField.foreground");
Nested Class Summary | |
---|---|
static class |
SplashWindow.CloseRunner
|
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 |
---|
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 | |
---|---|
void |
centerOnScreen()
|
static void |
closeSplashWindow()
Closes the window if shown on screen. |
static SplashWindow |
createInstance(String text,
Icon icon)
|
JLabel |
getImageLabel()
|
static SplashWindow |
getInstance()
|
static int |
getProgress()
|
JProgressBar |
getProgressBar()
|
JLabel |
getStatusLabel()
|
static void |
incProgress(int delta)
Increases the progress by delta percent. |
static void |
incProgress(int delta,
String text)
Increases the progress by delta percent and sets the
status text to newValue . |
static void |
setProgress(int newValue)
Sets the progress to newValue percent. |
static void |
setProgress(int progress,
String text)
Sets the progress to progress and the status text to
text . |
static void |
setText(String newValue)
Sets the status text to newValue . |
void |
show(long timeout)
|
static void |
showSplashWindow(String text,
Icon icon,
long timeout)
The splash window will be closed automatically after timeout milli seconds. |
static void |
updateComponentTree()
|
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 |
Method Detail |
---|
public void centerOnScreen()
public static SplashWindow createInstance(String text, Icon icon)
public static void showSplashWindow(String text, Icon icon, long timeout)
timeout
milli seconds.
timeout
- automatic closing will be disabled, if less or equal
than 0public static void closeSplashWindow()
public static SplashWindow getInstance()
public JProgressBar getProgressBar()
public JLabel getStatusLabel()
public JLabel getImageLabel()
public static int getProgress()
public static void incProgress(int delta, String text)
delta
percent and sets the
status text to newValue
.
public static void incProgress(int delta)
delta
percent.
public static void setProgress(int progress, String text)
progress
and the status text to
text
.
public static void setProgress(int newValue)
newValue
percent.
public static void setText(String newValue)
newValue
.
public void show(long timeout)
public static void updateComponentTree()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |