public interface ApplicationTabConfiguration<T extends ApplicationTabConfiguration<T>>
application tabs
.ApplicationTab
,
ApplicationService.openApplication(ApplicationType, ApplicationTabConfiguration)
Modifier and Type | Method and Description |
---|---|
ApplicationTabAppearance.Builder |
appearance()
Returns a builder to define tab appearance.
|
ApplicationTabAppearance |
getAppearance()
The appearance for the application tab.
|
Object |
getIdentifier()
Returns an identifier used to identify the
application tab which will be
created based on this configuration. |
T |
icon(Icon icon)
Shortcut for
appearance() . |
T |
identifier(Object tabIdentifier)
Defines an identifier for the
application tab which will be created based on this configuration. |
boolean |
openInBackground()
Indicates whether the tab which will be created based on this configuration should be
opened in
background or not. |
T |
openInBackground(boolean openInBackground)
Defines whether the application tab which will
created
based on this configuration will be opened in background or not. |
T |
title(String title)
Shortcut for
appearance() . |
Object getIdentifier()
application tab
which will be
created based on this configuration.
The identifier can be used to retrieve the application tab via ApplicationService.getApplication(ApplicationType, Object)
ApplicationService.getApplication(ApplicationType, Object)
T identifier(Object tabIdentifier)
application tab
which will be created based on this configuration.
The identifier can be used to retrieve the application tab via ApplicationService.getApplication(ApplicationType, Object)
tabIdentifier
- the identifier for the application tab created based on this configurationApplicationService.getApplication(ApplicationType, Object)
T title(String title)
appearance()
.title(String)
title
- the title to be used for the created application tabT icon(Icon icon)
appearance()
.icon(javax.swing.Icon)
icon
- the icon to be used for the created application tab. Preferred size 20x20 pixel@Nullable ApplicationTabAppearance getAppearance()
appearance()
ApplicationTabAppearance.Builder appearance()
ApplicationTabConfiguration config; config.appearance().title
("myTitle").icon
(myTabIcon);
T openInBackground(boolean openInBackground)
created
based on this configuration will be opened in background or not.openInBackground
- true
to open created tab in background, false
otherwiseopenInBackground()
boolean openInBackground()
opened
in
background or not.true
if the tab created based on this configuration should be opened in background, false
otherwise.ApplicationService.openApplication(ApplicationType, ApplicationTabConfiguration)
,
openInBackground(boolean)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500