Class CommandLinksDialog

  • All Implemented Interfaces:
    javafx.event.EventTarget

    public class CommandLinksDialog
    extends javafx.scene.control.Dialog<javafx.scene.control.ButtonType>

    Dialog containing command links.

    Command links are similar to radio buttons. They are used to select from a set of mutually exclusive, related choices.
    Like radio buttons, command links are always presented in sets, never individually.
    Usage example:
    1. Create a list of 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);
    2. Initialize the dialog with the list of command link buttons:
      CommandLinksDialog dialog = new CommandLinksDialog(links);
    3. Add dialog title and header content text as appropriate:
      dialog.setTitle("Microsoft Windows");
       dialog.getDialogPane().setContentText("Windows Explorer is not responding");
    • 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