|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.splash.AbstractSplashScreen
public abstract class AbstractSplashScreen
An abstract helper implementation of the SplashScreen
interface.
The splash screen produced by this class will be an undecorated, centered
frame containing the component provided by createContentPane()
,
which is the only method that subclasses need to implement.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
|
static String |
SPLASH_TITLE_KEY
The message resource key used to look up the splash screen's frame title. |
Constructor Summary | |
---|---|
AbstractSplashScreen()
|
Method Summary | |
---|---|
protected abstract Component |
createContentPane()
Returns the component to be displayed in the splash screen's main frame. |
void |
dispose()
Disposes this SplashScreen , freeing any system resources
that it may be using. |
String |
getIconResourcePath()
Returns the location of the image to be used as the icon for the splash screen's frame. |
MessageSource |
getMessageSource()
Returns the message source used to resolve localized messages. |
boolean |
isRootFrame()
|
boolean |
isShadowBorder()
Returns whether the splash screen will be rendered with a shadow border. |
void |
setIconResourcePath(String iconResourcePath)
Sets the location of the image to be used as the icon for the splash screen's frame. |
void |
setMessageSource(MessageSource messageSource)
Sets the message source used to resolve localized messages. |
void |
setRootFrame(boolean rootFrame)
The frame that is used to display this splashscreen can be used as rootFrame for other dialogs/windows that need a Frame before the applicationFrame is created. |
void |
setShadowBorder(boolean shadowBorder)
Sets whether the splash screen will be rendered with a shadow border. |
void |
splash()
Creates and displays an undecorated, centered splash screen containing the component provided by createContentPane() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SPLASH_TITLE_KEY
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public AbstractSplashScreen()
Method Detail |
---|
public String getIconResourcePath()
public void setIconResourcePath(String iconResourcePath)
iconResourcePath
- The location of the icon resource.public MessageSource getMessageSource()
public void setMessageSource(MessageSource messageSource)
messageSource
- The message source.public final void dispose()
SplashScreen
SplashScreen
, freeing any system resources
that it may be using.
dispose
in interface SplashScreen
public final void splash()
createContentPane()
. If this instance
has been provided with a MessageSource
, it will be used to
retrieve the splash screen's frame title under the key
"splash.title".
splash
in interface SplashScreen
protected abstract Component createContentPane()
public boolean isShadowBorder()
public void setShadowBorder(boolean shadowBorder)
true
a border will be shown.
shadowBorder
- Show the shadow border or notpublic void setRootFrame(boolean rootFrame)
rootFrame
- true
if the created frame must be set as
rootFrame. Defaults to true
.JOptionPane.setRootFrame(java.awt.Frame)
public boolean isRootFrame()
true
if the created frame must be set as rootFrame.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |