public class DialogHelper
extends java.lang.Object
Dialog related functions.| Modifier and Type | Method and Description |
|---|---|
static <R,T extends javafx.scene.control.Dialog<R>> |
setExceptionContent(T dialog,
@Nullable java.lang.Throwable throwable)
Add an
Exception's stack trace to a Dialog's DialogPane as an expandable content. |
static <R,T extends javafx.scene.control.Dialog<R>> |
setLogRecordsContent(T dialog,
java.util.Collection<java.util.logging.LogRecord> logs)
Add a collection of
LogRecord's to a Dialog's DialogPane as an expandable content. |
public static <R,T extends javafx.scene.control.Dialog<R>> T setExceptionContent(T dialog,
@Nullable java.lang.Throwable throwable)
Exception's stack trace to a Dialog's DialogPane as an expandable content.R - The dialog's result type.T - The actual Dialog type.dialog - The dialog to add the exception to.throwable - The exception to add (may be null).DialogPane.setExpandableContent(javafx.scene.Node)public static <R,T extends javafx.scene.control.Dialog<R>> T setLogRecordsContent(T dialog,
java.util.Collection<java.util.logging.LogRecord> logs)
LogRecord's to a Dialog's DialogPane as an expandable content.R - The dialog's result type.T - The actual Dialog type.dialog - The dialog to add the exception to.logs - The collection of log records to add (may by null).DialogPane.setExpandableContent(javafx.scene.Node)