Interface ApplicationService
- All Known Subinterfaces:
MultiApplication
public interface ApplicationService
Client service to
Example:
open
tab applications. (only available inside java-client!)
Example:
servicesBroker
=specialistsBroker
.requestSpecialist
(ServicesBroker.TYPE
); appService =servicesBroker
.getService
(ApplicationService
.class); app =appService
.openApplication
(BrowserApplication
.TYPE, config).getApplication()
;
- Since:
- 4.2.416
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T,
C extends ApplicationTabConfiguration<?>>
@Nullable ApplicationTab<T>getApplication
(ApplicationType<T, C> type, Object tabIdentifier) Returns an application specified by the given type andtabIdentifier
ornull
if it doesn't exists.boolean
Indicates whether the application area (split pane in javaclient) is visible or not.<T,
C extends ApplicationTabConfiguration<?>>
ApplicationTab<T>openApplication
(ApplicationType<T, C> type, C configuration) Opens a client application of specifiedtype
with the givenconfiguration
in a new tab and returns the tab control interface.void
setVisible
(boolean visible) Sets the visibility of the application area (split pane in javaclient).
-
Method Details
-
openApplication
<T,C extends ApplicationTabConfiguration<?>> ApplicationTab<T> openApplication(ApplicationType<T, C> type, @Nullable C configuration) throws IllegalArgumentException, LicenseExceptionOpens a client application of specifiedtype
with the givenconfiguration
in a new tab and returns the tab control interface. Access the application withApplicationTab.getApplication()
.- Type Parameters:
T
- application interface.C
- configuration interface.- Parameters:
type
- application type.configuration
- the configuration for the created application tab - maybenull
- Returns:
- the created application tab of the specified type
- Throws:
IllegalArgumentException
- if the given applicationtype
is unknown.LicenseException
- thrown if the license parameters are insufficient- Since:
- 4.2.416
- See Also:
-
getApplication
@Nullable <T,C extends ApplicationTabConfiguration<?>> @Nullable ApplicationTab<T> getApplication(ApplicationType<T, C> type, Object tabIdentifier) Returns an application specified by the given type andtabIdentifier
ornull
if it doesn't exists.- Parameters:
tabIdentifier
- the identifier associated with the applicationtype
- the type belonginig to the application specified by given tabIdentifier- Returns:
- the application specified by given type and tabIdentifier or
null
- Since:
- 4.2.416
- See Also:
-
isVisible
boolean isVisible()Indicates whether the application area (split pane in javaclient) is visible or not.- Returns:
true
if the application area is visible ,false
otherwise- Since:
- 4.2.416
- See Also:
-
setVisible
void setVisible(boolean visible) Sets the visibility of the application area (split pane in javaclient).- Parameters:
visible
-true
to show application area,false
otherwise- Since:
- 4.2.416
- See Also:
-