From 900e2e729a39f66482491d47f966f659b35cfa45 Mon Sep 17 00:00:00 2001 From: piegames Date: Tue, 24 Sep 2019 15:03:24 +0200 Subject: [PATCH] Allow changing the skin in AutoCompletionBinding --- .../textfield/AutoCompletionBinding.java | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/controlsfx/src/main/java/org/controlsfx/control/textfield/AutoCompletionBinding.java b/controlsfx/src/main/java/org/controlsfx/control/textfield/AutoCompletionBinding.java index 6e219a2aa..8aa481646 100644 --- a/controlsfx/src/main/java/org/controlsfx/control/textfield/AutoCompletionBinding.java +++ b/controlsfx/src/main/java/org/controlsfx/control/textfield/AutoCompletionBinding.java @@ -190,7 +190,7 @@ public final int getVisibleRowCount() { public final IntegerProperty visibleRowCountProperty() { return autoCompletionPopup.visibleRowCountProperty(); } - + /** * Sets the prefWidth of the popup. * @@ -269,6 +269,27 @@ public final DoubleProperty maxWidthProperty() { return autoCompletionPopup.maxWidthProperty(); } + /** + * Set the skin of the popup + */ + public final void setSkin(Skin skin) { + autoCompletionPopup.setSkin(skin); + } + + /** + * Return the skin of the popup + */ + public final Skin getSkin() { + return autoCompletionPopup.getSkin(); + } + + /** + * Return the property associated with the popup's skin + */ + public final ObjectProperty> skinProperty() { + return autoCompletionPopup.skinProperty(); + } + /*************************************************************************** * * * Protected methods *