Class FxWidget<W>

    • Field Detail

      • CLASS_INVALID

        public static final javafx.css.PseudoClass CLASS_INVALID
        PseudoClass if JavaFx widget gets invalid.
      • CLASS_READ_ONLY

        public static final javafx.css.PseudoClass CLASS_READ_ONLY
        PseudoClass if JavaFx widget gets read-only.
    • Constructor Detail

      • FxWidget

        public FxWidget​(W widget)
        The constructor.
        Parameters:
        widget - the JavaFx widget.
    • Method Detail

      • getWidget

        public W getWidget()
        Returns:
        the underlying native widget wrapped by this UiNativeWidget.
      • setWidget

        protected void setWidget​(W widget)
        Parameters:
        widget - the JavaFx widget to initialize.
      • getTopNode

        public static javafx.scene.Node getTopNode​(UiWidget uiWidget)
        Parameters:
        uiWidget - the UiWidget.
        Returns:
        the containing JavaFx Node.
      • setTooltip

        public static void setTooltip​(javafx.scene.control.Control widget,
                                      String tooltip)
        Parameters:
        widget - the Control where to apply the tooltip to.
        tooltip - the tooltip text to apply.
      • onAction

        protected void onAction​(javafx.event.ActionEvent event)
        Parameters:
        event - the ActionEvent.
      • onFocusChange

        protected void onFocusChange​(javafx.beans.value.ObservableValue<? extends Boolean> observable,
                                     Boolean oldValue,
                                     Boolean newValue)
        Parameters:
        observable - the observable (property) that changed.
        oldValue - the old value.
        newValue - the new value.
      • onFocusChanged

        protected void onFocusChanged​(boolean focusGain)
        Parameters:
        focusGain - true if the focus was gained, false otherwise (focus has been lost).
      • onValueChange

        protected <V> void onValueChange​(javafx.beans.value.ObservableValue<? extends V> observable,
                                         V oldValue,
                                         V newValue)
        Type Parameters:
        V - type of the value.
        Parameters:
        observable - the observable (property) that changed.
        oldValue - the old value.
        newValue - the new value.
      • onClose

        protected void onClose​(javafx.event.Event event)
        Parameters:
        event - the close Event.