Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface DialogBuilder<B extends DialogBuilder<B>>
- Type Parameters:
B- the Builder type
- All Known Subinterfaces:
ActionDialogBuilder<B>,CalendarDialogBuilder,ComponentDialogBuilder,ExceptionDialogBuilder,FileSelectionDialogBuilder,InputDialogBuilder<T>,LoginDialogBuilder,OkCancelDialogBuilder,ProgressDialog.Builder,ProgressWorkerDialogBuilder<T,,V> SelectionDialogBuilder<T>
- All Known Implementing Classes:
AbstractDialogBuilder
public interface DialogBuilder<B extends DialogBuilder<B>>
A base interface for JDialog builders
-
Method Summary
Modifier and TypeMethodDescriptionkeyEvent(KeyEvents.Builder keyEventBuilder) Enables the key event defined by the givenKeyEvents.Builderon the dialog root pane.OverrideslocationRelativeTo(Component).locationRelativeTo(Component component) Sets the dialog owner as the parent window of the given component.Sets the dialog owner as the given window.titleProvider(is.codion.common.value.ValueObserver<String> titleProvider)
-
Method Details
-
owner
Sets the dialog owner as the given window. Also sets thelocationRelativeTo(Component)to the given window in case one has not been specified.- Parameters:
owner- the dialog owner- Returns:
- this DialogBuilder instance
-
owner
Sets the dialog owner as the parent window of the given component. Also sets thelocationRelativeTo(Component)using the given component in case one has not been specified.- Parameters:
owner- the dialog parent component- Returns:
- this builder instance
-
locationRelativeTo
- Parameters:
component- the component for the relative location- Returns:
- this builder instance
-
location
OverrideslocationRelativeTo(Component).- Parameters:
location- the location of the dialog- Returns:
- this builder instance
-
title
- Parameters:
title- the dialog title- Returns:
- this builder instance
-
titleProvider
- Parameters:
titleProvider- a value observer for a dynamic dialog title- Returns:
- this builder instance
-
icon
- Parameters:
icon- the dialog icon- Returns:
- this builder instance
-
keyEvent
Enables the key event defined by the givenKeyEvents.Builderon the dialog root pane.- Parameters:
keyEventBuilder- a key event builder to enable on the dialog root pane- Returns:
- this builder instance
-