Class AbstractInvestigatorTabWithDataTable

    • Field Detail

      • m_PanelData

        protected JPanel m_PanelData
        the panel with the data.
      • m_SplitPane

        protected adams.gui.core.BaseSplitPane m_SplitPane
        the split pane.
      • m_DefaultDataTableHeight

        protected int m_DefaultDataTableHeight
        the default data table height.
      • m_FirstAdd

        protected boolean m_FirstAdd
        whether this is the first time a dataset gets added.
    • Constructor Detail

      • AbstractInvestigatorTabWithDataTable

        public AbstractInvestigatorTabWithDataTable()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class adams.gui.core.DetachablePanel
      • finishInit

        protected void finishInit()
        Overrides:
        finishInit in class adams.gui.core.BasePanel
      • hasReadOnlyTable

        protected abstract boolean hasReadOnlyTable()
        Returns whether a readonly table is used.
        Returns:
        true if readonly
      • getDataTableListSelectionMode

        protected abstract int getDataTableListSelectionMode()
        Returns the list selection mode to use.
        Returns:
        the mode
        See Also:
        ListSelectionModel
      • dataTableSelectionChanged

        protected abstract void dataTableSelectionChanged()
        Gets called when the user changes the selection.
      • getTable

        public adams.gui.core.BaseTableWithButtons getTable()
        Returns the table.
        Returns:
        the table
      • backupSelection

        protected DataContainer[] backupSelection()
        Returns the data containers that are currently selected.
        Returns:
        the selected containers
      • restoreSelection

        protected void restoreSelection​(DataContainer[] conts)
        Tries to restore the selection using the provided containers.
        Parameters:
        conts - the containers to re-select, if possible
      • getSelectedRows

        protected int[] getSelectedRows()
        Returns the selected rows.
        Returns:
        the rows
      • activate

        protected void activate​(int row)
        Activates the selected dataset.
        Parameters:
        row - the row of the dataset to activate
      • removeData

        protected void removeData​(int[] rows)
        Removes the selected rows, removes all if rows are null.
        Parameters:
        rows - the rows to remove, null for all
      • renameData

        protected void renameData​(int[] rows)
        Renames the selected row, does nothing if 0 or more than 1 selected.
        Parameters:
        rows - the row to rename
      • undo

        protected void undo​(int[] rows)
        Performs undo on the selected rows.
        Parameters:
        rows - the rows to undo
      • doDeserialize

        protected void doDeserialize​(Map<String,​Object> data,
                                     adams.core.MessageCollection errors)
        Restores the objects.
        Overrides:
        doDeserialize in class AbstractInvestigatorTab
        Parameters:
        data - the data to restore
        errors - for storing errors