org.scijava.welcome
Class DefaultWelcomeService
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.welcome.DefaultWelcomeService
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, RichPlugin, SciJavaPlugin, Prioritized, SciJavaService, Service, WelcomeService
public class DefaultWelcomeService
- extends AbstractService
- implements WelcomeService
Default service for displaying the welcome greeting.
- Author:
- Curtis Rueden, Mark Hiner
Method Summary |
void |
displayWelcome()
Displays the welcome greeting. |
boolean |
isFirstRun()
Returns true iff this version of the running SJC application has not run
before. |
protected void |
onEvent(UIShownEvent evt)
Displays the welcome text when a UI is shown for the first time. |
void |
setFirstRun(boolean firstRun)
Sets a preference recording whether this version of the dominant SJC
application has run. |
DefaultWelcomeService
public DefaultWelcomeService()
displayWelcome
public void displayWelcome()
- Description copied from interface:
WelcomeService
- Displays the welcome greeting.
- Specified by:
displayWelcome
in interface WelcomeService
isFirstRun
public boolean isFirstRun()
- Description copied from interface:
WelcomeService
- Returns true iff this version of the running SJC application has not run
before.
- Specified by:
isFirstRun
in interface WelcomeService
setFirstRun
public void setFirstRun(boolean firstRun)
- Description copied from interface:
WelcomeService
- Sets a preference recording whether this version of the dominant SJC
application has run.
- Specified by:
setFirstRun
in interface WelcomeService
onEvent
protected void onEvent(UIShownEvent evt)
- Displays the welcome text when a UI is shown for the first time.
Copyright © 2009–2015 SciJava. All rights reserved.