com.limegroup.gnutella.gui.download
Class DownloadDataLine

java.lang.Object
  extended bycom.limegroup.gnutella.gui.tables.AbstractDataLine
      extended bycom.limegroup.gnutella.gui.download.DownloadDataLine
All Implemented Interfaces:
DataLine

public final class DownloadDataLine
extends AbstractDataLine

This class handles all of the data for a single download, representing one "line" in the download window. It continually updates the displayed data for the download from the contained Downloader instance.


Field Summary
 
Fields inherited from class com.limegroup.gnutella.gui.tables.AbstractDataLine
initializer
 
Constructor Summary
DownloadDataLine()
           
 
Method Summary
 void cleanup()
          Tell the downloader to close its sockets.
 LimeTableColumn getColumn(int idx)
          Return the LimeTableColumn for this column.
 int getColumnCount()
          Return the number of columns this dataline controls.
 java.lang.String[] getToolTipArray()
          By default, DataLines will have no tooltip.
 java.lang.Object getValueAt(int index)
          Returns the Object stored at the specified column in this line of data.
 void initialize(java.lang.Object downloader)
          Must initialize data.
 boolean isDynamic(int idx)
          Returns whether or not this column can change on subsequent updates to the DataLine
 void update()
          Updates all of the data for this download, obtaining fresh information from the contained Downloader instance.
 
Methods inherited from class com.limegroup.gnutella.gui.tables.AbstractDataLine
getInitializeObject, setInitializeObject, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadDataLine

public DownloadDataLine()
Method Detail

getColumnCount

public int getColumnCount()
Description copied from interface: DataLine
Return the number of columns this dataline controls.


initialize

public void initialize(java.lang.Object downloader)
Must initialize data.

Specified by:
initialize in interface DataLine
Overrides:
initialize in class AbstractDataLine
Parameters:
downloader - the Downloader that provides access to information about the download

cleanup

public void cleanup()
Tell the downloader to close its sockets.

Specified by:
cleanup in interface DataLine
Overrides:
cleanup in class AbstractDataLine

getValueAt

public java.lang.Object getValueAt(int index)
Returns the Object stored at the specified column in this line of data.

Parameters:
index - the index of the column to retrieve data from
Returns:
the Object stored at that index

getColumn

public LimeTableColumn getColumn(int idx)
Description copied from interface: DataLine
Return the LimeTableColumn for this column.


getToolTipArray

public java.lang.String[] getToolTipArray()
Description copied from class: AbstractDataLine
By default, DataLines will have no tooltip.

Specified by:
getToolTipArray in interface DataLine
Overrides:
getToolTipArray in class AbstractDataLine

isDynamic

public boolean isDynamic(int idx)
Description copied from interface: DataLine
Returns whether or not this column can change on subsequent updates to the DataLine


update

public void update()
Updates all of the data for this download, obtaining fresh information from the contained Downloader instance.

Specified by:
update in interface DataLine
Overrides:
update in class AbstractDataLine