| Modifier and Type | Field and Description |
|---|---|
| private final List | cleanupTasks
Mutable list of clean up tasks that are executed when the overlay is hidden or detached. |
| private @Nullable Node | |
| private final KeyBindingRepository | |
| private static final Logger | |
| private final WalkthroughPane | |
| private static final double | POPOVER_ARROW_GAP
Negative = distance between the arrow tip and the target node. |
| private static final int | |
| private @Nullable Button | |
| private final WalkthroughRenderer | |
| private boolean | |
| private final StateManager | |
| private final Walkthrough | |
| private final Window |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private PopOver | |
| private Button | |
| public void | |
| public void | |
| private void | listenKeybindings(EventTarget target, Scene scene)
Adds keybinding listeners to the scene to handle key events for the walkthrough. |
| private Optional | |
| private void | |
| private void | |
| private QuitButtonPosition | |
| public void | |
| public void | showPanel(PanelStep
The step to display. step, @Nullable Node The node to anchor highlight to (e.g., BackdropHighlight may poke a hole at the position of the node), or null to use fallback effect of corresponding position. node, Runnable A runnable to execute before navigating to the next step. More precisely, the runnable to execute immediately upon the button press before Walkthrough's state change to the next step and before the original button/node's action is executed. Usually used to prevent automatic revert from unexpected reverting to the previous step when the node is not yet ready to be displayed beforeNavigate)Display a Panel for the given step at the specified node. |
| public void | showTooltip(TooltipStep
The step to display. step, @Nullable Node The node to anchor the tooltip to, or null to show it at the window. The node is expected to be positionable by node, Runnable WalkthroughUtils#cannotPositionNode(Node) standard.A runnable to execute before navigating to the next step. beforeNavigate)Display a tooltip for the given step at the specified node. |
| cleanupTasks | back to summary |
|---|---|
| private final List<Runnable> cleanupTasks Mutable list of clean up tasks that are executed when the overlay is hidden or detached. | |
| currentContentNode | back to summary |
|---|---|
| private @Nullable Node currentContentNode | |
| keyBindingRepository | back to summary |
|---|---|
| private final KeyBindingRepository keyBindingRepository | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| pane | back to summary |
|---|---|
| private final WalkthroughPane pane | |
| POPOVER_ARROW_GAP | back to summary |
|---|---|
| private static final double POPOVER_ARROW_GAP Negative = distance between the arrow tip and the target node. The popup window is ~22px larger than the visible box (arrow plus drop shadow) and swallows clicks in that margin, so with the default overlap of 4px an icon button next to the arrow could not be clicked. | |
| POPOVER_CREATION_DELAY | back to summary |
|---|---|
| private static final int POPOVER_CREATION_DELAY | |
| quitButton | back to summary |
|---|---|
| private @Nullable Button quitButton | |
| renderer | back to summary |
|---|---|
| private final WalkthroughRenderer renderer | |
| showing | back to summary |
|---|---|
| private boolean showing | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| walkthrough | back to summary |
|---|---|
| private final Walkthrough walkthrough | |
| window | back to summary |
|---|---|
| private final Window window | |
| WindowOverlay | back to summary |
|---|---|
| public WindowOverlay(Window window, WalkthroughPane pane, Walkthrough walkthrough) | |
| addQuitButton | back to summary |
|---|---|
| private void addQuitButton(VisibleComponent component) | |
| createPopover | back to summary |
|---|---|
| private PopOver createPopover(TooltipStep step, Runnable beforeNavigate) | |
| createQuitButton | back to summary |
|---|---|
| private Button createQuitButton() | |
| detach | back to summary |
|---|---|
| public void detach() Detaches the overlay. The pane it drew into belongs to the window and stays. | |
| hide | back to summary |
|---|---|
| public void hide() Hide the overlay and clean up any resources. | |
| listenKeybindings | back to summary |
|---|---|
| private void listenKeybindings(EventTarget target, Scene scene) Adds keybinding listeners to the scene to handle key events for the walkthrough. This method is necessary because:
| |
| mapToArrowLocation | back to summary |
|---|---|
| private Optional | |
| positionQuitButton | back to summary |
|---|---|
| private void positionQuitButton(Button button, QuitButtonPosition position) | |
| removeQuitButton | back to summary |
|---|---|
| private void removeQuitButton() | |
| resolveQuitButtonPosition | back to summary |
|---|---|
| private QuitButtonPosition resolveQuitButtonPosition(VisibleComponent component) | |
| showPanel | back to summary |
|---|---|
| public void showPanel(PanelStep step, Runnable beforeNavigate) Convenience method to show a panel for the given step without a node. See | |
| showPanel | back to summary |
|---|---|
| public void showPanel(PanelStep step, @Nullable Node node, Runnable beforeNavigate) Display a Panel for the given step at the specified node.
| |
| showTooltip | back to summary |
|---|---|
| public void showTooltip(TooltipStep step, @Nullable Node node, Runnable beforeNavigate) Display a tooltip for the given step at the specified node. Note on Implementation Note The requirement for the node to be positionable by
| |