com.limegroup.gnutella.gui.tables
Interface DataLineModel

All Superinterfaces:
java.util.Comparator, javax.swing.table.TableModel
All Known Implementing Classes:
BasicDataLineModel

public interface DataLineModel
extends java.util.Comparator, javax.swing.table.TableModel

Interface for the model of a DataLineTable


Method Summary
 int add(DataLine dl)
          Adds a new DataLine to the info.
 int add(DataLine dl, int row)
          Adds a new DataLine to the info at a specific row.
 int add(java.lang.Object o)
          Add a new DataLine to the info, initialized by o.
 int add(java.lang.Object o, int row)
          Add a new DataLine to the info, at a specific row initialized by o.
 int addSorted(DataLine dl)
          Adds a new DataLine to the model in whatever row will keep the DataLine sorted.
 int addSorted(java.lang.Object o)
          Adds a new DataLine to the info, initialized by o.
 void clear()
          Clear the table of all data.
 boolean contains(java.lang.Object o)
          Determine if the list contains a row that was initialized by Object o.
 boolean contains(java.lang.Object o, int col)
          Determine if the list contains Object o in column col.
 DataLine get(int row)
          Get the DataLine associated with the row.
 DataLine get(java.lang.Object o)
          Gets the DataLine that was initialized by Object o.
 DataLine get(java.lang.Object o, int col)
          Gets the first DataLine that has Object o in column col.
 java.lang.Object getColumnId(int col)
          Gets the id of the specified column.
 int getRow(DataLine dl)
          Get the index of this DataLine.
 int getRow(java.lang.Object o)
          Get the index of the DataLine that was initialized by Object o.
 int getRow(java.lang.Object o, int col)
          Get the row of the row that contains Object o in column col.
 int getSortColumn()
          Returns the column by which the underlying data is sorted ascending.
 LimeTableColumn getTableColumn(int col)
          Gets the LimeTableColumn for this column.
 java.lang.String[] getToolTipArray(int row)
          Gets the tooltip for a specific row.
 boolean isSortAscending()
          Returns whether or not the underlying data is sorted ascending.
 boolean isSorted()
          Whether or not the underlying data is sorted.
 boolean needsResort()
          Whether or not the underlying data needs to be resorted.
 java.lang.Object refresh()
          Refresh the data's info.
 void remove(DataLine line)
          Remove the row associated with the DataLine 'line'.
 void remove(int row)
          Remove a row from the data.
 void remove(java.lang.Object o)
          Remove the row that was initialized by Object 'o'.
 void resort()
          Resorts the underlying data.
 void sort(int col)
          Sort the underlying data by the column.
 int update(java.lang.Object o)
          Update a specific DataLine.
 
Methods inherited from interface java.util.Comparator
compare, equals
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

isSorted

public boolean isSorted()
Whether or not the underlying data is sorted.


isSortAscending

public boolean isSortAscending()
Returns whether or not the underlying data is sorted ascending.


getSortColumn

public int getSortColumn()
Returns the column by which the underlying data is sorted ascending.


sort

public void sort(int col)
Sort the underlying data by the column.


needsResort

public boolean needsResort()
Whether or not the underlying data needs to be resorted.


resort

public void resort()
Resorts the underlying data.


clear

public void clear()
Clear the table of all data.


refresh

public java.lang.Object refresh()
Refresh the data's info.


update

public int update(java.lang.Object o)
Update a specific DataLine. The dataline updated is one that was initialized by Object o. Should return the row of the DataLine updated.


add

public int add(java.lang.Object o)
Add a new DataLine to the info, initialized by o. Return the row it was added at.


addSorted

public int addSorted(java.lang.Object o)
Adds a new DataLine to the info, initialized by o. Added to whatever row will keep the DataLine sorted. Return the row it was added at.


add

public int add(DataLine dl)
Adds a new DataLine to the info. Return the row it was added at.


addSorted

public int addSorted(DataLine dl)
Adds a new DataLine to the model in whatever row will keep the DataLine sorted. Return the row it was added at.


add

public int add(java.lang.Object o,
               int row)
Add a new DataLine to the info, at a specific row initialized by o. Return the row it was added at.


add

public int add(DataLine dl,
               int row)
Adds a new DataLine to the info at a specific row. Return the row it was added at.


get

public DataLine get(int row)
Get the DataLine associated with the row.


get

public DataLine get(java.lang.Object o)
Gets the DataLine that was initialized by Object o.


get

public DataLine get(java.lang.Object o,
                    int col)
Gets the first DataLine that has Object o in column col.


remove

public void remove(int row)
Remove a row from the data.


remove

public void remove(DataLine line)
Remove the row associated with the DataLine 'line'.


remove

public void remove(java.lang.Object o)
Remove the row that was initialized by Object 'o'.


contains

public boolean contains(java.lang.Object o,
                        int col)
Determine if the list contains Object o in column col.


contains

public boolean contains(java.lang.Object o)
Determine if the list contains a row that was initialized by Object o.


getRow

public int getRow(java.lang.Object o,
                  int col)
Get the row of the row that contains Object o in column col.


getRow

public int getRow(java.lang.Object o)
Get the index of the DataLine that was initialized by Object o.


getRow

public int getRow(DataLine dl)
Get the index of this DataLine.


getToolTipArray

public java.lang.String[] getToolTipArray(int row)
Gets the tooltip for a specific row.


getTableColumn

public LimeTableColumn getTableColumn(int col)
Gets the LimeTableColumn for this column. A LimeTableColumn encapsulates access to the columnId, columnName, etc...


getColumnId

public java.lang.Object getColumnId(int col)
Gets the id of the specified column.