Class NoteSortDialog

    • Constructor Detail

      • NoteSortDialog

        public NoteSortDialog​(Component parent,
                              String title,
                              String buttonText)
        Construct a new dialog. The constructor automatically adds a "Cancel" button.
        Parameters:
        parent - - Parent component. Usually MainApplication.getMainFrame()
        title - - Translated text to display in the title bar of the dialog
        buttonText - - Translated text to be shown on the action button
    • Method Detail

      • showSortDialog

        public void showSortDialog​(Comparator<Note> currentSortMode)
        Builds and displays the window to the user.
        Parameters:
        currentSortMode - - The current sort mode which will be pre-selected in the list
      • getSelectedComparator

        public Comparator<NotegetSelectedComparator()
        Returns the Note comparator that the user has selected.
        Returns:
        Note comparator that the user has selected