Class AbstractInvestigatorTabWithDataTable

    • Field Detail

      • m_PanelData

        protected JPanel m_PanelData
        the panel with the data.
      • m_SplitPane

        protected 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

      • finishInit

        protected void finishInit()
        Description copied from class: BasePanel
        finishes the initialization.
        Overrides:
        finishInit in class 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.
      • 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