Class AccessTable

All Implemented Interfaces:
ActionListener, ItemListener, KeyListener, MouseListener, TextListener, ImageObserver, MenuContainer, Printable, Serializable, EventListener, Accessible, CellEditorListener, DocumentListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable, Modifiable, TimeZoneComponent, UnitsComponent, EditableComponent, FormManagementListener, RmaValidComponent

public class AccessTable extends RmaJTable
See Also:
  • Constructor Details

    • AccessTable

      public AccessTable()
    • AccessTable

      public AccessTable(Component parent)
    • AccessTable

      public AccessTable(Component parent, String[] headers)
  • Method Details

    • checkAppendRow

      protected void checkAppendRow(int row)
      Checks to if the argument row is the last row and if so append a new empty row to the table model.
    • editCellAt

      public boolean editCellAt(int row, int column, EventObject e)
      Description copied from class: RmaJTable
      Method Description
      Overrides:
      editCellAt in class RmaJTable
      Parameters:
      row - Description
      column - Description
      e - Description
      Returns:
      Description
    • editCellAt

      public boolean editCellAt(int row, int column)
      Overrides:
      editCellAt in class JTable
    • editingStopped

      public void editingStopped(ChangeEvent e)
      Description copied from class: RmaJTable
      called when editing has stopped. Pass on call to any registered listeners.
      Specified by:
      editingStopped in interface CellEditorListener
      Overrides:
      editingStopped in class RmaJTable
      Parameters:
      e - Description
    • appendOnEditStopped

      public void appendOnEditStopped(boolean b)
    • appendOnEditCell

      public void appendOnEditCell(boolean b)
    • moveToNewPosition

      public boolean moveToNewPosition(int row, int column)
      This method says if it is OK to switch cells. It should only be called by the AccessTableUI. The AccessTableUI generates gets the mouse events and figures out where to move. This hook Allows the table to do a commit of a record i.e. a user moves from row to row. If for some reason the commit is unsuccessful, this method returns false. Otherwise returns true and the table acts like normal.