class WizardRunScript extends EnvironmentFacades with ScriptBase with Facades
Base class implicitly used in all wizard implementations. It defines the wizard building blocks and useful properties that are made available to the wizard during execution.
A wizard implementation has one or more numbered pages and for each page both the WizardRunScript.init and the WizardRunScript.run functions must be called. The former determines what is displayed on the page initially and the latter determines what happens when the user advances the wizard to the next page.
- Alphabetic
- By Inheritance
- WizardRunScript
- ScriptBase
- EnvironmentFacades
- FacadesWithRunner
- Facades
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new WizardRunScript(environment: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var _cancel: Map[Int, WizardPageScript]
- Attributes
- protected
- def _executeCancel(pageNumber: Int, context: StageContext): ListBuffer[WizardLogMessage]
- def _executeInit(state: LiveSessionState, pageNumber: Int, context: StageContext): ListBuffer[WizardLogMessage]
- def _executeRun(state: LiveSessionState, pageNumber: Int, context: StageContext): ListBuffer[WizardLogMessage]
- def _executeSuccess(context: StageContext): Any
- var _init: Map[Int, WizardPageScript]
- Attributes
- protected
- var _page: PageApi
- Attributes
- protected
- var _run: Map[Int, WizardPageScript]
- Attributes
- protected
- var _session: SessionApi
- Attributes
- protected
- var _success: WizardPageScript
- Attributes
- protected
- var _wizard: WizardApi
- Attributes
- protected
- def application: ApplicationFacade
The API for the Application Service.
The API for the Application Service.
- Definition Classes
- EnvironmentFacades → Facades
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancel(page: Int)(func: => Unit): Unit
Implements the optional cancel action for a wizard page.
Implements the optional cancel action for a wizard page. The action should be implemented to reverse all side effects, which occurred as the wizard was advanced to the current page. Typically such effects would be from the run action on the page before.
- page
The page number.
- func
The function implementing the cancel action.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def config: ConfigFacade
The API for the Config Service.
The API for the Config Service.
- Definition Classes
- EnvironmentFacades → Facades
- val environment: String
- Definition Classes
- EnvironmentFacades
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def facades: EnvironmentFacades
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def init(page: Int, async: Boolean = false)(func: => Unit): Unit
Implements the init action for a wizard page.
Implements the init action for a wizard page. The action should be implemented to setup the page as presented to the user with informative texts and input fields. The implementation should generally be free from side effects and validation code.
- page
The page number.
- async
Whether to run the action asynchronously. Should be used for actions taking more than a few seconds.
- func
The function implementing the init action.
- def isAsyncInit(page: Int): Boolean
Whether an init action is asynchronous.
- def isAsyncRun(page: Int): Boolean
Whether a run action is asynchronous.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def numberOfPages: Int
The wizard page count.
- def output: OutputFacade
The API for the Output Service.
The API for the Output Service.
- Definition Classes
- EnvironmentFacades → Facades
- def page: PageApi
Provides access to methods for building a wizard page.
- def query: QueryFacade
The API for the Query Service.
The API for the Query Service.
- Definition Classes
- EnvironmentFacades → Facades
- def run(page: Int, async: Boolean = false)(func: => Unit): Unit
Implements the run action for a wizard page.
Implements the run action for a wizard page. The action should be implemented to perform the desired effects based on the input from the user. This is the place to include validation code for user input and any externally visible side effects (consider though to implement a cancel action for any significant side effects).
- page
The page number.
- async
Whether to run the action asynchronously. Should be used for actions taking more than a few seconds.
- func
The function implementing the run action.
- def runner(name: String): RunnerFacade
The API for the Runner Service with a given name.
The API for the Runner Service with a given name.
- name
The service name of the runner.
- Definition Classes
- EnvironmentFacades → FacadesWithRunner
- def scheduler: SchedulerFacade
The API for the Scheduler Service.
The API for the Scheduler Service.
- Definition Classes
- EnvironmentFacades → Facades
- def session: SessionApi
Provides access to methods for interacting with the current wizard session.
- def success(func: => Unit): Unit
Implements the optional success action for a wizard page.
Implements the optional success action for a wizard page. This action follows the run action for the final page and should be implemented to inform the user of the wizards successful completion and summarize any final results you wish to present.
- func
The function implementing the success action.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validate(): Unit
Performs some simple validations of the wizard structure.
Performs some simple validations of the wizard structure. This function is called internally and should not be used by implementers.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def wizard: WizardApi
Provides access to methods and properties for interacting with the wizard state.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)