Class PreferencesImpl
- java.lang.Object
-
- org.apache.lucene.luke.app.desktop.PreferencesImpl
-
- All Implemented Interfaces:
Preferences
public final class PreferencesImpl extends Object implements Preferences
Default implementation ofPreferences
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.luke.app.desktop.Preferences
Preferences.ColorTheme
-
-
Constructor Summary
Constructors Constructor Description PreferencesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHistory(String indexPath)Preferences.ColorThemegetColorTheme()StringgetDirImpl()List<String>getHistory()booleanisKeepAllCommits()booleanisNoReader()booleanisReadOnly()booleanisUseCompound()voidremoveHistory(String indexPath)voidsetColorTheme(Preferences.ColorTheme theme)voidsetIndexOpenerPrefs(boolean readOnly, String dirImpl, boolean noReader, boolean useCompound, boolean keepAllCommits)
-
-
-
Constructor Detail
-
PreferencesImpl
public PreferencesImpl() throws IOException- Throws:
IOException
-
-
Method Detail
-
getHistory
public List<String> getHistory()
- Specified by:
getHistoryin interfacePreferences
-
addHistory
public void addHistory(String indexPath) throws IOException
- Specified by:
addHistoryin interfacePreferences- Throws:
IOException
-
removeHistory
public void removeHistory(String indexPath) throws IOException
- Specified by:
removeHistoryin interfacePreferences- Throws:
IOException
-
getColorTheme
public Preferences.ColorTheme getColorTheme()
- Specified by:
getColorThemein interfacePreferences
-
setColorTheme
public void setColorTheme(Preferences.ColorTheme theme) throws IOException
- Specified by:
setColorThemein interfacePreferences- Throws:
IOException
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfacePreferences
-
getDirImpl
public String getDirImpl()
- Specified by:
getDirImplin interfacePreferences
-
isNoReader
public boolean isNoReader()
- Specified by:
isNoReaderin interfacePreferences
-
isUseCompound
public boolean isUseCompound()
- Specified by:
isUseCompoundin interfacePreferences
-
isKeepAllCommits
public boolean isKeepAllCommits()
- Specified by:
isKeepAllCommitsin interfacePreferences
-
setIndexOpenerPrefs
public void setIndexOpenerPrefs(boolean readOnly, String dirImpl, boolean noReader, boolean useCompound, boolean keepAllCommits) throws IOException- Specified by:
setIndexOpenerPrefsin interfacePreferences- Throws:
IOException
-
-