T - class of the controller of the target viewpublic class FlowLink<T> extends java.lang.Object implements FlowAction
FlowAction implementation that navigates to a different view in a flow.| Constructor and Description |
|---|
FlowLink(java.lang.Class<T> controllerClass)
Default constructor of the class
|
FlowLink(java.lang.Class<T> controllerClass,
boolean addOldToHistory)
This Constructor is needed for DataFX when calling a back action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(FlowHandler flowHandler,
java.lang.String actionId)
This method will be called by the
FlowHandler of the current flow whenever the action is triggered. |
public FlowLink(java.lang.Class<T> controllerClass)
controllerClass - controller class of the target viewpublic FlowLink(java.lang.Class<T> controllerClass, boolean addOldToHistory)
controllerClass - controller class of the target viewaddOldToHistory - defines if the old view should be added to the view history of the flowpublic void handle(FlowHandler flowHandler, java.lang.String actionId) throws FlowException
FlowActionFlowHandler of the current flow whenever the action is triggered.handle in interface FlowActionflowHandler - the flowHandler of the current flowactionId - unique ID of this action in the current flowFlowException - if an error occures while handling the action