public class StageService extends DefaultService
pendingTasksProperty| Modifier and Type | Field and Description |
|---|---|
static WaveTypeBase |
DO_CLOSE_STAGE
Wave type use to load events.
|
static WaveTypeBase |
DO_DESTROY_STAGE
Wave type use to load events.
|
static WaveTypeBase |
DO_OPEN_STAGE
Wave type use to load events.
|
private static org.slf4j.Logger |
LOGGER
The class logger.
|
static WaveTypeBase |
RE_STAGE_CLOSED
Wave type to return events loaded.
|
static WaveTypeBase |
RE_STAGE_DESTROYED
Wave type to return events loaded.
|
static WaveTypeBase |
RE_STAGE_OPENED
Wave type to return events loaded.
|
private Map<String,Stage> |
stageMap
The map that stores all stages.
|
PROCESS_WAVE_METHOD_NAMECOUNT_LINES_ERROR, NO_RETURN_WAVE_CONSUMED, NO_RETURNED_WAVE_ITEM, NO_RETURNED_WAVE_TYPE_DEFINED, NO_WAVE_TYPE_DEFINED, SERVICE_TASK_ERROR, SERVICE_TASK_HAS_FAILED, SERVICE_TASK_RETURN_CONSUMESCALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, USE_DEFAULT_WAVE_HANDLER, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR| Constructor and Description |
|---|
StageService() |
| Modifier and Type | Method and Description |
|---|---|
void |
doCloseStage(Wave wave)
Close a stage.
|
void |
doDestroyStage(Wave wave)
Destroy the stage and dereference it.
|
void |
doOpenStage(Wave wave)
Open a stage.
|
private Region |
getRootPane(StageWaveBean swb)
Gets the root pane.
|
private Scene |
getScene(StageWaveBean swb,
Region region)
Gets the scene.
|
private Stage |
getStage(StageWaveBean swb,
Scene scene)
Gets the stage.
|
Stage |
getStage(String stageKey)
Retrieve a stage according to its key.
|
StageWaveBean |
getWaveBean(Wave wave)
Get the wave bean and cast it.
|
void |
initService()
Custom method used to initialize the service.
|
processWavefinalize, getPendingTask, getPendingTaskList, pendingTasksProperty, ready, removePendingTask, returnData, updateMessage, updateProgress, updateProgress, updateProgress, updateProgress, updateTitleattachUi, callCommand, callCommand, getReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, release, returnData, sendWave, sendWave, setup, unlistengetCommand, getFirstKeyPart, getKey, getListKeyPart, getLocalFacade, getModel, getSecondKeyPart, getService, getThirdKeyPart, setKey, setLocalFacadeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReturnCommand, getReturnWaveType, listen, listen, listen, registerCallback, registerCallback, registerCallback, sendWave, sendWave, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setupattachUi, getModelgetService, returnDatacallCommand, callCommand, getCommandpublic static final WaveTypeBase DO_OPEN_STAGE
public static final WaveTypeBase RE_STAGE_OPENED
public static final WaveTypeBase DO_CLOSE_STAGE
public static final WaveTypeBase RE_STAGE_CLOSED
public static final WaveTypeBase DO_DESTROY_STAGE
public static final WaveTypeBase RE_STAGE_DESTROYED
private static final org.slf4j.Logger LOGGER
public void initService()
initService in class DefaultServicepublic void doOpenStage(Wave wave)
wave - the source waveprivate Region getRootPane(StageWaveBean swb)
swb - the swbprivate Scene getScene(StageWaveBean swb, Region region)
swb - the swbregion - the regionprivate Stage getStage(StageWaveBean swb, Scene scene)
swb - the swbscene - the scenepublic void doCloseStage(Wave wave)
wave - the source wavepublic void doDestroyStage(Wave wave)
wave - the source wavepublic StageWaveBean getWaveBean(Wave wave)
wave - the wave that hold the beanCopyright © 2011–2014 JRebirth OSS. All rights reserved.