Package org.java.plugin.boot
Interface SplashHandler
-
public interface SplashHandlerInterface to control application splash screen.- Version:
- $Id$
- See Also:
Boot.getSplashHandler()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(ExtendedProperties config)Configures this handler instance.java.net.URLgetImage()java.lang.ObjectgetImplementation()Useful method to get access to handler internals.floatgetProgress()java.lang.StringgetText()booleanisVisible()voidsetImage(java.net.URL value)Sets new image URL and optionally displays it on the splash screen.voidsetProgress(float value)Sets boot progress value and optionally adjust visual progress bar control.voidsetText(java.lang.String value)Sets new text caption and optionally display it on the screen.voidsetVisible(boolean value)Shows/hides splash screen.
-
-
-
Method Detail
-
configure
void configure(ExtendedProperties config)
Configures this handler instance. This method is called ones immediately after handler instantiation.- Parameters:
config- handler configuration data, here included all configuration parameters which name starts withorg.java.plugin.boot.splash.prefix
-
getProgress
float getProgress()
- Returns:
- boot progress value that is normalized to [0; 1] interval
-
setProgress
void setProgress(float value)
Sets boot progress value and optionally adjust visual progress bar control. The value should be in [0; 1] interval.- Parameters:
value- new progress value
-
getText
java.lang.String getText()
- Returns:
- current text caption
-
setText
void setText(java.lang.String value)
Sets new text caption and optionally display it on the screen.- Parameters:
value- new text caption
-
getImage
java.net.URL getImage()
- Returns:
- current image URL
-
setImage
void setImage(java.net.URL value)
Sets new image URL and optionally displays it on the splash screen.- Parameters:
value- new image URL
-
isVisible
boolean isVisible()
- Returns:
trueif splash screen is displayed now
-
setVisible
void setVisible(boolean value)
Shows/hides splash screen.- Parameters:
value-trueto show splash screen,false- to hide and dispose it
-
getImplementation
java.lang.Object getImplementation()
Useful method to get access to handler internals. The actually returned object depends on handler implementation.- Returns:
- original implementation of this handler, usually you return
this(useful for handler wrappers)
-
-