Interface PreferencesSettable

All Known Implementing Classes:
AbstractDynamicFrame, CardiacAnalysis.SpecifierPanel, CombineMode.Panel, DynamicModel.SpecifierPanel, ImageGrid, com.xinapse.util.ImageOrganiserFrame, MaskMode.Panel, MultiContrastAnalysisFrame, ROICalculation.SpecifierPanel, SingleOrMultipleInputImageSelectionPanel, WeightingType.Panel

public interface PreferencesSettable
An interface that is implemented by components that can save their settings to user preferences.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Save the current settings to the user Preferences at the given node name.
    void
    Set the default values.
    void
    showError(String errorMessage)
    Show an error message (in case the current settings are invalid).
  • Method Details

    • setDefaults

      void setDefaults()
      Set the default values.
    • savePreferences

      void savePreferences(Preferences prefs) throws InvalidArgumentException
      Save the current settings to the user Preferences at the given node name.
      Parameters:
      prefs - the Preferences to which the current settings will be saved.
      Throws:
      InvalidArgumentException - if the current settings are invalid and cannot be saved to the preferences.
    • showError

      void showError(String errorMessage)
      Show an error message (in case the current settings are invalid).
      Parameters:
      errorMessage - the message to show.