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.
|
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
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 © 2015–2022 SciJava. All rights reserved.