public ObservableExecutor(Executor executor) { this(executor, ExceptionHandler.getDefaultInstance()); }
public FlowHandler(Flow flow, ViewFlowContext flowContext, ViewConfiguration viewConfiguration) { this(flow, flowContext, viewConfiguration, ExceptionHandler.getDefaultInstance()); }
/** * This methods creates a tab that contains the given view. * By doing so the metadata of the view will be bound to the tab properties. * So the text and icon of the tab can be changed by the view. * * @param context the context of the view. This includes the view and its controller instance * so that all needed informations are part of the context */ public <T> Tab createTab(ViewContext<T> context) { return createTab(context, ExceptionHandler.getDefaultInstance()); }
public static <T> List<TableColumn<T, ?>> createColumns(Class<T> entityType) { return createColumns(entityType, ExceptionHandler.getDefaultInstance()); }
private static void onUncaughtException(Thread thread, Throwable throwable) { if (!ExceptionHandler.isLogException()) { LOGGER.log(Level.SEVERE, "Uncaught throwable in " + thread.getName(), throwable); } ExceptionHandler.getDefaultInstance().setException(throwable); }
public static void setExceptionLogging(boolean log) { if (log) { getDefaultInstance().exceptionProperty().addListener(getLoggerListener()); } else { getDefaultInstance().exceptionProperty().removeListener(getLoggerListener()); } logException = log; }
/** * default constructor */ private EventSystem() { consumers = FXCollections.observableHashMap(); asyncConsumers = FXCollections.observableHashMap(); exceptionHandler = ExceptionHandler.getDefaultInstance(); executor = ObservableExecutor.getDefaultInstance(); }