public class AbstractContainerController<S extends java.lang.Enum<S>,V extends AbstractContainerController.View<S>> extends AbstractController<V>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractContainerController.View<S extends java.lang.Enum<S>> |
AbstractController.ControllerWorker<T,W>
context, regrec, ScheduleDelayDefault, view
Constructor and Description |
---|
AbstractContainerController(org.processmining.framework.plugin.PluginContext context) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Register all listeners and stop background work here
|
IController |
getChildController(S state)
Get child controller
|
protected S |
getCurrentViewState() |
void |
initialize()
Instantiate and prepare everything here
|
protected void |
initializeChildren()
Call this after you registered all the child controllers
|
void |
registerChildController(S state,
IController ctrl)
Register child controller
|
protected void |
updateViewState(S newState) |
protected void |
updateViewStatesEnabled(S[] allStates,
java.util.Collection<S> enabledViews) |
deactivate, getView, runBackground, runBackground, runBackground, runUi, scheduleBackground, scheduleBackground, scheduleBackground, scheduleBackground, setScheduleDelay
public AbstractContainerController(org.processmining.framework.plugin.PluginContext context)
public void registerChildController(S state, IController ctrl)
state
- public IController getChildController(S state)
state
- protected void initializeChildren()
public void initialize()
AbstractController
initialize
in interface IController
initialize
in class AbstractController<V extends AbstractContainerController.View<S>>
public void activate()
AbstractController
activate
in interface IController
activate
in class AbstractController<V extends AbstractContainerController.View<S>>
protected S getCurrentViewState()
protected void updateViewState(S newState)