Class CommandLinksDialog

java.lang.Object
javafx.scene.control.Dialog<javafx.scene.control.ButtonType>
org.controlsfx.dialog.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");
  • 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 Classes
    Modifier and Type
    Class
    Description
    static class 
    Command link type buttons to be used in CommandLinksDialogs.
  • Constructor Summary

    Constructors
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait