Documentation of 'com.jstatcom.table.JSCNArrayTableModel' Java class
JSCNArrayTableModel
com.jstatcom.table

Class JSCNArrayTableModel

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


    public class JSCNArrayTableModel
    extends JSCAbstractTableModel
    Implementation of JSCAbstractTableModel for JSCNArray data objects. It takes the transposed property into account.
    See Also:
    Serialized Form
    • Constructor Detail

      • JSCNArrayTableModel

        public JSCNArrayTableModel(Symbol symbol)
        Constructs a table model for a symbol of type JSCTypes.NARRAY. The argument can be null.
        Parameters:
        symbol - must be of type JSCTypes.NARRAY, can be null
        Throws:
        java.lang.IllegalArgumentException - if (symbol.type != JSCTypes.NARRAY)
    • Method Detail

      • getColumnCount

        public int getColumnCount()
      • getRowCount

        public int getRowCount()
      • getValueAt

        public java.lang.Object getValueAt(int rowIndex,
                                           int columnIndex)
      • setValueAt

        public void setValueAt(java.lang.Object aValue,
                               int rowIndex,
                               int columnIndex)
        The data model is editable. This method sets a value in the underlying data.
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
        Parameters:
        aValue - must be a Double
        rowIndex - the row index, will be treated with taking transposed into account
        columnIndex - the column index, will be treated with taking transposed into account
        Throws:
        java.lang.IllegalArgumentException - if (!aValue instanceof Double)
      • getColumnClass

        public java.lang.Class<java.lang.Double> getColumnClass(int columnIndex)
        Returns the Double.class regardless of columnIndex.
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
        Parameters:
        columnIndex - ignored
        Returns:
        Double.class

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.