public class FlowHandler
extends java.lang.Object
| ?????? |
|---|
FlowHandler(Flow flow,
ViewFlowContext flowContext) |
FlowHandler(Flow flow,
ViewFlowContext flowContext,
ViewConfiguration viewConfiguration) |
FlowHandler(Flow flow,
ViewFlowContext flowContext,
ViewConfiguration viewConfiguration,
io.datafx.core.ExceptionHandler exceptionHandler) |
| ?????? | ????? |
|---|---|
void |
attachAction(javafx.scene.control.MenuItem menuItem,
java.lang.Runnable action) |
void |
attachAction(javafx.scene.Node node,
java.lang.Runnable action) |
void |
attachBackEventHandler(javafx.scene.control.MenuItem menuItem) |
void |
attachBackEventHandler(javafx.scene.Node node) |
void |
attachEventHandler(javafx.scene.control.MenuItem menuItem,
java.lang.String actionId) |
void |
attachEventHandler(javafx.scene.Node node,
java.lang.String actionId) |
void |
destroy() |
javafx.beans.property.ReadOnlyObjectProperty<FlowContainer> |
getContainerProperty() |
javafx.collections.ObservableList<ViewHistoryDefinition<?>> |
getControllerHistory() |
FlowView<?> |
getCurrentView() |
ViewContext<?> |
getCurrentViewContext() |
java.lang.Class<?> |
getCurrentViewControllerClass()
Returns the controller class of the current visible
|
javafx.beans.property.ReadOnlyObjectProperty<ViewMetadata> |
getCurrentViewMetadata() |
javafx.beans.property.ReadOnlyObjectProperty<FlowView<?>> |
getCurrentViewProperty() |
io.datafx.core.ExceptionHandler |
getExceptionHandler() |
ViewFlowContext |
getFlowContext() |
javafx.beans.property.ReadOnlyObjectProperty<ViewFlowContext> |
getFlowContextProperty() |
ViewConfiguration |
getViewConfiguration() |
void |
handle(FlowAction action,
java.lang.String actionId) |
void |
handle(java.lang.String actionId) |
void |
navigateBack() |
void |
navigateTo(java.lang.Class<?> controllerClass)
Navigate to the view that is defined by the given controller class
|
void |
navigateToHistoryIndex(int index) |
<S,T extends S> |
registerInApplicationContext(java.lang.Class<S> toRegister,
T object) |
<T> void |
registerInApplicationContext(java.lang.String key,
T object) |
<T> void |
registerInApplicationContext(T object) |
<S,T extends S> |
registerInFlowContext(java.lang.Class<S> toRegister,
T object) |
<T> void |
registerInFlowContext(java.lang.String key,
T object) |
<T> void |
registerInFlowContext(T object) |
<S,T extends S> |
registerInViewContext(java.lang.Class<S> toRegister,
T object) |
<T> void |
registerInViewContext(java.lang.String key,
T object) |
<T> void |
registerInViewContext(T object) |
void |
setExceptionHandler(io.datafx.core.ExceptionHandler exceptionHandler)
Set the exception handler for this flow.
|
<U> ViewContext<U> |
setNewView(FlowView<U> newView,
boolean addOldToHistory) |
javafx.scene.layout.StackPane |
start() |
<T extends javafx.scene.Node> |
start(FlowContainer<T> container) |
void |
startInPane(javafx.scene.layout.StackPane pane) |
javafx.scene.control.Tab |
startInTab() |
<T extends javafx.scene.Node> |
startInTab(FlowContainer<T> container) |
public FlowHandler(Flow flow, ViewFlowContext flowContext)
public FlowHandler(Flow flow, ViewFlowContext flowContext, ViewConfiguration viewConfiguration)
public FlowHandler(Flow flow, ViewFlowContext flowContext, ViewConfiguration viewConfiguration, io.datafx.core.ExceptionHandler exceptionHandler)
public javafx.scene.layout.StackPane start()
throws FlowException
FlowExceptionpublic void startInPane(javafx.scene.layout.StackPane pane)
throws FlowException
FlowExceptionpublic javafx.scene.control.Tab startInTab()
throws FlowException
FlowExceptionpublic <T extends javafx.scene.Node> javafx.scene.control.Tab startInTab(FlowContainer<T> container) throws FlowException
FlowExceptionpublic void destroy()
public <T extends javafx.scene.Node> T start(FlowContainer<T> container) throws FlowException
FlowExceptionpublic ViewConfiguration getViewConfiguration()
public void handle(java.lang.String actionId)
throws VetoException,
FlowException
public io.datafx.core.ExceptionHandler getExceptionHandler()
public void setExceptionHandler(io.datafx.core.ExceptionHandler exceptionHandler)
exceptionHandler - the exception handlerpublic ViewFlowContext getFlowContext()
public javafx.beans.property.ReadOnlyObjectProperty<ViewMetadata> getCurrentViewMetadata()
public javafx.beans.property.ReadOnlyObjectProperty<ViewFlowContext> getFlowContextProperty()
public javafx.beans.property.ReadOnlyObjectProperty<FlowView<?>> getCurrentViewProperty()
public javafx.beans.property.ReadOnlyObjectProperty<FlowContainer> getContainerProperty()
public FlowView<?> getCurrentView()
public ViewContext<?> getCurrentViewContext()
public java.lang.Class<?> getCurrentViewControllerClass()
public void handle(FlowAction action, java.lang.String actionId) throws FlowException, VetoException
public <U> ViewContext<U> setNewView(FlowView<U> newView, boolean addOldToHistory) throws FlowException
FlowExceptionpublic void navigateBack()
throws VetoException,
FlowException
public javafx.collections.ObservableList<ViewHistoryDefinition<?>> getControllerHistory()
public void navigateToHistoryIndex(int index)
throws VetoException,
FlowException
public void navigateTo(java.lang.Class<?> controllerClass)
throws VetoException,
FlowException
controllerClass - the controller class of the viewVetoExceptionFlowExceptionpublic void attachAction(javafx.scene.Node node,
java.lang.Runnable action)
public void attachAction(javafx.scene.control.MenuItem menuItem,
java.lang.Runnable action)
public void attachEventHandler(javafx.scene.Node node,
java.lang.String actionId)
public void attachBackEventHandler(javafx.scene.control.MenuItem menuItem)
public void attachBackEventHandler(javafx.scene.Node node)
public void attachEventHandler(javafx.scene.control.MenuItem menuItem,
java.lang.String actionId)
public <T> void registerInViewContext(T object)
public <T> void registerInViewContext(java.lang.String key,
T object)
public <S,T extends S> void registerInViewContext(java.lang.Class<S> toRegister,
T object)
public <T> void registerInFlowContext(T object)
public <T> void registerInFlowContext(java.lang.String key,
T object)
public <S,T extends S> void registerInFlowContext(java.lang.Class<S> toRegister,
T object)
public <T> void registerInApplicationContext(T object)
public <T> void registerInApplicationContext(java.lang.String key,
T object)
public <S,T extends S> void registerInApplicationContext(java.lang.Class<S> toRegister,
T object)