Class VTable

    • Constructor Detail

      • VTable

        public VTable()
        Default Constructor
    • Method Detail

      • packAll

        public void packAll()
        Size all column to fit content.
      • propertyChange

        public void propertyChange​(PropertyChangeEvent evt)
        Property Change Listener for CurrentRow. - Selects the current row if not already selected - Required when navigating via Buttons
        Specified by:
        propertyChange in interface PropertyChangeListener
        Parameters:
        evt - event
      • getColorCode

        public int getColorCode​(int row)
        Get ColorCode for Row.
                If numerical value in compare column is
                        negative = -1,
              positive = 1,
              otherwise = 0
          
        Parameters:
        row - row
        Returns:
        color code
      • sort

        protected void sort​(int modelColumnIndex)
        Sort Table
        Overrides:
        sort in class CTable
        Parameters:
        modelColumnIndex - model column sort index
      • editCellAt

        public boolean editCellAt​(int row,
                                  int column,
                                  EventObject e)
        Transfer focus explicitly to editor due to editors with multiple components
        Overrides:
        editCellAt in class JTable
        Parameters:
        row - row
        column - column
        e - event
        Returns:
        true if cell is editing
      • toString

        public String toString()
        toString
        Overrides:
        toString in class CTable
        Returns:
        String representation
      • setRowSelectionInterval

        public void setRowSelectionInterval​(int index0,
                                            int index1)
        Sets the row selection interval. If the index is out of bounds we decrement it before setting the JTables row selection interval
        Overrides:
        setRowSelectionInterval in class JTable