com.xinapse.util
Interface PreferencesSettable

All Known Implementing Classes:
AbstractDynamicFrame, CombineMode.Panel, com.xinapse.util.ImageOrganiserFrame, MaskMode.Panel, com.xinapse.util.MultiContrastAnalysisFrame

public interface PreferencesSettable

An interface that is implemented by components that can save their settings to user preferences.


Method Summary
 void savePreferences(java.util.prefs.Preferences prefs)
          Save the current settings to the user Preferences at the given node name.
 void setDefaults()
          Set the default values.
 void showError(java.lang.String errorMessage)
          Show an error message (in case the current settings are invalid).
 

Method Detail

setDefaults

void setDefaults()
Set the default values.


savePreferences

void savePreferences(java.util.prefs.Preferences prefs)
                     throws com.xinapse.util.InvalidArgumentException
Save the current settings to the user Preferences at the given node name.

Parameters:
prefs - the java.util.prefs.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(java.lang.String errorMessage)
Show an error message (in case the current settings are invalid).

Parameters:
errorMessage - the message to show.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.