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 void
addFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Add a listenerboolean
isReloadRequired()
Returns whether a preference has been altered such as to require the project to be reloaded.boolean
isRestartRequired()
Returns whether a preference has been altered such as to require the application to be restarted.void
removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Remove a listenervoid
setReloadRequired(boolean reloadRequired)
void
setRestartRequired(boolean restartRequired)
abstract java.lang.String
toString()
Implementors should override this to return the name of the view as shown in the view tree.void
undoChanges()
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:IPreferencesController
Add a listener- Specified by:
addFurtherActionListener
in interfaceIPreferencesController
-
removeFurtherActionListener
public void removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Description copied from interface:IPreferencesController
Remove a listener- Specified by:
removeFurtherActionListener
in interfaceIPreferencesController
-
setRestartRequired
public void setRestartRequired(boolean restartRequired)
-
setReloadRequired
public void setReloadRequired(boolean reloadRequired)
-
isRestartRequired
public boolean isRestartRequired()
Description copied from interface:IPreferencesController
Returns whether a preference has been altered such as to require the application to be restarted.- Specified by:
isRestartRequired
in interfaceIPreferencesController
-
isReloadRequired
public boolean isReloadRequired()
Description copied from interface:IPreferencesController
Returns whether a preference has been altered such as to require the project to be reloaded.- Specified by:
isReloadRequired
in interfaceIPreferencesController
-
undoChanges
public void undoChanges()
Description copied from interface:IPreferencesController
Restore preferences controlled by this view to their current persisted state.- Specified by:
undoChanges
in interfaceIPreferencesController
-
toString
public abstract java.lang.String toString()
Description copied from interface:IPreferencesController
Implementors should override this to return the name of the view as shown in the view tree.- Specified by:
toString
in interfaceIPreferencesController
- Overrides:
toString
in classjava.lang.Object
-
-