com.limegroup.gnutella.gui
Class StatusLine

java.lang.Object
  extended bycom.limegroup.gnutella.gui.StatusLine
All Implemented Interfaces:
ThemeObserver

public final class StatusLine
extends java.lang.Object
implements ThemeObserver

The component for the space at the bottom of the main application window, including the connected status and the media player.


Constructor Summary
StatusLine()
          Creates a new status line in the disconnected state.
 
Method Summary
 void audioFileDoubleClicked()
           
 javax.swing.JComponent getComponent()
          Accessor for the JComponent instance that contains all of the panels for the status line.
 void launchAudio(java.io.File toPlay)
           
 void setConnected(boolean connected)
          Notifies this that we're connected.
 java.lang.String setStatistics(long hosts, long files, long kbytes, int share, int pending)
          Sets the horizon statistics for this.
 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, toString, wait, wait, wait
 

Constructor Detail

StatusLine

public StatusLine()
Creates a new status line in the disconnected state.

Method Detail

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

setConnected

public void setConnected(boolean connected)
Notifies this that we're connected.


setStatistics

public java.lang.String setStatistics(long hosts,
                                      long files,
                                      long kbytes,
                                      int share,
                                      int pending)
Sets the horizon statistics for this.

Returns:
A displayable Horizon string.

audioFileDoubleClicked

public void audioFileDoubleClicked()

launchAudio

public void launchAudio(java.io.File toPlay)

getComponent

public javax.swing.JComponent getComponent()
Accessor for the JComponent instance that contains all of the panels for the status line.

Returns:
the JComponent instance that contains all of the panels for the status line