Class TableSelectionDialog<T>

    • Constructor Detail

      • TableSelectionDialog

        public TableSelectionDialog​(java.lang.String title,
                                    RowObjectTableModel<T> model,
                                    boolean allowMultipleSelection)
        Create a new Dialog for displaying and choosing table row items
        Parameters:
        title - The title for the dialog
        model - a RowObjectTableModel that has the tRable data
        allowMultipleSelection - if true, the dialog allows the user to select more than one row; otherwise, only single selection is allowed
    • Method Detail

      • getSelectionItems

        public java.util.List<T> getSelectionItems()
        Returns the list of selected items or null if the dialog was cancelled.
        Returns:
        the list of selected items or null if the dialog was cancelled.
      • processMouseClicked

        protected void processMouseClicked​(java.awt.event.MouseEvent e)
      • cancelCallback

        protected void cancelCallback()
        Description copied from class: DialogComponentProvider
        The callback method for when the "Cancel" button is pressed. The default behavior is to call setVisible(false) and dispose() on the dialog.
        Overrides:
        cancelCallback in class DialogComponentProvider
      • updateOkEnabled

        protected void updateOkEnabled()