Class 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  
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      FileTableModel​(boolean down)  
    • Field Detail

      • down

        protected boolean down
      • columns

        protected java.lang.String[] columns
      • data

        protected java.util.Map<java.lang.String,​TransferInfo> data
    • Constructor Detail

      • FileTableModel

        public FileTableModel​(boolean down)
    • 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 interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getColumnClass

        public java.lang.Class<?> getColumnClass​(int i)
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
      • getRowCount

        public int getRowCount()
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int column)
      • removeRow

        public void removeRow​(int row)
      • isCellEditable

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

        public void setValueAt​(java.lang.Object val,
                               int row,
                               int column)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • addTableModelListener

        public void addTableModelListener​(javax.swing.event.TableModelListener l)
        Specified by:
        addTableModelListener in interface javax.swing.table.TableModel
        Overrides:
        addTableModelListener in class javax.swing.table.AbstractTableModel
      • removeTableModelListener

        public void removeTableModelListener​(javax.swing.event.TableModelListener l)
        Specified by:
        removeTableModelListener in interface javax.swing.table.TableModel
        Overrides:
        removeTableModelListener in class javax.swing.table.AbstractTableModel
      • refresh

        public void refresh()