JComponentPack 1.5.0

com.zfqjava.swing.model
Class ZipFileTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.zfqjava.swing.model.ZipFileTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ZipFileTableModel
extends AbstractTableModel

ZipFileTableModel provides a zip file table model.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ZipFileTableModel(ZipFile file, Component component)
           
 
Method Summary
 void changeDirectory(String name)
           
 Class getColumnClass(int col)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
 String getDirectory()
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 ZipFile getZipFile()
           
 boolean isCellEditable(int row, int col)
           
 boolean isRootDirectory()
           
 void setValueAt(Object aValue, int row, int col)
           
 void upDirectory()
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, 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
 

Constructor Detail

ZipFileTableModel

public ZipFileTableModel(ZipFile file,
                         Component component)
Method Detail

getDirectory

public String getDirectory()

isRootDirectory

public boolean isRootDirectory()

upDirectory

public void upDirectory()

changeDirectory

public void changeDirectory(String name)

getZipFile

public ZipFile getZipFile()

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

public Class getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int col)

setValueAt

public void setValueAt(Object aValue,
                       int row,
                       int col)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.