org.xnap.gui.table
Class LibraryTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.xnap.gui.table.AbstractSortableTableModel
          extended by org.xnap.gui.table.AbstractColumnTableModel
              extended by org.xnap.gui.table.LibraryTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, ColumnModel, SortableModel

public class LibraryTableModel
extends AbstractColumnTableModel

Table model which displays repository files in its columns.

See Also:
Serialized Form

Field Summary
protected  Column[] columns
           
static int FULLNAME
           
static int INFO
           
static int MODIFIED
           
static int NAME
           
static int PATH
           
static int SIZE
           
static int TYPE
           
 
Fields inherited from class org.xnap.gui.table.AbstractSortableTableModel
ascending, compares, indexes, lastSortedColumn, maintainSortOrder, revIndexes, sortingColumns
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
LibraryTableModel()
           
 
Method Summary
 void add(java.io.File f)
           
 void add(java.io.File[] list)
           
 void addFile(java.io.File file)
           
 void clear()
           
 boolean delete(java.io.File f)
           
 java.io.File get(int i)
           
 java.lang.Object get(int i, int j)
           
 int getRowCount()
           
 java.lang.String getTableName()
           
 long getTotalSize()
           
 boolean isCellEditable(int row, int column)
           
 void remove(int i)
           
 void setCellEditable(int row, int column)
           
 void setValueAt(java.lang.Object obj, int row, int column)
           
 
Methods inherited from class org.xnap.gui.table.AbstractColumnTableModel
addColumn, addColumns, createColumnMenu, createTable, getColumnAt, getColumnClass, getColumnCount, getColumnName
 
Methods inherited from class org.xnap.gui.table.AbstractSortableTableModel
compare, compareRowsByColumn, fireTableChanged, getSortedColumn, getValueAt, isSortedAscending, mapToDtmIndex, mapToIndex, n2sort, reallocateIndexes, reallocateIndexes, resort, set, setMaintainSortOrder, setSortedAscending, shuttlesort, sort, sortByColumn, swap
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final int NAME
See Also:
Constant Field Values

FULLNAME

public static final int FULLNAME
See Also:
Constant Field Values

PATH

public static final int PATH
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

SIZE

public static final int SIZE
See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

columns

protected Column[] columns
Constructor Detail

LibraryTableModel

public LibraryTableModel()
Method Detail

add

public void add(java.io.File f)

add

public void add(java.io.File[] list)

addFile

public void addFile(java.io.File file)

delete

public boolean delete(java.io.File f)

clear

public void clear()

get

public java.io.File get(int i)

getRowCount

public int getRowCount()

get

public java.lang.Object get(int i,
                            int j)
Specified by:
get in class AbstractSortableTableModel

getTableName

public java.lang.String getTableName()

getTotalSize

public long getTotalSize()

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class AbstractSortableTableModel

remove

public void remove(int i)

setCellEditable

public void setCellEditable(int row,
                            int column)

setValueAt

public void setValueAt(java.lang.Object obj,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class AbstractSortableTableModel


Copyright © 2001-2005 XNap Team. All Rights Reserved.