Application#launchers()
| Modifier and Type | Class and Description |
|---|---|
| public static record | Launcher.
Default implementation of |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the key in the resource bundle referring to the default launcher iconGets key in the resource bundle of |
| public String | |
| public default String | Returns: the name of the executable file of this launcherGets the name of the executable file of this launcher without file extension. |
| public default String | Returns: the full name of the executable file of this launcherGets the full name of the executable file of this launcher. |
| public default InputStream | Returns: a stream with the template executable file for this launcherOpens a stream with the template executable file for this launcher. |
| public default Optional | Returns: the extension of the executable file of this launcherGets extension of the executable file of this launcher if available or an
empty |
| public Map | Returns: the additional properties for application launcher entries in ".jpackage.xml" fileGets the additional properties for application launcher entries in the app image (".jpackage.xml") file. |
| public List | Returns: the file associations of this launcherGets the file associations of this launcher. |
| public default boolean | Returns: true if this launcher has non-default iconReturns |
| public default boolean | Returns: true if this launcher has a default iconReturns |
| public default boolean | Returns: true if this launcher is requested to have an iconReturns |
| public Optional | |
| public boolean | Returns: true if this launcher should be installed as a serviceReturns |
| public String | |
| public Optional | Returns: the startup information of this launcherGets the startup information of this launcher if available or an empty
|
| defaultIconResourceName | back to summary |
|---|---|
| public String defaultIconResourceName() Gets key in the resource bundle of
| |
| description | back to summary |
|---|---|
| public String description() Gets the description of this launcher.
| |
| executableName | back to summary |
|---|---|
| public default String executableName() Gets the name of the executable file of this launcher without file extension.
| |
| executableNameWithSuffix | back to summary |
|---|---|
| public default String executableNameWithSuffix() Gets the full name of the executable file of this launcher. The full name consists of the name and the extension.
| |
| executableResource | back to summary |
|---|---|
| public default InputStream executableResource() Opens a stream with the template executable file for this launcher. Caller is responsible for close the stream.
| |
| executableSuffix | back to summary |
|---|---|
| public default Optional Gets extension of the executable file of this launcher if available or an
empty | |
| extraAppImageFileData | back to summary |
|---|---|
| public Map Gets the additional properties for application launcher entries in the app image (".jpackage.xml") file. | |
| fileAssociations | back to summary |
|---|---|
| public List Gets the file associations of this launcher.
| |
| hasCustomIcon | back to summary |
|---|---|
| public default boolean hasCustomIcon() Returns A custom icon can be sourced from an external file or from the resource directory.
| |
| hasDefaultIcon | back to summary |
|---|---|
| public default boolean hasDefaultIcon() Returns
| |
| hasIcon | back to summary |
|---|---|
| public default boolean hasIcon() Returns
| |
| icon | back to summary |
|---|---|
| public Optional Gets the icon for this launcher or an empty
| |
| isService | back to summary |
|---|---|
| public boolean isService() Returns
| |
| name | back to summary |
|---|---|
| public String name() Gets the name of this launcher.
| |
| startupInfo | back to summary |
|---|---|
| public Optional Gets the startup information of this launcher if available or an empty
API Note Launchers from an external application image may not have startup information.
| |
Launcher interface.
| Modifier and Type | Field and Description |
|---|---|
| private final String | defaultIconResourceName
Record Component accessed by defaultIconResourceName(). |
| private final String | description
Record Component accessed by description(). |
| private final Map | extraAppImageFileData
Record Component accessed by extraAppImageFileData(). |
| private final List | fileAssociations
Record Component accessed by fileAssociations(). |
| private final Optional | |
| private final boolean | isService
Record Component accessed by isService(). |
| private final String | |
| private final Optional | startupInfo
Record Component accessed by startupInfo(). |
| Access | Constructor and Description |
|---|---|
| public | Stub(String name, Optional<LauncherStartupInfo> startupInfo, List<FileAssociation> fileAssociations, boolean isService, String description, Optional<LauncherIcon> icon, String defaultIconResourceName, Map<String, String> extraAppImageFileData)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | defaultIconResourceName()
Record Component getter of defaultIconResourceName. Implements jdk. Gets key in the resource bundle of
|
| public String | description()
Record Component getter of description. Implements jdk. Gets the description of this launcher.
|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Map | extraAppImageFileData()
Record Component getter of extraAppImageFileData. Implements jdk. Gets the additional properties for application launcher entries in the app image (".jpackage.xml") file.
|
| public List | fileAssociations()
Record Component getter of fileAssociations. Implements jdk. Gets the file associations of this launcher.
|
| public final int | |
| public Optional | icon()
Record Component getter of icon. Implements jdk. Gets the icon for this launcher or an empty
|
| public boolean | isService()
Record Component getter of isService. Implements jdk. Returns
|
| public String | name()
Record Component getter of name. Implements jdk. Gets the name of this launcher.
|
| public Optional | startupInfo()
Record Component getter of startupInfo. Implements jdk. Gets the startup information of this launcher if available or an empty
|
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| defaultIconResourceName | back to summary |
|---|---|
| private final String defaultIconResourceName Record Component accessed by defaultIconResourceName(). | |
| description | back to summary |
|---|---|
| private final String description Record Component accessed by description(). | |
| extraAppImageFileData | back to summary |
|---|---|
| private final Map<String, String> extraAppImageFileData Record Component accessed by extraAppImageFileData(). | |
| fileAssociations | back to summary |
|---|---|
| private final List<FileAssociation> fileAssociations Record Component accessed by fileAssociations(). | |
| icon | back to summary |
|---|---|
| private final Optional<LauncherIcon> icon Record Component accessed by icon(). | |
| isService | back to summary |
|---|---|
| private final boolean isService Record Component accessed by isService(). | |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). | |
| startupInfo | back to summary |
|---|---|
| private final Optional<LauncherStartupInfo> startupInfo Record Component accessed by startupInfo(). | |
| Stub | back to summary |
|---|---|
| public Stub(String name, Optional<LauncherStartupInfo> startupInfo, List<FileAssociation> fileAssociations, boolean isService, String description, Optional<LauncherIcon> icon, String defaultIconResourceName, Map<String, String> extraAppImageFileData) | |
| defaultIconResourceName | back to summary |
|---|---|
| public String defaultIconResourceName() Record Component getter of defaultIconResourceName. Implements jdk. Doc from jdk. Gets key in the resource bundle of | |
| description | back to summary |
|---|---|
| public String description() Record Component getter of description. Implements jdk. Doc from jdk. Gets the description of this launcher. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| extraAppImageFileData | back to summary |
|---|---|
| public Map Record Component getter of extraAppImageFileData. Implements jdk. Doc from jdk. Gets the additional properties for application launcher entries in the app image (".jpackage.xml") file. | |
| fileAssociations | back to summary |
|---|---|
| public List Record Component getter of fileAssociations. Implements jdk. Doc from jdk. Gets the file associations of this launcher. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| icon | back to summary |
|---|---|
| public Optional Record Component getter of icon. Implements jdk. Doc from jdk. Gets the icon for this launcher or an empty | |
| isService | back to summary |
|---|---|
| public boolean isService() Record Component getter of isService. Implements jdk. Doc from jdk. Returns | |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name. Implements jdk. Doc from jdk. Gets the name of this launcher. | |
| startupInfo | back to summary |
|---|---|
| public Optional Record Component getter of startupInfo. Implements jdk. Doc from jdk. Gets the startup information of this launcher if available or an empty
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |