Class OptionsDialog

    • Constructor Detail

      • OptionsDialog

        public OptionsDialog​(Frame pOwner,
                             Map<Preferences,​OptionsPanel> pPrefToPanelMap)
        If only one options panel is passed, forget tabs. Otherwise, give each panel a tab.
        Parameters:
        pPrefToPanelMap - Map from Preferences to OptionsPanel
    • Method Detail

      • getOkAction

        protected Action getOkAction()
        Can be disabled when dialogs are in an invalid state.
      • commitChanges

        protected void commitChanges()
        Commits models to preferences. Order of commitment is defined by pref to panel map. Called after 'ok' is clicked. Override this method if special actions must be taken after (or in place of) the standard commit. Overriding methods that merely seek to display a message should call super.