org.scijava.welcome
Class DefaultWelcomeService

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.service.AbstractService
              extended by 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

Constructor Summary
DefaultWelcomeService()
           
 
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.
 
Methods inherited from class org.scijava.service.AbstractService
dispose, getContext, initialize, registerEventHandlers, setContext, toString
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, 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.service.Service
initialize, registerEventHandlers
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Constructor Detail

DefaultWelcomeService

public DefaultWelcomeService()
Method Detail

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–2014 SciJava. All rights reserved.