com.limegroup.gnutella.gui.tabs
Class SearchDownloadTab

java.lang.Object
  extended bycom.limegroup.gnutella.gui.tabs.AbstractTab
      extended bycom.limegroup.gnutella.gui.tabs.SearchDownloadTab
All Implemented Interfaces:
Tab, ThemeObserver

public final class SearchDownloadTab
extends com.limegroup.gnutella.gui.tabs.AbstractTab

This class constructs the search/download tab, including all UI elements.


Field Summary
protected  int INDEX
          Constant for the index of this tab.
 
Constructor Summary
SearchDownloadTab(SearchMediator SEARCH_MEDIATOR, ComponentMediator DOWNLOAD_MEDIATOR)
          Constructs the tab for searches and downloads.
 
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 setDividerLocation(double loc)
          Sets the location of the search/download divider.
 void setDividerLocation(int loc)
          Sets the location of the search/download divider.
 void storeState(boolean state)
          Stores the visible/invisible state of the tab to disk.
 java.lang.String toString()
           
 void updateTheme()
          Update any required theme settings, such as colors or images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDEX

protected final int INDEX
Constant for the index of this tab.

Constructor Detail

SearchDownloadTab

public SearchDownloadTab(SearchMediator SEARCH_MEDIATOR,
                         ComponentMediator DOWNLOAD_MEDIATOR)
Constructs the tab for searches and downloads.

Parameters:
SEARCH_MEDIATOR - the SearchMediator instance for obtaining the necessary ui components to add
DOWNLOAD_MEDIATOR - the DownloadMediator instance for obtaining the necessary ui components to add
Method Detail

setDividerLocation

public void setDividerLocation(int loc)
Sets the location of the search/download divider.

Parameters:
loc - the location to set the divider to

setDividerLocation

public void setDividerLocation(double loc)
Sets the location of the search/download divider.

Parameters:
loc - the location to set the divider to

storeState

public void storeState(boolean state)
Description copied from interface: Tab
Stores the visible/invisible state of the tab to disk.


getComponent

public javax.swing.JComponent getComponent()
Description copied from interface: Tab
Returns the JComponent instance containing all of the UI elements for the tab.


updateTheme

public void updateTheme()
Description copied from interface: ThemeObserver
Update any required theme settings, such as colors or images.

Specified by:
updateTheme in interface ThemeObserver

getTitle

public java.lang.String getTitle()
Description copied from interface: Tab
Returns the title of the tab as it's displayed to the user.

Specified by:
getTitle in interface Tab
Returns:
the title of the tab as it's displayed to the user

getToolTip

public java.lang.String getToolTip()
Description copied from interface: Tab
Returns the tooltip text for the tab.

Specified by:
getToolTip in interface Tab
Returns:
the tooltip text for the tab

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: Tab
Returns the Icon instance for the tab.

Specified by:
getIcon in interface Tab
Returns:
the Icon instance for the tab

getIndex

public int getIndex()
Description copied from interface: Tab
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.

Specified by:
getIndex in interface Tab
Returns:
the fixed index of the tab

toString

public java.lang.String toString()