Dialog containing command links.
command link buttons that represent the different choices:
CommandLinksButtonType restartLink = new CommandLinksButtonType("Restart the program", false);
CommandLinksButtonType closeLink = new CommandLinksButtonType("Close the program", false);
CommandLinksButtonType waitLink = new CommandLinksButtonType("Wait for the program to respond",
"This is the default option", true);
List<CommandLinksButtonType> links = Arrays.asList(restartLink, closeLink, waitLink);CommandLinksDialog dialog = new CommandLinksDialog(links);dialog.setTitle("Microsoft Windows");
dialog.getDialogPane().setContentText("Windows Explorer is not responding");| Modifier and Type | Class and Description |
|---|---|
| public static class | CommandLinksDialog.
Command link type buttons to be used in |
| Modifier and Type | Field and Description |
|---|---|
| private Label | |
| private static final int | |
| private GridPane | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private Button | |
| private void | |
| private void |
| contentTextLabel | back to summary |
|---|---|
| private Label contentTextLabel | |
| gapSize | back to summary |
|---|---|
| private static final int gapSize | |
| grid | back to summary |
|---|---|
| private GridPane grid | |
| typeMap | back to summary |
|---|---|
| private final Map<ButtonType, CommandLinksDialog. | |
| CommandLinksDialog | back to summary |
|---|---|
| public CommandLinksDialog(CommandLinksDialog. | |
| CommandLinksDialog | back to summary |
|---|---|
| public CommandLinksDialog(List<CommandLinksDialog. | |
| addLinkToDialog | back to summary |
|---|---|
| private void addLinkToDialog(DialogPane dialogPane, CommandLinksDialog. | |
| createCommandLinksButton | back to summary |
|---|---|
| private Button createCommandLinksButton(ButtonType buttonType) | |
| updateContentText | back to summary |
|---|---|
| private void updateContentText() | |
| updateGrid | back to summary |
|---|---|
| private void updateGrid() | |
Command link type buttons to be used in CommandLinksDialogs.
| Modifier and Type | Field and Description |
|---|---|
| private final ButtonType | |
| private final Node | |
| private boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static ButtonBar. | |
| private static CommandLinksDialog. | |
| public ButtonType | |
| public Node | |
| public String |
| buttonType | back to summary |
|---|---|
| private final ButtonType buttonType | |
| graphic | back to summary |
|---|---|
| private final Node graphic | |
| isHidden | back to summary |
|---|---|
| private boolean isHidden | |
| longText | back to summary |
|---|---|
| private final String longText | |
| CommandLinksButtonType | back to summary |
|---|---|
| public CommandLinksButtonType(String text, boolean isDefault) | |
| CommandLinksButtonType | back to summary |
|---|---|
| public CommandLinksButtonType(String text, String longText, boolean isDefault) | |
| CommandLinksButtonType | back to summary |
|---|---|
| public CommandLinksButtonType(String text, String longText, Node graphic, boolean isDefault) | |
| CommandLinksButtonType | back to summary |
|---|---|
| private CommandLinksButtonType(ButtonType buttonType) | |
| CommandLinksButtonType | back to summary |
|---|---|
| private CommandLinksButtonType(ButtonType buttonType, String longText) | |
| CommandLinksButtonType | back to summary |
|---|---|
| private CommandLinksButtonType(ButtonType buttonType, String longText, Node graphic) | |
| buildButtonData | back to summary |
|---|---|
| private static ButtonBar. | |
| buildHiddenCancelLink | back to summary |
|---|---|
| private static CommandLinksDialog. | |
| getButtonType | back to summary |
|---|---|
| public ButtonType getButtonType() | |
| getGraphic | back to summary |
|---|---|
| public Node getGraphic() | |
| getLongText | back to summary |
|---|---|
| public String getLongText() | |