| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static WalkthroughUtils. | Returns: a debounced listenerthe listener to debounce listener)Creates a debounced InvalidationListener that limits execution to at most once per interval. |
| public static WalkthroughUtils. | Returns: a debounced listenerthe listener to debounce listener, long the minimum interval between executions in milliseconds intervalMs)Creates a debounced InvalidationListener that limits execution to at most once per interval. |
| public static WalkthroughUtils. | |
| public static WalkthroughUtils. | |
| public static boolean | |
| public static Runnable | Returns: A runnable that can be used to detach the listener prematurely.A supplier that should return true when the listener should be detached (as well as run anything interesting for the actual callee). stopCondition)Attaches a listener to the global window list that fires on every window change until a stop condition is met. |
| private static void |
| DEFAULT_DEBOUNCE | back to summary |
|---|---|
| public static final long DEFAULT_DEBOUNCE | |
| WalkthroughUtils | back to summary |
|---|---|
| public WalkthroughUtils() | |
| cannotPositionNode | back to summary |
|---|---|
| public static boolean cannotPositionNode(@Nullable Node node) | |
| debounced | back to summary |
|---|---|
| public static WalkthroughUtils. Creates a debounced InvalidationListener that limits execution to at most once per interval. Uses JavaFX Timeline to ensure execution on JavaFX Application Thread. You are probably interested in calling the
| |
| debounced | back to summary |
|---|---|
| public static WalkthroughUtils. Creates a debounced InvalidationListener that limits execution to at most once per interval. Uses JavaFX Timeline to ensure execution on JavaFX Application Thread. You are probably interested in calling the
| |
| debounced | back to summary |
|---|---|
| public static WalkthroughUtils. Creates a debounced Runnable that limits execution to at most once per interval. Uses JavaFX Timeline to ensure execution on JavaFX Application Thread. You are probably interested in calling the
| |
| debounced | back to summary |
|---|---|
| public static WalkthroughUtils. Creates a debounced Runnable that limits execution to at most once per interval. Uses JavaFX Timeline to ensure execution on JavaFX Application Thread. You are probably interested in calling the
| |
| isNodeVisible | back to summary |
|---|---|
| public static boolean isNodeVisible(@Nullable Node node) | |
| onWindowChangedUntil | back to summary |
|---|---|
| public static Runnable onWindowChangedUntil(@NonNull BooleanSupplier stopCondition) Attaches a listener to the global window list that fires on every window change until a stop condition is met.
| |
| scheduleExecution | back to summary |
|---|---|
| private static void scheduleExecution(Timeline timeline, long intervalMs, Runnable action) | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| cancel | back to summary |
|---|---|
| public void cancel() Cancel any debounced InvalidationListener that's scheduled to run in the future. Implementation Note In other words, the implementation of debounced is NOT actually putting a counter of how many times the methods have executed, but rather to always delay the execution to specified intervals later, for which, only if during the specified interval no other tasks are scheduled, the operation proceeds. Therefore, you are likely interested in calling this method to prevent unwanted execution. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| cancel | back to summary |
|---|---|
| public void cancel() Cancel any debounced Runnable that's scheduled to run in the future. Implementation Note In other words, the implementation of debounced is NOT actually putting a counter of how many times the methods have executed, but rather to always delay the execution to specified intervals later, for which, only if during the specified interval no other tasks are scheduled, the operation proceeds. Therefore, you are likely interested in calling this method to prevent unwanted execution. | |