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 void
addHistory(String indexPath)
Preferences.ColorTheme
getColorTheme()
String
getDirImpl()
List<String>
getHistory()
boolean
isKeepAllCommits()
boolean
isNoReader()
boolean
isReadOnly()
boolean
isUseCompound()
void
setColorTheme(Preferences.ColorTheme theme)
void
setIndexOpenerPrefs(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:
getHistory
in interfacePreferences
-
addHistory
public void addHistory(String indexPath) throws IOException
- Specified by:
addHistory
in interfacePreferences
- Throws:
IOException
-
getColorTheme
public Preferences.ColorTheme getColorTheme()
- Specified by:
getColorTheme
in interfacePreferences
-
setColorTheme
public void setColorTheme(Preferences.ColorTheme theme) throws IOException
- Specified by:
setColorTheme
in interfacePreferences
- Throws:
IOException
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfacePreferences
-
getDirImpl
public String getDirImpl()
- Specified by:
getDirImpl
in interfacePreferences
-
isNoReader
public boolean isNoReader()
- Specified by:
isNoReader
in interfacePreferences
-
isUseCompound
public boolean isUseCompound()
- Specified by:
isUseCompound
in interfacePreferences
-
isKeepAllCommits
public boolean isKeepAllCommits()
- Specified by:
isKeepAllCommits
in interfacePreferences
-
setIndexOpenerPrefs
public void setIndexOpenerPrefs(boolean readOnly, String dirImpl, boolean noReader, boolean useCompound, boolean keepAllCommits) throws IOException
- Specified by:
setIndexOpenerPrefs
in interfacePreferences
- Throws:
IOException
-
-