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
A base preferences controller implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.omegat.gui.preferences.IPreferencesController
IPreferencesController.FurtherActionListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listenerbooleanReturns whether a preference has been altered such as to require the project to be reloaded.booleanReturns whether a preference has been altered such as to require the application to be restarted.voidRemove a listenervoidsetReloadRequired(boolean reloadRequired) voidsetRestartRequired(boolean restartRequired) abstract StringtoString()Implementors should override this to return the name of the view as shown in the view tree.voidRestore preferences controlled by this view to their current persisted state.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.omegat.gui.preferences.IPreferencesController
canRestoreDefaults, getGui, getParentViewClass, persist, restoreDefaults, validate
-
Constructor Details
-
BasePreferencesController
public BasePreferencesController()
-
-
Method Details
-
addFurtherActionListener
Description copied from interface:IPreferencesControllerAdd a listener- Specified by:
addFurtherActionListenerin interfaceIPreferencesController
-
removeFurtherActionListener
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
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 classObject
-