Interface Dialog
- All Superinterfaces:
DialogLike
- All Known Subinterfaces:
DialogDefinition
- All Known Implementing Classes:
ConfirmationDialog, DialogListDialog, DialogReference, MultiActionDialog, NoticeDialog, ServerLinksDialog
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ConfirmationDialogconfirmation(ComponentLike title, ComponentLike message, DialogActionButton yes, DialogActionButton no) Creates a two button dialog.static MultiActionDialogmultiAction(ComponentLike title, List<DialogActionButton> actions) Creates a dialog holding a grid of buttons.static NoticeDialognotice(ComponentLike title, ComponentLike message) Creates a one button dialog whose button readsgui.okand only dismisses the screen.static DialogReferencePoints at a dialog held by the registry.static DialogReferencePoints at a dialog held by the registry rather than describing one.
-
Method Details
-
reference
Points at a dialog held by the registry rather than describing one.- Parameters:
key- the key the dialog is registered under- Returns:
- the reference
- Since:
- 0.1.0
-
reference
Points at a dialog held by the registry.- Parameters:
key- the typed key the dialog is registered under- Returns:
- the reference
- Since:
- 0.1.0
-
notice
Creates a one button dialog whose button readsgui.okand only dismisses the screen.- Parameters:
title- the screen titlemessage- the text to display- Returns:
- the dialog
- Since:
- 0.1.0
-
confirmation
@Contract("_, _, _, _ -> new") static ConfirmationDialog confirmation(ComponentLike title, ComponentLike message, DialogActionButton yes, DialogActionButton no) Creates a two button dialog.- Parameters:
title- the screen titlemessage- the text to displayyes- the button for the positive outcomeno- the button for the negative outcome- Returns:
- the dialog
- Since:
- 0.1.0
-
multiAction
@Contract("_, _ -> new") static MultiActionDialog multiAction(ComponentLike title, List<DialogActionButton> actions) Creates a dialog holding a grid of buttons.- Parameters:
title- the screen titleactions- the buttons to lay out- Returns:
- the dialog
- Since:
- 0.1.0
-