public class PredefinedDecorators
extends java.lang.Object
PredefinedDecorators defines several decorator supplier that can be used in the UI. We used them inside
JideFX.
You can change those factories by calling setInstance(PredefinedDecorators) to a new default instance.
| Modifier and Type | Class and Description |
|---|---|
static class |
PredefinedDecorators.AbstractButtonDecoratorSupplier
A convenient class that can be subclassed to create a button decorator supplier using any node.
|
protected static class |
PredefinedDecorators.ClearButtonDecoratorSupplier |
protected static class |
PredefinedDecorators.DecreaseButtonDecoratorSupplier |
protected static class |
PredefinedDecorators.IncreaseButtonDecoratorSupplier |
protected static class |
PredefinedDecorators.PopupButtonDecoratorSupplier |
| Constructor and Description |
|---|
PredefinedDecorators() |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Supplier<Decorator<javafx.scene.control.Button>> |
getClearButtonDecoratorSupplier()
Gets the decorator supplier for the clear button which can be used to clear the text in a TextField.
|
java.util.function.Supplier<Decorator<javafx.scene.control.Button>> |
getDecreaseButtonDecoratorSupplier()
Gets the decorator supplier for the decrease button used as the spinner buttons (in FormattedTextField).
|
java.util.function.Supplier<Decorator<javafx.scene.control.Button>> |
getIncreaseButtonDecoratorSupplier()
Gets the decorator supplier for the increase button used as the spinner buttons (in FormattedTextField).
|
static PredefinedDecorators |
getInstance()
Gets the default instance of PredefinedDecorators.
|
java.util.function.Supplier<Decorator<javafx.scene.control.Button>> |
getPopupButtonDecoratorSupplier()
Gets the decorator supplier for the popup button which can be used to show a popup.
|
static void |
setInstance(PredefinedDecorators instance)
Sets your own instance of PredefinedDecorators if you want to customize the predefined decorators.
|
public static PredefinedDecorators getInstance()
setInstance(PredefinedDecorators)public static void setInstance(PredefinedDecorators instance)
instance - a new instance.public java.util.function.Supplier<Decorator<javafx.scene.control.Button>> getIncreaseButtonDecoratorSupplier()
public java.util.function.Supplier<Decorator<javafx.scene.control.Button>> getDecreaseButtonDecoratorSupplier()
public java.util.function.Supplier<Decorator<javafx.scene.control.Button>> getClearButtonDecoratorSupplier()
public java.util.function.Supplier<Decorator<javafx.scene.control.Button>> getPopupButtonDecoratorSupplier()