Package com.calebleavell.jatui.core
Class RunFrame
java.lang.Object
com.calebleavell.jatui.core.RunFrame
Holds information required for a single scheduling unit of the application.
In principle, the application runs module-by-module, so the primary data stored is
module. Everything else (e.g., parent) is auxiliary
information to help manage the run stack (created in TUIModule.start()).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSignals to the scheduler how to manage this frame. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TUIModuleThis field signals that the running module is replacing thecurrentRunningChildof aTUIModule(provided byTUIModule.getCurrentRunningChild()) in order to be able to set it back.final TUIModuleTheTUIModulethat will be running.final TUIModuleTheTUIModulethat is the parent of the module that will be running.final RunFrame.State -
Constructor Summary
ConstructorsConstructorDescriptionRunFrame(TUIModule module, TUIModule parent, RunFrame.State state) Constructs a newRunFrameto store information for a scheduling unit.RunFrame(TUIModule module, TUIModule parent, RunFrame.State state, TUIModule displacedChild) Constructs a newRunFrameto store information for a scheduling unit. -
Method Summary
-
Field Details
-
module
TheTUIModulethat will be running. -
parent
TheTUIModulethat is the parent of the module that will be running. -
state
-
displacedChild
This field signals that the running module is replacing thecurrentRunningChildof aTUIModule(provided byTUIModule.getCurrentRunningChild()) in order to be able to set it back. This replacement happens whenTUIModule.navigateTo(TUIModule.Builder)is called.
-
-
Constructor Details
-
RunFrame
Constructs a newRunFrameto store information for a scheduling unit.- Parameters:
module- TheTUIModulethat will be running.parent- TheTUIModulethat is the parent of the module that will be running.state- TheRunFrame.Statestate of the module; could beRunFrame.State.BEGINorRunFrame.State.END.
-
RunFrame
Constructs a newRunFrameto store information for a scheduling unit.- Parameters:
module- TheTUIModulethat will be running.parent- TheTUIModulethat is the parent of the module that will be running.state- TheRunFrame.Statestate of the module; could beRunFrame.State.BEGINorRunFrame.State.END.displacedChild- ThecurrentRunningChildofparentifmoduleis temporarily replacing it.
-
-
Method Details