public final class JavaFXUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
configure(javafx.scene.control.ButtonBase control,
JavaFXAction action) |
static void |
configure(javafx.scene.control.MenuItem control,
JavaFXAction action) |
static void |
connectActions(javafx.scene.Node node,
GriffonController controller) |
static <B> javafx.beans.property.Property<?> |
extractProperty(B bean,
String propertyName) |
static Object |
findElement(Object root,
String id) |
static javafx.scene.Node |
findNode(javafx.scene.Node root,
String id) |
static javafx.stage.Window |
getWindowAncestor(Object node) |
static javafx.scene.Node |
resolveIcon(String iconUrl) |
static void |
setGraphic(javafx.scene.control.Labeled control,
javafx.scene.image.Image graphic) |
static void |
setGraphic(javafx.scene.control.Labeled control,
javafx.scene.Node graphic) |
static void |
setGraphic(javafx.scene.control.MenuItem control,
javafx.scene.image.Image graphic) |
static void |
setGraphic(javafx.scene.control.MenuItem control,
javafx.scene.Node graphic) |
static void |
setIcon(javafx.scene.control.Labeled control,
String iconUrl) |
static void |
setIcon(javafx.scene.control.MenuItem control,
String iconUrl) |
static void |
setTooltip(javafx.scene.control.Control control,
String text) |
@Nonnull public static <B> javafx.beans.property.Property<?> extractProperty(@Nonnull B bean, @Nonnull String propertyName)
public static void connectActions(@Nonnull javafx.scene.Node node, @Nonnull GriffonController controller)
public static void configure(@Nonnull javafx.scene.control.ButtonBase control, @Nonnull JavaFXAction action)
public static void configure(@Nonnull javafx.scene.control.MenuItem control, @Nonnull JavaFXAction action)
public static void setTooltip(@Nonnull javafx.scene.control.Control control, @Nullable String text)
public static void setIcon(@Nonnull javafx.scene.control.Labeled control, @Nonnull String iconUrl)
public static void setIcon(@Nonnull javafx.scene.control.MenuItem control, @Nonnull String iconUrl)
public static void setGraphic(@Nonnull javafx.scene.control.Labeled control, @Nullable javafx.scene.image.Image graphic)
public static void setGraphic(@Nonnull javafx.scene.control.MenuItem control, @Nullable javafx.scene.image.Image graphic)
public static void setGraphic(@Nonnull javafx.scene.control.Labeled control, @Nullable javafx.scene.Node graphic)
public static void setGraphic(@Nonnull javafx.scene.control.MenuItem control, @Nullable javafx.scene.Node graphic)
@Nullable public static javafx.scene.Node findNode(@Nonnull javafx.scene.Node root, @Nonnull String id)