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, removeTableModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTableModelListener, removeTableModelListenerpublic AttachmentsTableModel(AttachmentContainer request)
public void release()
public void addFile(File file, boolean cacheInRequest) throws IOException
addFile in interface AttachmentTableModelIOExceptionpublic void removeAttachment(int[] rowIndexes)
public void removeAttachment(int rowIndex)
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic Attachment getAttachmentAt(int rowIndex)
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic int findColumn(String columnName)
findColumn in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
                              int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerCopyright © 2019. All Rights Reserved.