Class PopOverWrapper<T>
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.util.controls.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 Summary
Constructors Constructor Description PopOverWrapper(BiFunction<T,@Nullable org.controlsfx.control.PopOver,@Nullable org.controlsfx.control.PopOver> rebinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).boolean
equals(Object o)
T
getIdentity()
Optional<Object>
getUserData()
int
hashCode()
void
hide()
void
rebind(T identity)
void
showOrFocus(Consumer<@NonNull org.controlsfx.control.PopOver> showMethod)
-
-
-
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()
-
hide
public void hide()
-
-