com.limegroup.gnutella.gui.upload
Class UploadDataLine

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

public final class UploadDataLine
extends AbstractDataLine

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


Field Summary
 
Fields inherited from class com.limegroup.gnutella.gui.tables.AbstractDataLine
initializer
 
Constructor Summary
UploadDataLine()
           
 
Method Summary
 void cleanup()
          A blank implementatino of cleanup, because it is not necessary.
 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)
          Get the value of a column in the DataLine
 void initialize(java.lang.Object uploader)
          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 upload, obtaining fresh information from the contained Uploader 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

UploadDataLine

public UploadDataLine()
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 uploader)
Must initialize data.

Specified by:
initialize in interface DataLine
Overrides:
initialize in class AbstractDataLine
Parameters:
uploader - the Uploader that provides access to information about the upload

cleanup

public void cleanup()
Description copied from class: AbstractDataLine
A blank implementatino of cleanup, because it is not necessary.

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

getValueAt

public java.lang.Object getValueAt(int index)
Description copied from interface: DataLine
Get the value of a column in the DataLine


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 upload, obtaining fresh information from the contained Uploader instance.

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