Package 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,Identifiable,Initializable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,SciJavaService,Service,Versioned,WelcomeService
public class DefaultWelcomeService extends AbstractService implements WelcomeService
Default service for displaying the welcome greeting.- Author:
- Curtis Rueden, Mark Hiner
-
-
Constructor Summary
Constructors Constructor Description DefaultWelcomeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplayWelcome()Displays the welcome greeting.booleanisFirstRun()Returns true iff this version of the running SJC application has not run before.protected voidonEvent(UIShownEvent evt)Displays the welcome text when a UI is shown for the first time.voidsetFirstRun(boolean firstRun)Sets a preference recording whether this version of the dominant SJC application has run.-
Methods inherited from class org.scijava.service.AbstractService
getContext, setContext, toString
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority
-
Methods inherited from class org.scijava.AbstractContextual
context
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
displayWelcome
public void displayWelcome()
Description copied from interface:WelcomeServiceDisplays the welcome greeting.- Specified by:
displayWelcomein interfaceWelcomeService
-
isFirstRun
public boolean isFirstRun()
Description copied from interface:WelcomeServiceReturns true iff this version of the running SJC application has not run before.- Specified by:
isFirstRunin interfaceWelcomeService
-
setFirstRun
public void setFirstRun(boolean firstRun)
Description copied from interface:WelcomeServiceSets a preference recording whether this version of the dominant SJC application has run.- Specified by:
setFirstRunin interfaceWelcomeService
-
onEvent
protected void onEvent(UIShownEvent evt)
Displays the welcome text when a UI is shown for the first time.
-
-