Class RMOptionsView.DatasourcesTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel
    Enclosing class:
    RMOptionsView

    public class RMOptionsView.DatasourcesTableModel
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDatasource​(Datasource dsource)  
      int getColumnCount()  
      java.lang.String getColumnName​(int columnIndex)  
      int getRowCount()  
      java.lang.String getValueAt​(int rowIndex, int columnIndex)  
      boolean isCellEditable​(int row, int col)
      Only the first column is editable (set an alias instead of canonical name)
      void removeAll()  
      void removeDatasource​(int rowIndex)  
      void setValueAt​(java.lang.Object value, int rowIndex, int columnIndex)  
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatasourcesTableModel

        public DatasourcesTableModel()
      • DatasourcesTableModel

        public DatasourcesTableModel​(Dataset dataset)
    • Method Detail

      • getColumnName

        public java.lang.String getColumnName​(int columnIndex)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getRowCount

        public int getRowCount()
      • getColumnCount

        public int getColumnCount()
      • isCellEditable

        public boolean isCellEditable​(int row,
                                      int col)
        Only the first column is editable (set an alias instead of canonical name)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • setValueAt

        public void setValueAt​(java.lang.Object value,
                               int rowIndex,
                               int columnIndex)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • getValueAt

        public java.lang.String getValueAt​(int rowIndex,
                                           int columnIndex)
      • addDatasource

        public void addDatasource​(Datasource dsource)
      • removeDatasource

        public void removeDatasource​(int rowIndex)
      • removeAll

        public void removeAll()