Package hec.model

Class AbstractDataListTableModel

All Implemented Interfaces:
Serializable, TableModel, RmaTableModelInterface

public abstract class AbstractDataListTableModel extends AbstractRmaTableModel
The AbstractDataListTable model provied a default implementation to display and edit a data list in a RmaJTable/JTable. The model wraps around a datalist object. When a cell is rendered by the table, the model gets a data object from the data list and places it into a editing buffer. The contents of the buffer is not saved until the programmer calls the commit method on the model. Blank rows are displayed by DataObjects with no names. Changes to the table are as follows, (1) If the name is blank and the id is undefined, it must be a blank row. (2) If the name is filled and the id is undefined, it is a new object (3) If the name is filled and the id is defined, it is an update.
Since:
1 February 2001
See Also:
  • Field Details

    • _committingTable

      protected boolean _committingTable
    • m_dataList

      protected CommonDataList m_dataList
    • m_objects

      protected List m_objects
    • m_tempObjects

      protected List m_tempObjects
    • m_commitImmediatly

      protected boolean m_commitImmediatly
    • m_parentComponent

      protected Component m_parentComponent
    • m_currentEditRow

      protected int m_currentEditRow
  • Constructor Details

    • AbstractDataListTableModel

      public AbstractDataListTableModel()
    • AbstractDataListTableModel

      public AbstractDataListTableModel(CommonDataList dl)
    • AbstractDataListTableModel

      public AbstractDataListTableModel(DataList dl)
  • Method Details