Interface DialogBuilder<B extends DialogBuilder<B>>
- Type Parameters:
B- the Builder type
- All Known Subinterfaces:
ActionDialogBuilder<B>, CalendarDialogBuilder, ComboBoxSelectionDialogBuilder<T>, ComponentDialogBuilder, EntityDialogs.AddEntityDialogBuilder, EntityDialogs.EditAttributeDialogBuilder<T>, EntityDialogs.EditEntityDialogBuilder, EntityDialogs.EntitySelectionDialogBuilder, ExceptionDialogBuilder, FileSelectionDialogBuilder, InputDialogBuilder<T>, ListSelectionDialogBuilder<T>, LoginDialogBuilder, OkCancelDialogBuilder, ProgressDialog.Builder, ProgressWorkerDialogBuilder<T,V>, SelectionDialogBuilder<T, B>
- 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(@Nullable Component component) Sets the dialog owner as the parent window of the given component.Sets the dialog owner as the given window.title(@Nullable Observable<String> title) undecorated(boolean undecorated) windowFocusListener(WindowFocusListener windowFocusListener)
-
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
-
location
OverrideslocationRelativeTo(Component).- Parameters:
location- the location of the dialog- Returns:
- this builder instance
-
title
-
title
- Parameters:
title- an observable for a dynamic dialog title, null for the default title, if the dialog has one- Returns:
- this builder instance
-
icon
-
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
-
undecorated
- Parameters:
undecorated- true if the dialog should be undecorated- Returns:
- this builder instance
-
windowFocusListener
- Parameters:
windowFocusListener- a window focus listener- Returns:
- this builder instance
-
onBuild
-