Package jadex.tools.chat
Class ChatPanel.FileTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jadex.tools.chat.ChatPanel.FileTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- ChatPanel
public class ChatPanel.FileTableModel extends javax.swing.table.AbstractTableModel
Table model for up/downloads.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
columns
protected java.util.Map<java.lang.String,TransferInfo>
data
protected boolean
down
-
Constructor Summary
Constructors Constructor Description FileTableModel(boolean down)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTableModelListener(javax.swing.event.TableModelListener l)
java.lang.Class<?>
getColumnClass(int i)
int
getColumnCount()
java.lang.String
getColumnName(int i)
protected java.util.Map<java.lang.String,TransferInfo>
getDataMap()
int
getRowCount()
protected javax.swing.JTable
getTable()
TransferInfo
getValueAt(int row)
java.lang.Object
getValueAt(int row, int column)
boolean
isCellEditable(int row, int column)
void
refresh()
void
removeRow(int row)
void
removeTableModelListener(javax.swing.event.TableModelListener l)
void
setValueAt(java.lang.Object val, int row, int column)
void
updateFile(TransferInfo fi)
-
-
-
Field Detail
-
down
protected boolean down
-
columns
protected java.lang.String[] columns
-
data
protected java.util.Map<java.lang.String,TransferInfo> data
-
-
Method Detail
-
getTable
protected javax.swing.JTable getTable()
-
getDataMap
protected java.util.Map<java.lang.String,TransferInfo> getDataMap()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public java.lang.String getColumnName(int i)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int i)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getRowCount
public int getRowCount()
-
getValueAt
public java.lang.Object getValueAt(int row, int column)
-
getValueAt
public TransferInfo getValueAt(int row)
-
removeRow
public void removeRow(int row)
-
isCellEditable
public boolean isCellEditable(int row, int column)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
setValueAt
public void setValueAt(java.lang.Object val, int row, int column)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
addTableModelListener
public void addTableModelListener(javax.swing.event.TableModelListener l)
- Specified by:
addTableModelListener
in interfacejavax.swing.table.TableModel
- Overrides:
addTableModelListener
in classjavax.swing.table.AbstractTableModel
-
removeTableModelListener
public void removeTableModelListener(javax.swing.event.TableModelListener l)
- Specified by:
removeTableModelListener
in interfacejavax.swing.table.TableModel
- Overrides:
removeTableModelListener
in classjavax.swing.table.AbstractTableModel
-
updateFile
public void updateFile(TransferInfo fi)
-
refresh
public void refresh()
-
-