de.espirit.firstspirit.client.gui.applications
Interface ApplicationTab<T>


public interface ApplicationTab<T>

Controls the application tab: close it or add TabListener to be notified on tab focus changes.

Attention: This part of the API isn't released yet and may change during the ramp up time. It will be released with 4.2 Release 4.

Since:
4.2.416
See Also:
TabListener, ApplicationTab.getApplication(), ApplicationService.openApplication(ApplicationType, ApplicationTabConfiguration)

Method Summary
 void addTabListener(TabListener listener)
          Adds the given listener.
 void close()
          Closes this tab.
 T getApplication()
          Returns the application inside this tab.
 boolean isClosed()
          Indicates whether this tab has been closed.
 boolean isSelected()
          Indicates whether this application tab is active / selected.
 void removeTabListener(TabListener listener)
          Removes the given listener.
 void setAppearance(ApplicationTabAppearance appearance)
          Change application tab appearance, like title and icon.
 void setSelected()
          Selects / Activates this application tab.
 

Method Detail

addTabListener

void addTabListener(@NotNull
                    TabListener listener)
Adds the given listener.

Parameters:
listener - to add.
Since:
4.2.416

removeTabListener

void removeTabListener(@NotNull
                       TabListener listener)
Removes the given listener.

Parameters:
listener - to remove.
Since:
4.2.416

close

void close()
Closes this tab.

Since:
4.2.416
See Also:
TabListener, ApplicationTab.isClosed()

isClosed

boolean isClosed()
Indicates whether this tab has been closed.

Returns:
true if this tab has been closed, false otherwise.
Since:
4.2.416
See Also:
ApplicationTab.close()

setAppearance

void setAppearance(ApplicationTabAppearance appearance)
Change application tab appearance, like title and icon.

Parameters:
appearance - the appearance this application tab should have.
Since:
4.2.416

getApplication

@NotNull
T getApplication()
Returns the application inside this tab.

Returns:
tab application.
Since:
4.2.416

isSelected

boolean isSelected()
Indicates whether this application tab is active / selected.

Returns:
true if this application tab is active / selected, false otherwise
Since:
4.2.416
See Also:
ApplicationTab.setSelected(), ApplicationService.isVisible()

setSelected

void setSelected()
Selects / Activates this application tab.

Since:
4.2.416
See Also:
ApplicationTab.isSelected(), ApplicationService.setVisible(boolean)


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480