@Override public ValidatorBase getActiveValidator() { return activeValidator == null ? null : activeValidator.get(); }
public ValidatorBase getActiveValidator() { return activeValidator == null ? null : activeValidator.get(); }
/** * Returns the model that is synchronized between client and server. For more information see {@link com.canoo.dolphin.mapping.DolphinBean} * @return the model */ public M getModel() { return model.get(); }
/** * Retrieves current validation result * @return validation result */ public ValidationResult getValidationResult() { return validationResultProperty.get(); }
/** * @return The controller associated with the root object. * @see #getRoot() */ @SuppressWarnings("unchecked") public <N> N getController() { return (N) this.controller.get(); }
/** * Returns the model that is synchronized between client and server. For more information see {@link RemotingBean} * * @return the model */ public M getModel() { return model.get(); }
public FlowView<?> getCurrentView() { return currentViewWrapper.get(); }
public ViewFlowContext getFlowContext() { return flowContextWrapper.get(); }
public Charset getCharset() { return this.charset.get(); }
@SuppressWarnings("unchecked") public <N> N getRoot() { return (N) root.get(); }
@Override public ValidatorBase getActiveValidator() { return activeValidator == null ? null : activeValidator.get(); }
public ValidatorBase getActiveValidator() { return activeValidator == null ? null : activeValidator.get(); }
public ResourceBundle getResources() { return this.resources.get(); }
/** * Get the current paint * * @return the paint */ public @Nullable Paint getPaint() { return this.paint.get(); }
/** * This method is deprected and will be removed in a future version. Use {@link #onInvocationException(ControllerActionException)} instead. * @return */ @Deprecated public ControllerActionException getInvocationException() { return invocationException.get(); }
/** * Get the current paint * * @return the paint */ public @Nullable Paint getPaint() { return this.paint.get(); }
/** * This method is deprected and will be removed in a future version. Use {@link #onInitializationException(Throwable)} instead. * @return */ @Deprecated public Throwable getInitializationException() { return initializationException.get(); }
public <T extends Node> T start(FlowContainer<T> container) throws FlowException { containerWrapper.set(container); flowContextWrapper.get().register(this); if (viewConfiguration != null) { flowContextWrapper.get().register(ResourceBundle.class.toString(), viewConfiguration.getResources()); } try { FlowView<?> startView = new FlowView(ViewFactory.getInstance().createByController(flowWrapper.get().getStartViewControllerClass(), null, getViewConfiguration(), flowContextWrapper.get())); setNewView(startView, false); } catch (FxmlLoadException e) { throw new FlowException(e); } return container.getView(); }
public FlowHandler(Flow flow, ViewFlowContext flowContext, ViewConfiguration viewConfiguration, ExceptionHandler exceptionHandler) { this.flowWrapper = new ReadOnlyObjectWrapper<>(flow); this.viewConfiguration = viewConfiguration; this.exceptionHandler = exceptionHandler; controllerHistory = FXCollections.observableArrayList(); currentViewWrapper = new ReadOnlyObjectWrapper<>(); containerWrapper = new ReadOnlyObjectWrapper<>(); flowContextWrapper = new ReadOnlyObjectWrapper<>(flowContext); currentViewMetadataWrapper = new ReadOnlyObjectWrapper<>(); flowContextWrapper.get().currentViewContextProperty().addListener((e) -> currentViewMetadataWrapper.set(flowContextWrapper.get().getCurrentViewContext().getMetadata())); flowContextWrapper.get().register(new FlowActionHandler(this)); }
public void handle(String actionId) throws VetoException, FlowException { FlowAction action = null; if (getCurrentView() != null) { action = getCurrentView().getActionById(actionId); } if (action == null) { action = flowWrapper.get().getGlobalActionById(actionId); } handle(action, actionId); }