com.limegroup.gnutella.gui.library
Class LibraryTableDataLine

java.lang.Object
  extended bycom.limegroup.gnutella.gui.tables.AbstractDataLine
      extended bycom.limegroup.gnutella.gui.library.LibraryTableDataLine
All Implemented Interfaces:
DataLine, ThemeObserver

public final class LibraryTableDataLine
extends AbstractDataLine
implements ThemeObserver

This class acts as a single line containing all the necessary Library info.


Field Summary
 
Fields inherited from class com.limegroup.gnutella.gui.tables.AbstractDataLine
initializer
 
Constructor Summary
LibraryTableDataLine()
           
 
Method Summary
 void changeFile(java.io.File newFile)
           
 void cleanup()
          This must be removed from the theme observer list in order to be garbage-collected.
 LimeTableColumn getColumn(int idx)
          Return the LimeTableColumn for this column.
 int getColumnCount()
          Return the number of columns this dataline controls.
 com.limegroup.gnutella.FileDesc getFileDesc()
           
 java.lang.String[] getToolTipArray()
          By default, DataLines will have no tooltip.
 java.lang.Object getValueAt(int idx)
          Returns the object stored in the specified cell in the table.
 void initialize(java.lang.Object o)
          Initialize the object.
 boolean isDynamic(int idx)
          Returns whether or not this column can change on subsequent updates to the DataLine
 void updateTheme()
          Update any required theme settings, such as colors or images.
 
Methods inherited from class com.limegroup.gnutella.gui.tables.AbstractDataLine
getInitializeObject, setInitializeObject, setValueAt, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryTableDataLine

public LibraryTableDataLine()
Method Detail

cleanup

public void cleanup()
This must be removed from the theme observer list in order to be garbage-collected.

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

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

getFileDesc

public com.limegroup.gnutella.FileDesc getFileDesc()

getColumnCount

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

Specified by:
getColumnCount in interface DataLine

initialize

public void initialize(java.lang.Object o)
Initialize the object. It will fail if not given a FileDesc or a File (File is retained for compatability with the Incomplete folder)

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

changeFile

public void changeFile(java.io.File newFile)

getValueAt

public java.lang.Object getValueAt(int idx)
Returns the object stored in the specified cell in the table.

Specified by:
getValueAt in interface DataLine
Parameters:
idx - The column of the cell to access
Returns:
The Object stored at the specified "cell" in the list

getColumn

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

Specified by:
getColumn in interface DataLine

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

Specified by:
isDynamic in interface DataLine

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