|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.Splash
A Splash screen that will show a picture and possibly a progressbar.
The splash screen is written for speed; on my 800 mHz machine it takes less then
a second for this splas to be visible.
Positioning of the splash is in the center of the current screen (choosing the
active monitor on a multi screen setup).
Constructor Summary | |
Splash(Image image,
boolean showProgress)
Start a Splash screen by providing an Image. |
Method Summary | |
void |
close()
closes this splash screen. |
void |
setProgress(int newValue)
Set the new progress value for the progress bar. |
void |
setProgressBarLocation(int fromBottom)
|
void |
setProgressBarLocation(int fromRight,
int fromBottom)
|
void |
setProgressBarLocation(int x,
int y,
int width,
int height)
|
void |
setProgressMax(int maxValue)
Change the maximum value of the progress bar. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Splash(Image image, boolean showProgress)
Splash s; try { Image image = new ImageIcon(new URL("file:/home/zander/sources/microweb/woonactueel/resources/nl/default/images/permissionsmanager.jpg")).getImage(); s = new Splash(image, true); } catch (java.io.IOException e) { s = null; }Note that this uses a Swing component (ImageIcon) which may delay loading. Note also that the SplashScreen class provides an easier way to construct; but that it requires the ImageIO package which has been introduced in JRE 1.4
Method Detail |
public void setProgressBarLocation(int x, int y, int width, int height)
public void setProgressBarLocation(int fromRight, int fromBottom)
public void setProgressBarLocation(int fromBottom)
public void setProgress(int newValue)
setProgressMax(int)
public void setProgressMax(int maxValue)
setProgress(int)
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |