Package uibooster
Klasse UiBooster
java.lang.Object
uibooster.UiBooster
The UiBooster class it the main entry point to create a new dialog.
It provides all implemented dialogs.
-
Konstruktorübersicht
KonstruktorBeschreibungUiBooster
(UiBoosterOptions options) UiBooster
(UiBoosterOptions.Theme options) UiBooster
(UiBoosterOptions.Theme options, String iconPath) UiBooster
(UiBoosterOptions.Theme options, String iconPath, Font font) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateForm
(String title) Creates an object for building a form with selections, textfields and textareas.void
createNotification
(String message, String title) Creates a notification window with title and message.createTrayMenu
(String title, String iconPath) Creates an object for building a system tray menu.createTrayMenu
(String title, String iconPath, Runnable onIconClicked) Creates an object for building a system tray menu.showColorPicker
(String message, String title) Shows a simple color picker to select an RGB value.showColorPicker
(String message, String title, Color initialColor) Shows a simple color picker to select an RGB value with an initial color valueshowColorPickerAndGetRGB
(String message, String title) Shows a simple color picker to select an RGB value.showColorPickerAndGetRGB
(String message, String title, Color initialColor) Shows a simple color picker to select an RGB value with an initial color value.boolean
showConfirmDialog
(String message, String title) Shows a confirm dialog and blocks until a decision is selected.void
showConfirmDialog
(String message, String title, Runnable onConfirm, Runnable onDecline) Shows a confirm dialog and blocks until a decision is selected.showDatePicker
(String message, String title) Shows a date picker dialog to choose a specific date.Shows a directory selection dialog.showDirectorySelectionFromPath
(String currentDirectoryPath) Shows a directory selection dialog starting from a specific directory path.void
showErrorDialog
(String errorMessage, String title) Shows an error dialog and blocks until the ok button was clicked.void
showException
(String message, String title, Exception exception) Shows an exception stack trace in a dialog The dialogs blocks the process until it's closed.Shows a selection dialog for files and directories.showFileOrDirectorySelection
(String description, String... extensions) Shows a selection dialog for files and directories.showFileOrDirectorySelectionFromPath
(String currentDirectoryPath) Shows a selection dialog for files and directories starting from a specific directory path.showFileOrDirectorySelectionFromPath
(String currentDirectoryPath, String description, String... extensions) Shows a selection dialog for files and directories starting from a specific directory path.Shows a file selection dialog.showFileSelection
(String description, String... extensions) Shows a file selection dialog.showFileSelectionFromPath
(String currentDirectoryPath) Shows a file selection dialog starting from a specific directory path.showFileSelectionFromPath
(String currentDirectoryPath, String description, String... extensions) Shows a file selection dialog starting from a specific directory path.showFontChooser
(String message, String title) Shows a simple font chooser to select an installed font.showFontChooser
(String message, String title, Font initialFont) Shows a simple font chooser to select a font with an initial font valuevoid
showHtmlText
(String message, String title, String htmlContent) Shows a scrollable text area which allows HTML 3.2 in a dialog.void
showHtmlText
(String message, String title, String htmlContent, int width, int height) Shows a scrollable text area which allows HTML 3.2 in a dialog.void
showInfoDialog
(String infoMessage) Shows an info dialog and blocks until the ok button was clicked.showList
(String message, String title, ListElement... elements) Shows a list with a headline, a message part and an image.showList
(String message, String title, SelectElementListener onSelect, ListElement... elements) Shows a list with a headline, a message part and an image.showLogin
(String message, String title, String usernameLabel, String passwordLabel, String loginButtonLabel, String cancelButtonLabel) Shows a login dialog with username and password.showMultipleSelection
(String message, String title, boolean hideFilter, String... elements) Shows a fiterable list with multiple selectable elements in a dialog.showMultipleSelection
(String message, String title, String... elements) Shows a fiterable list with multiple selectable elements in a dialog.showPasswordDialog
(String message, String title) Shows a dialog with a password input field.showPicture
(String title, File image) Creates a resizable window whichs shows the given image.showPictures
(String title, String[] images) Creates a resizable window which shows the given images as a gallery.showPictures
(String title, List<File> images) Creates a resizable window which shows the given images as a gallery.showProgressDialog
(String message, String title, int min, int max) Shows dialog with progressbar and changeable message.showSelectionDialog
(String message, String title, String... possibilities) Shows an info dialog and blocks until the ok button was clicked.showSelectionDialog
(String message, String title, List<String> possibilities) Shows an info dialog and blocks until the ok button was clicked.showSlider
(String message, String title, int min, int max, int init) Shows a dialog with a customizable slider, to ask the user for amounts.showSlider
(String message, String title, int min, int max, int init, int majorTick, int minorTick) Shows a dialog with a customizable slider, to ask the user for amounts.showSplashscreen
(String imagePath) Shows an undecorated window with a given image as splash screen.showSplashscreen
(String imagePath, int lifeTimeInMillis) Shows an undecorated window with a given image as splash screen.String[][]
Shows a dialog with a table view.String[][]
Shows a dialog with a table view.String[][]
showTableImmutable
(String[][] data, String[] header, String title) Shows a dialog with a table view.String[][]
showTableImmutable
(String[][] data, List<String> header, String title) Shows a dialog with a table view.void
showTextArea
(String message, String title, String content) Shows a scrollable and editable text area with 30 rows and 80 columns in a dialog.void
showTextArea
(String message, String title, String content, int rows, int columns, boolean editable) Shows a scrollable and editable text area with 30 rows and 80 columns in a dialog.showTextInputDialog
(String message) Shows a dialog with text input field.showWaitingDialog
(String message, String title) Shows a waiting dialog with a changeable message.showWaitingDialog
(String message, String title, boolean decorated) Shows a waiting dialog with a changeable message.showWaitingDialog
(String message, String title, String largeText) Shows a waiting dialog with a changeable message and a large (scrollable) message area.showWaitingDialog
(String message, String title, String largeText, boolean decorated) Shows a waiting dialog with a changeable message.void
showWarningDialog
(String warningMessage, String title) Shows a warning dialog and blocks until the ok button was clicked.
-
Konstruktordetails
-
UiBooster
public UiBooster() -
UiBooster
-
UiBooster
-
UiBooster
-
UiBooster
-
UiBooster
-
-
Methodendetails
-
showInfoDialog
Shows an info dialog and blocks until the ok button was clicked. '\n' is allowed as newline character for the info message.- Parameter:
infoMessage
- expects the info message
-
showWarningDialog
Shows a warning dialog and blocks until the ok button was clicked. '\n' is allowed as newline character for the warn message.- Parameter:
warningMessage
- expects the warn messagetitle
- expects the title for the window
-
showErrorDialog
Shows an error dialog and blocks until the ok button was clicked. '\n' is allowed as newline character for the error message.- Parameter:
errorMessage
- expects the error messagetitle
- expects the title for the window
-
showTextInputDialog
Shows a dialog with text input field.- Parameter:
message
- expects a message or question for the user.- Gibt zurück:
- the user input or null on cancel
-
showPasswordDialog
Shows a dialog with a password input field.- Parameter:
message
- expects a message or question for the user.title
- expects the window title- Gibt zurück:
- the typed password or null on cancel
-
showConfirmDialog
Shows a confirm dialog and blocks until a decision is selected. '\n' is allowed as newline character for the message.- Parameter:
message
- expects the messagetitle
- expects the window titleonConfirm
- expects a behaviour for a conformationonDecline
- expects a behaviour for a declination
-
showConfirmDialog
Shows a confirm dialog and blocks until a decision is selected. '\n' is allowed as newline character for the message.- Parameter:
message
- expects the messagetitle
- expects the window title- Gibt zurück:
- true if the dialog was confirmed by user, otherwise false
-
showSelectionDialog
Shows an info dialog and blocks until the ok button was clicked. '\n' is allowed as newline character for the info message.- Parameter:
message
- expects the messagetitle
- expects the window titlepossibilities
- expects a list with possibilities- Gibt zurück:
- the selection element form possibilities list or null on close
-
showSelectionDialog
Shows an info dialog and blocks until the ok button was clicked. '\n' is allowed as newline character for the info message.- Parameter:
message
- expects the messagetitle
- expects the window titlepossibilities
- expects a list with possibilities- Gibt zurück:
- the selection element form possibilities list or null on close
-
showColorPicker
Shows a simple color picker to select an RGB value.- Parameter:
message
- optional message above the color pickertitle
- expects a window title- Gibt zurück:
- the selected color, on close it returns null.
-
showColorPicker
Shows a simple color picker to select an RGB value with an initial color value- Parameter:
message
- optional message above the color pickertitle
- expects a window titleinitialColor
- optional color value which should be already selected on start- Gibt zurück:
- the selected color, on close it returns null.
-
showColorPickerAndGetRGB
Shows a simple color picker to select an RGB value.- Parameter:
message
- optional message above the color pickertitle
- expects a window title- Gibt zurück:
- the selected color as int value, on close it returns null.
-
showColorPickerAndGetRGB
Shows a simple color picker to select an RGB value with an initial color value.- Parameter:
message
- optional message above the color pickertitle
- expects a window titleinitialColor
- optional color value which should be already selected on start- Gibt zurück:
- the selected color as int value, on close it returns null.
-
showFontChooser
Shows a simple font chooser to select an installed font.- Parameter:
message
- optional message above the font choosertitle
- expects a window title- Gibt zurück:
- the selected font, on close it returns null.
-
showFontChooser
Shows a simple font chooser to select a font with an initial font value- Parameter:
message
- optional message above the font choosertitle
- expects a window titleinitialFont
- optional font which should be already selected on start- Gibt zurück:
- the selected font, on close it returns null.
-
showFileSelection
Shows a file selection dialog. Only files are shown and selectable- Gibt zurück:
- returns the selection file or null on cancel
-
showFileSelectionFromPath
Shows a file selection dialog starting from a specific directory path. Only files are shown and selectable- Parameter:
currentDirectoryPath
- full directory path for opening the dialog box in- Gibt zurück:
- returns the selection file or null on cancel
-
showFileSelection
Shows a file selection dialog. Only files are shown and selectable- Parameter:
description
- expects a short and readable description for the extensionsextensions
- expects one or more allowed extensions without the dot (f.e. bmp, png, pdf)- Gibt zurück:
- returns the selection file or null on cancel
-
showFileSelectionFromPath
public File showFileSelectionFromPath(String currentDirectoryPath, String description, String... extensions) Shows a file selection dialog starting from a specific directory path. Only files are shown and selectable- Parameter:
currentDirectoryPath
- full directory path for opening the dialog box indescription
- expects a short and readable description for the extensionsextensions
- expects one or more allowed extensions without the dot (f.e. bmp, png, pdf)- Gibt zurück:
- returns the selection file or null on cancel
-
showDirectorySelection
Shows a directory selection dialog. Only directories are shown and selectable- Gibt zurück:
- returns the selection directory or null on cancel
-
showDirectorySelectionFromPath
Shows a directory selection dialog starting from a specific directory path. Only directories are shown and selectable- Parameter:
currentDirectoryPath
- full directory path for opening the dialog box in- Gibt zurück:
- returns the selection directory or null on cancel
-
showFileOrDirectorySelection
Shows a selection dialog for files and directories.- Gibt zurück:
- returns the selection or null on cancel
-
showFileOrDirectorySelectionFromPath
Shows a selection dialog for files and directories starting from a specific directory path.- Parameter:
currentDirectoryPath
- full directory path for opening the dialog box in- Gibt zurück:
- returns the selection or null on cancel
-
showFileOrDirectorySelection
Shows a selection dialog for files and directories.- Parameter:
description
- expects a short and readable description for the extensionsextensions
- expects one or more allowed extensions without the dot (f.e. bmp, png, pdf)- Gibt zurück:
- returns the selection or null on cancel
-
showFileOrDirectorySelectionFromPath
public File showFileOrDirectorySelectionFromPath(String currentDirectoryPath, String description, String... extensions) Shows a selection dialog for files and directories starting from a specific directory path.- Parameter:
currentDirectoryPath
- full directory path for opening the dialog box indescription
- expects a short and readable description for the extensionsextensions
- expects one or more allowed extensions without the dot (f.e. bmp, png, pdf)- Gibt zurück:
- returns the selection or null on cancel
-
showLogin
public LoginCredentials showLogin(String message, String title, String usernameLabel, String passwordLabel, String loginButtonLabel, String cancelButtonLabel) Shows a login dialog with username and password.- Gibt zurück:
- returns the login data or null on cancel.
-
showWaitingDialog
Shows a waiting dialog with a changeable message. This dialog does not wait for any user input. Its decoupled from the rest of the application.- Parameter:
message
- optional message to the usertitle
- expects a title for the window- Gibt zurück:
- returns the dialog object to change the message and hide the dialog as needed.
-
showWaitingDialog
Shows a waiting dialog with a changeable message. This dialog does not wait for any user input. Its decoupled from the rest of the application.- Parameter:
message
- optional message to the usertitle
- expects a title for the windowdecorated
- hides or shows the window title bar (true = show)- Gibt zurück:
- returns the dialog object to change the message and hide the dialog as needed.
-
showWaitingDialog
Shows a waiting dialog with a changeable message and a large (scrollable) message area. This dialog does not wait for any user input. Its decoupled from the rest of the application.- Parameter:
message
- optional message to the usertitle
- expects a title for the windowlargeText
- optional large message- Gibt zurück:
- returns the dialog object to change the message and hide the dialog as needed.
-
showWaitingDialog
public WaitingDialog showWaitingDialog(String message, String title, String largeText, boolean decorated) Shows a waiting dialog with a changeable message. This dialog does not wait for any user input. Its decoupled from the rest of the application.- Parameter:
message
- optional message to the usertitle
- expects a title for the windowlargeText
- optional large messagedecorated
- hides or shows the window title bar (true = show)- Gibt zurück:
- returns the dialog object to change the message and hide the dialog as needed.
-
showProgressDialog
Shows dialog with progressbar and changeable message. The dialog does not wait for any user input. Its decoupled form the rest of the application.- Parameter:
message
- optional message to the usertitle
- expects a title for the windowmin
- expects the minimal value for the progressmax
- expects the maximal value for the progress- Gibt zurück:
- returns the dialog object to change the message and the progress and hide the dialog as needed.
-
showDatePicker
Shows a date picker dialog to choose a specific date.- Parameter:
message
- expects a messagetitle
- expects a title for the window- Gibt zurück:
- the selected date or null on cancel
-
showTable
Shows a dialog with a table view. It allows to change cell values, add rows and remove rows. The dialogs wait for user input.- Parameter:
data
- expects the values in rows of columns -> [row_n][column_n]header
- expects the labels for the columnstitle
- expects a title for the window- Gibt zurück:
- the accepted or changed data or null on cancel.
-
showTable
Shows a dialog with a table view. It allows to change cell values, add rows and remove rows. The dialogs wait for user input.- Parameter:
data
- expects the values in rows of columns -> [row_n][column_n]header
- expects the labels for the columnstitle
- expects a title for the window- Gibt zurück:
- the accepted or changed data or null on cancel.
-
showTableImmutable
Shows a dialog with a table view. The table values are not changeable. The dialogs wait for user input.- Parameter:
data
- expects the values in rows of columns -> [row_n][column_n]header
- expects the labels for the columnstitle
- expects a title for the window- Gibt zurück:
- the accepted or changed data or null on cancel.
-
showTableImmutable
Shows a dialog with a table view. The table values are not changeable. The dialogs wait for user input.- Parameter:
data
- expects the values in rows of columns -> [row_n][column_n]header
- expects the labels for the columnstitle
- expects a title for the window- Gibt zurück:
- the accepted or changed data or null on cancel.
-
showPicture
Creates a resizable window whichs shows the given image. The image is scaled with the correct ratio. The dialogs blocks the process until it's closed.- Parameter:
title
- expects a title for the windowimage
- expects an image (JPG, PNG and BMP are supported).- Gibt zurück:
- the object to control the picture gallery dialog
-
showPictures
Creates a resizable window which shows the given images as a gallery. The images are scaled with the correct ratio. The user can step forward and backwards thru the gallery. The dialogs blocks the process until it's closed.- Parameter:
title
- expects a title for the windowimages
- expects a list of images (JPG, PNG and BMP are supported).- Gibt zurück:
- the object to control the picture gallery dialog
-
showPictures
Creates a resizable window which shows the given images as a gallery. The images are scaled with the correct ratio. The user can step forward and backwards thru the gallery. The dialogs blocks the process until it's closed.- Parameter:
title
- expects a title for the windowimages
- expects a list of images (JPG, PNG and BMP are supported).- Gibt zurück:
- the object to control the picture gallery dialog
-
createForm
Creates an object for building a form with selections, textfields and textareas. The dialogs blocks the process until it's closed.- Parameter:
title
- expects a title for the window- Gibt zurück:
- the object to create and control the form dialog
-
createTrayMenu
Creates an object for building a system tray menu.- Parameter:
title
- expects a title for the tray symboleiconPath
- expects a path for the tray icon- Gibt zurück:
- the object to create and control the system tray
-
createTrayMenu
Creates an object for building a system tray menu.- Parameter:
title
- expects a title for the tray symboleiconPath
- expects a path for the tray icononIconClicked
- expects an action which starts on clicking the tray icon- Gibt zurück:
- the object to create and control the system tray
-
createNotification
Creates a notification window with title and message. The appearance and the support depends on the used OS.- Parameter:
message
- expects a message for the notificaitontitle
- expects a title for the notification
-
showSlider
Shows a dialog with a customizable slider, to ask the user for amounts. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this selectiontitle
- expects a title for the windowmin
- expects the lowest allowed valuemax
- expects the highest allowed valueinit
- expects the number to start with- Gibt zurück:
- the selected value or null if the dialog was closed
-
showSlider
public Integer showSlider(String message, String title, int min, int max, int init, int majorTick, int minorTick) Shows a dialog with a customizable slider, to ask the user for amounts. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this selectiontitle
- expects a title for the windowmin
- expects the lowest allowed valuemax
- expects the highest allowed valueinit
- expects the number to start withmajorTick
- expects the number of steps for the labeled ticksminorTick
- expects the number of steps for each tick- Gibt zurück:
- the selected value or null if the dialog was closed
-
showSplashscreen
Shows an undecorated window with a given image as splash screen. PNG files with transparency are supported.- Parameter:
imagePath
- expects the path to splash screen image- Gibt zurück:
- a splash screen object to hide or show the screen.
-
showSplashscreen
Shows an undecorated window with a given image as splash screen. PNG files with transparency are supported.- Parameter:
imagePath
- expects the path to splash screen imagelifeTimeInMillis
- defines the time for showing the splash screen in milli seconds, after that the screen closes automatically- Gibt zurück:
- a splash screen object to hide or show the screen.
-
showList
Shows a list with a headline, a message part and an image. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this selectiontitle
- expects a title for the windowelements
- expects the elements used for the list- Gibt zurück:
- the selected value or null if the dialog was closed
-
showList
public ListElement showList(String message, String title, SelectElementListener onSelect, ListElement... elements) Shows a list with a headline, a message part and an image. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this selectiontitle
- expects a title for the windowonSelect
- expects a callback implementation when a elements was selectedelements
- expects the elements used for the list- Gibt zurück:
- the selected value or null if the dialog was closed
-
showException
Shows an exception stack trace in a dialog The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning exceptiontitle
- expects a title for the windowexception
- excepts an exception to show the stacktrace
-
showTextArea
Shows a scrollable and editable text area with 30 rows and 80 columns in a dialog. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this texttitle
- expects a title for the windowcontent
- expects the content/text for the text area
-
showTextArea
public void showTextArea(String message, String title, String content, int rows, int columns, boolean editable) Shows a scrollable and editable text area with 30 rows and 80 columns in a dialog. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this texttitle
- expects a title for the windowcontent
- expects the content/text for the text arearows
- expects the number of rows for the text area (height)columns
- expects the number of columns for the text area (width)editable
- if true the text area could changed by user, otherwise its immutable
-
showHtmlText
Shows a scrollable text area which allows HTML 3.2 in a dialog. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this texttitle
- expects a title for the windowhtmlContent
- expects the content/text for the text area
-
showHtmlText
Shows a scrollable text area which allows HTML 3.2 in a dialog. The dialogs blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this texttitle
- expects a title for the windowhtmlContent
- expects the content/text for the text areawidth
- expects the width in pixel which the component has to used preferredheight
- expects the height in pixel which the component has to used preferred
-
showMultipleSelection
Shows a fiterable list with multiple selectable elements in a dialog. The dialog blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this selectiontitle
- expects a title for the windowelements
- expects a list of selectable elements- Gibt zurück:
- the selected elements
-
showMultipleSelection
public List<String> showMultipleSelection(String message, String title, boolean hideFilter, String... elements) Shows a fiterable list with multiple selectable elements in a dialog. The dialog blocks the process until it's closed.- Parameter:
message
- expects a message for the meaning of this selectiontitle
- expects a title for the windowhideFilter
- if true, the filter text field is hiddenelements
- expects a list of selectable elements- Gibt zurück:
- the selected elements
-