- All Implemented Interfaces:
EventTarget
Dialog containing command links.
Like radio buttons, command links are always presented in sets, never individually.
Usage example:
- Create a list of
command link buttonsthat 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); - Initialize the dialog with the list of command link buttons:
CommandLinksDialog dialog = new CommandLinksDialog(links); - Add dialog title and header content text as appropriate:
dialog.setTitle("Microsoft Windows"); dialog.getDialogPane().setContentText("Windows Explorer is not responding");
-
Property Summary
Properties inherited from class javafx.scene.control.Dialog
contentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCommand link type buttons to be used inCommandLinksDialogs. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class javafx.scene.control.Dialog
buildEventDispatchChain, close, contentTextProperty, dialogPaneProperty, getContentText, getDialogPane, getGraphic, getHeaderText, getHeight, getModality, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOwner, getResult, getResultConverter, getTitle, getWidth, getX, getY, graphicProperty, headerTextProperty, heightProperty, hide, initModality, initOwner, initStyle, isResizable, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, resizableProperty, resultConverterProperty, resultProperty, setContentText, setDialogPane, setGraphic, setHeaderText, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setResizable, setResult, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty
-
Constructor Details
-
CommandLinksDialog
-
CommandLinksDialog
-