public class AttachmentsTableModel extends AbstractTableModel implements PropertyChangeListener, AttachmentTableModel
listenerList
Constructor and Description |
---|
AttachmentsTableModel(AttachmentContainer request)
Creates a new instance of AttachmentTableModel
|
Modifier and Type | Method and Description |
---|---|
void |
addFile(File file,
boolean cacheInRequest) |
int |
findColumn(String columnName) |
Attachment |
getAttachmentAt(int rowIndex) |
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
propertyChange(PropertyChangeEvent evt)
Update table when attachments or response changes
|
void |
release() |
void |
removeAttachment(int rowIndex) |
void |
removeAttachment(int[] rowIndexes) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, removeTableModelListener
public AttachmentsTableModel(AttachmentContainer request)
public void release()
public void addFile(File file, boolean cacheInRequest) throws IOException
addFile
in interface AttachmentTableModel
IOException
public void removeAttachment(int[] rowIndexes)
public void removeAttachment(int rowIndex)
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Attachment getAttachmentAt(int rowIndex)
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public int findColumn(String columnName)
findColumn
in class AbstractTableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
Copyright © 2019. All Rights Reserved.