Interface ApplicationTab<T>


public interface ApplicationTab<T>
Controls the application tab: close it or add TabListener to be notified on tab focus changes.
Since:
4.2.416
See Also:
  • Method Details

    • addTabListener

      void addTabListener(@NotNull @NotNull TabListener listener)
      Adds the given listener.
      Parameters:
      listener - to add.
      Since:
      4.2.416
    • removeTabListener

      void removeTabListener(@NotNull @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:
    • 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:
    • 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:
    • setSelected

      void setSelected()
      Selects / Activates this application tab.
      Since:
      4.2.416
      See Also: