public class DefaultWelcomeService extends AbstractService implements WelcomeService
Constructor and Description |
---|
DefaultWelcomeService() |
Modifier and Type | Method and Description |
---|---|
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.
|
dispose, getContext, initialize, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public void displayWelcome()
WelcomeService
displayWelcome
in interface WelcomeService
public boolean isFirstRun()
WelcomeService
isFirstRun
in interface WelcomeService
public void setFirstRun(boolean firstRun)
WelcomeService
setFirstRun
in interface WelcomeService
protected void onEvent(UIShownEvent evt)
Copyright © 2009–2016 SciJava. All rights reserved.