Class PopOverWrapper<T>


  • public final class PopOverWrapper<T>
    extends Object
    Wrapper around a popover, that remembers whether it's already shown or not.
    Author:
    Clément Fournier
    • Constructor Detail

      • PopOverWrapper

        public PopOverWrapper​(BiFunction<T,​@Nullable org.controlsfx.control.PopOver,​@Nullable org.controlsfx.control.PopOver> rebinder)
    • Method Detail

      • showOrFocus

        public void showOrFocus​(Consumer<@NonNull org.controlsfx.control.PopOver> showMethod)
      • rebind

        public void rebind​(T identity)
      • doFirstLoad

        public void doFirstLoad​(javafx.stage.Stage stage)
        This is a weird hack to preload the FXML and CSS, so that the first opening of the popover doesn't look completely broken (twitching and obviously being restyled).

        We show the popover briefly with opacity 0, just the time for its content graph to load. When hidden the opacity is reset to 1.

      • getIdentity

        public T getIdentity()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • hide

        public void hide()