public class ScenarioSimulationContext extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ScenarioSimulationContext.Status
Class representing the variable Status of the context
|
| Modifier and Type | Field and Description |
|---|---|
protected ScenarioGridModel |
model |
protected org.uberfire.client.mvp.PlaceManager |
placeManager |
protected RightPanelView.Presenter |
rightPanelPresenter |
protected org.uberfire.mvp.PlaceRequest |
rightPanelRequest |
protected ScenarioGridLayer |
scenarioGridLayer |
protected ScenarioGridPanel |
scenarioGridPanel |
protected ScenarioSimulationEditorPresenter |
scenarioSimulationEditorPresenter |
protected ScenarioSimulationContext.Status |
status |
| Constructor and Description |
|---|
ScenarioSimulationContext(ScenarioGridPanel scenarioGridPanel)
This constructor set
ScenarioGridPanel, ScenarioGridLayer and ScenarioGridModel
from the give ScenarioGridPanel |
| Modifier and Type | Method and Description |
|---|---|
long |
getId() |
ScenarioGridModel |
getModel() |
org.uberfire.client.mvp.PlaceManager |
getPlaceManager() |
RightPanelView.Presenter |
getRightPanelPresenter() |
org.uberfire.mvp.PlaceRequest |
getRightPanelRequest() |
ScenarioGridLayer |
getScenarioGridLayer() |
ScenarioGridPanel |
getScenarioGridPanel() |
ScenarioSimulationEditorPresenter |
getScenarioSimulationEditorPresenter() |
ScenarioSimulationContext.Status |
getStatus()
Get the current
Status |
void |
setPlaceManager(org.uberfire.client.mvp.PlaceManager placeManager) |
void |
setRightPanelPresenter(RightPanelView.Presenter rightPanelPresenter) |
void |
setRightPanelRequest(org.uberfire.mvp.PlaceRequest rightPanelRequest) |
void |
setScenarioSimulationEditorPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter) |
void |
setStatus(ScenarioSimulationContext.Status status)
Used to restore a previous
Status inside this context |
void |
setStatusSimulationIfEmpty()
Method to verify that
Status' simulation is populated, since Simulation
is set inside the model after the creation ot the current instance |
protected ScenarioGridModel model
protected ScenarioGridPanel scenarioGridPanel
protected ScenarioGridLayer scenarioGridLayer
protected ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter
protected RightPanelView.Presenter rightPanelPresenter
protected ScenarioSimulationContext.Status status
protected org.uberfire.client.mvp.PlaceManager placeManager
protected org.uberfire.mvp.PlaceRequest rightPanelRequest
public ScenarioSimulationContext(ScenarioGridPanel scenarioGridPanel)
ScenarioGridPanel, ScenarioGridLayer and ScenarioGridModel
from the give ScenarioGridPanelscenarioGridPanel - public ScenarioSimulationContext.Status getStatus()
Statuspublic void setStatus(ScenarioSimulationContext.Status status)
Status inside this contextstatus - public ScenarioSimulationEditorPresenter getScenarioSimulationEditorPresenter()
public void setScenarioSimulationEditorPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter)
public RightPanelView.Presenter getRightPanelPresenter()
public void setRightPanelPresenter(RightPanelView.Presenter rightPanelPresenter)
public ScenarioGridPanel getScenarioGridPanel()
public ScenarioGridModel getModel()
public ScenarioGridLayer getScenarioGridLayer()
public org.uberfire.client.mvp.PlaceManager getPlaceManager()
public void setPlaceManager(org.uberfire.client.mvp.PlaceManager placeManager)
public org.uberfire.mvp.PlaceRequest getRightPanelRequest()
public void setRightPanelRequest(org.uberfire.mvp.PlaceRequest rightPanelRequest)
public void setStatusSimulationIfEmpty()
Status' simulation is populated, since Simulation
is set inside the model after the creation ot the current instancepublic long getId()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.