Package org.omegat.gui.preferences
Class BasePreferencesController
- java.lang.Object
-
- org.omegat.gui.preferences.BasePreferencesController
-
- All Implemented Interfaces:
IPreferencesController
- Direct Known Subclasses:
AppearanceController,AutoCompleterController,AutotextAutoCompleterOptionsController,CharTableAutoCompleterOptionsController,CustomColorSelectionController,DictionaryPreferencesController,EditingBehaviorController,ExternalFinderPreferencesController,FiltersCustomizerController,FontSelectionController,GeneralOptionsController,GlossaryAutoCompleterOptionsController,GlossaryPreferencesController,HistoryAutoCompleterOptionsController,LanguageToolConfigurationController,MachineTranslationPreferencesController,PluginsPreferencesController,RepositoriesCredentialsController,SaveOptionsController,SecureStoreController,SegmentationCustomizerController,SpellcheckerConfigurationController,TagProcessingOptionsController,TeamOptionsController,TMMatchesPreferencesController,UserPassController,VersionCheckPreferencesController,ViewOptionsController
public abstract class BasePreferencesController extends java.lang.Object implements IPreferencesController
A base preferences controller implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.omegat.gui.preferences.IPreferencesController
IPreferencesController.FurtherActionListener
-
-
Constructor Summary
Constructors Constructor Description BasePreferencesController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddFurtherActionListener(IPreferencesController.FurtherActionListener listener)Add a listenerbooleanisReloadRequired()Returns whether a preference has been altered such as to require the project to be reloaded.booleanisRestartRequired()Returns whether a preference has been altered such as to require the application to be restarted.voidremoveFurtherActionListener(IPreferencesController.FurtherActionListener listener)Remove a listenervoidsetReloadRequired(boolean reloadRequired)voidsetRestartRequired(boolean restartRequired)abstract java.lang.StringtoString()Implementors should override this to return the name of the view as shown in the view tree.voidundoChanges()Restore preferences controlled by this view to their current persisted state.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.omegat.gui.preferences.IPreferencesController
getGui, getParentViewClass, persist, restoreDefaults, validate
-
-
-
-
Method Detail
-
addFurtherActionListener
public void addFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Description copied from interface:IPreferencesControllerAdd a listener- Specified by:
addFurtherActionListenerin interfaceIPreferencesController
-
removeFurtherActionListener
public void removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Description copied from interface:IPreferencesControllerRemove a listener- Specified by:
removeFurtherActionListenerin interfaceIPreferencesController
-
setRestartRequired
public void setRestartRequired(boolean restartRequired)
-
setReloadRequired
public void setReloadRequired(boolean reloadRequired)
-
isRestartRequired
public boolean isRestartRequired()
Description copied from interface:IPreferencesControllerReturns whether a preference has been altered such as to require the application to be restarted.- Specified by:
isRestartRequiredin interfaceIPreferencesController
-
isReloadRequired
public boolean isReloadRequired()
Description copied from interface:IPreferencesControllerReturns whether a preference has been altered such as to require the project to be reloaded.- Specified by:
isReloadRequiredin interfaceIPreferencesController
-
undoChanges
public void undoChanges()
Description copied from interface:IPreferencesControllerRestore preferences controlled by this view to their current persisted state.- Specified by:
undoChangesin interfaceIPreferencesController
-
toString
public abstract java.lang.String toString()
Description copied from interface:IPreferencesControllerImplementors should override this to return the name of the view as shown in the view tree.- Specified by:
toStringin interfaceIPreferencesController- Overrides:
toStringin classjava.lang.Object
-
-