com.limegroup.gnutella.gui.tabs
Interface Tab

All Known Implementing Classes:
com.limegroup.gnutella.gui.tabs.AbstractTab

public interface Tab

This interface outlines the required functionality of any of the primary tabs in the main application window.


Method Summary
 javax.swing.JComponent getComponent()
          Returns the JComponent instance containing all of the UI elements for the tab.
 javax.swing.Icon getIcon()
          Returns the Icon instance for the tab.
 int getIndex()
          Returns the index of the tab.
 java.lang.String getTitle()
          Returns the title of the tab as it's displayed to the user.
 java.lang.String getToolTip()
          Returns the tooltip text for the tab.
 void storeState(boolean visible)
          Stores the visible/invisible state of the tab to disk.
 

Method Detail

storeState

public void storeState(boolean visible)
Stores the visible/invisible state of the tab to disk.

Parameters:
visible - the visibility state to apply

getComponent

public javax.swing.JComponent getComponent()
Returns the JComponent instance containing all of the UI elements for the tab.

Returns:
the JComponent intance containing all of the UI elements for the tab

getTitle

public java.lang.String getTitle()
Returns the title of the tab as it's displayed to the user.

Returns:
the title of the tab as it's displayed to the user

getToolTip

public java.lang.String getToolTip()
Returns the tooltip text for the tab.

Returns:
the tooltip text for the tab

getIcon

public javax.swing.Icon getIcon()
Returns the Icon instance for the tab.

Returns:
the Icon instance for the tab

getIndex

public int getIndex()
Returns the index of the tab. This is the fixed index for the tab, or it's position in the tab order, and not it's displayed index.

Returns:
the fixed index of the tab