| Modifier and Type | Field and Description |
|---|---|
| private final Window | |
| private static final Logger | |
| private @Nullable ChangeListener | |
| private @Nullable Node | |
| private @Nullable Window | |
| private @Nullable DelayedExecution | |
| private static final Duration | REVERSION_DELAY
The use of delay is related to the following error that can be reproduced as of 00fc407: If the "Add Group" walkthrough is launched, the following action is performed:
|
| private final SideEffectExecutor | |
| private final Walkthrough | |
| private @Nullable ChangeListener |
| Access | Constructor and Description |
|---|---|
| public | WalkthroughReverter(@NonNull Walkthrough walkthrough, @NonNull Window fallbackWindow, @NonNull SideEffectExecutor sideEffectExecutor)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| private void |
| fallbackWindow | back to summary |
|---|---|
| private final Window fallbackWindow | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| nodeVisibleListener | back to summary |
|---|---|
| private @Nullable ChangeListener<Boolean> nodeVisibleListener | |
| resolvedNode | back to summary |
|---|---|
| private @Nullable Node resolvedNode | |
| resolvedWindow | back to summary |
|---|---|
| private @Nullable Window resolvedWindow | |
| reversion | back to summary |
|---|---|
| private @Nullable DelayedExecution reversion | |
| REVERSION_DELAY | back to summary |
|---|---|
| private static final Duration REVERSION_DELAY The use of delay is related to the following error that can be reproduced as of 00fc407: If the "Add Group" walkthrough is launched, the following action is performed:
It's not clear why such delay fixes this issue, but it's necessary. A possible hypothesis is that a re-render occurred during the change in the selection state, which leads to restoration to the default event dispatcher and error due to the monkey-patched dispatcher isn't perfectly compatible with JavaFX's inner work. | |
| sideEffectExecutor | back to summary |
|---|---|
| private final SideEffectExecutor sideEffectExecutor | |
| walkthrough | back to summary |
|---|---|
| private final Walkthrough walkthrough | |
| windowShowingListener | back to summary |
|---|---|
| private @Nullable ChangeListener<Boolean> windowShowingListener | |
| WalkthroughReverter | back to summary |
|---|---|
| public WalkthroughReverter(@NonNull Walkthrough walkthrough, @NonNull Window fallbackWindow, @NonNull SideEffectExecutor sideEffectExecutor) | |
| attach | back to summary |
|---|---|
| public void attach(@NonNull Window resolvedWindow, @Nullable Node resolvedNode) | |
| detach | back to summary |
|---|---|
| public void detach() | |
| findAndUndo | back to summary |
|---|---|
| public void findAndUndo() | |
| revertAll | back to summary |
|---|---|
| public void revertAll() | |
| undo | back to summary |
|---|---|
| private void undo(int stepIndex) | |
| undoTo | back to summary |
|---|---|
| private void undoTo(int from) Reverts the walkthrough to the last valid step before the given index. This method assumes that the step in the given index is not valid anymore without checking whether it's valid. | |