Package com.xinapse.util
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 TypeMethodDescriptionvoidsavePreferences(Preferences prefs) Save the current settings to the user Preferences at the given node name.voidSet the default values.voidShow an error message (in case the current settings are invalid).
-
Method Details
-
setDefaults
void setDefaults()Set the default values. -
savePreferences
Save the current settings to the user Preferences at the given node name.- Parameters:
prefs- thePreferencesto which the current settings will be saved.- Throws:
InvalidArgumentException- if the current settings are invalid and cannot be saved to the preferences.
-
showError
Show an error message (in case the current settings are invalid).- Parameters:
errorMessage- the message to show.
-