Package org.fuchss.traylauncher
Class SpringBootTrayLauncherConfiguration
java.lang.Object
org.fuchss.traylauncher.SpringBootTrayLauncherConfiguration
The configuration for
SpringBootTrayLauncher.- Author:
- Dominik Fuchss
-
Constructor Summary
ConstructorsConstructorDescriptionSpringBootTrayLauncherConfiguration(String name, String mainUrl, Image trayIcon) Set the name, main url (entry point to - seeisAutoOpenMainUrl()), and an image for the tray.SpringBootTrayLauncherConfiguration(String name, String mainUrl, InputStream trayIcon) Set the name, main url (entry point to - seeisAutoOpenMainUrl()), and an image for the tray. -
Method Summary
Modifier and TypeMethodDescriptionGet additional url entries to be added to the tray icon context menu.Get the main url of the application.getName()Get the name of the application.Get the image for the tray icon.booleanIndicates whether the application shall be opened in the browser upon start completed.setAdditionalUrls(List<UrlEntry> entries) Setter forgetAdditionalUrls().setAutoOpenMainUrl(boolean autoOpenMainUrl) Setter forisAutoOpenMainUrl().setMainUrl(String mainUrl) Setter forgetMainUrl().Setter forgetName().setTrayIconImage(Image trayIcon) Setter forgetTrayIconImage().setTrayIconImage(InputStream trayIcon) Setter forgetTrayIconImage().
-
Constructor Details
-
SpringBootTrayLauncherConfiguration
Set the name, main url (entry point to - seeisAutoOpenMainUrl()), and an image for the tray.- Parameters:
name- the name of the applicationmainUrl- the main urltrayIcon- the tray icon image as image
-
SpringBootTrayLauncherConfiguration
Set the name, main url (entry point to - seeisAutoOpenMainUrl()), and an image for the tray.- Parameters:
name- the name of the applicationmainUrl- the main urltrayIcon- the tray icon image as input stream
-
-
Method Details
-
getName
Get the name of the application.- Returns:
- the name of the application
-
getMainUrl
Get the main url of the application. This url will be opened in a browser unlesssetAutoOpenMainUrl(boolean)is set tofalse.- Returns:
- the main url
-
getTrayIconImage
Get the image for the tray icon.- Returns:
- the image for the tray icon
-
getAdditionalUrls
Get additional url entries to be added to the tray icon context menu.- Returns:
- additional urls for the context menu
-
isAutoOpenMainUrl
public boolean isAutoOpenMainUrl()Indicates whether the application shall be opened in the browser upon start completed.- Returns:
- an indicator for automatic opening of the application upon start
-
setName
Setter forgetName().- Parameters:
name- the new name- Returns:
this
-
setMainUrl
Setter forgetMainUrl().- Parameters:
mainUrl- the new main url- Returns:
this
-
setTrayIconImage
Setter forgetTrayIconImage().- Parameters:
trayIcon- the new tray icon image- Returns:
this
-
setTrayIconImage
Setter forgetTrayIconImage().- Parameters:
trayIcon- the new tray icon image- Returns:
this
-
setAdditionalUrls
Setter forgetAdditionalUrls().- Parameters:
entries- the new additional url entries- Returns:
this
-
setAutoOpenMainUrl
Setter forisAutoOpenMainUrl().- Parameters:
autoOpenMainUrl- the new value forisAutoOpenMainUrl()- Returns:
this
-