public interface PrefService extends SciJavaService
Service
for storing and retrieving arbitrary preferences.Modifier and Type | Method and Description |
---|---|
void |
clear(Class<?> c) |
void |
clear(Class<?> prefClass,
String key)
Clears the node indexed under the given class.
|
void |
clear(String key)
Clears the node.
|
void |
clear(String absolutePath,
String key)
Clears the ndoe indexed under the given path.
|
void |
clearAll()
Clears everything.
|
String |
get(Class<?> c,
String name) |
String |
get(Class<?> c,
String name,
String defaultValue) |
String |
get(String name) |
String |
get(String name,
String defaultValue) |
boolean |
getBoolean(Class<?> c,
String name,
boolean defaultValue) |
boolean |
getBoolean(String name,
boolean defaultValue) |
double |
getDouble(Class<?> c,
String name,
double defaultValue) |
double |
getDouble(String name,
double defaultValue) |
float |
getFloat(Class<?> c,
String name,
float defaultValue) |
float |
getFloat(String name,
float defaultValue) |
int |
getInt(Class<?> c,
String name,
int defaultValue) |
int |
getInt(String name,
int defaultValue) |
Iterable<String> |
getIterable(Class<?> prefClass,
String key)
Gets an iterable from the preferences.
|
Iterable<String> |
getIterable(String key)
Gets an iterable from the preferences.
|
List<String> |
getList(Class<?> prefClass)
Gets a List from the preferences.
|
List<String> |
getList(Class<?> prefClass,
String key)
Gets a List from the preferences, indexed under the specified class.
|
List<String> |
getList(String key)
Gets a List from the preferences.
|
List<String> |
getList(String absolutePath,
String key)
Gets a List from the preferences, indexed under the specified path.
|
long |
getLong(Class<?> c,
String name,
long defaultValue) |
long |
getLong(String name,
long defaultValue) |
Map<String,String> |
getMap(Class<?> prefClass)
Gets a Map from the preferences.
|
Map<String,String> |
getMap(Class<?> prefClass,
String key)
Gets a map from the preferences, indexed under the specified class.
|
Map<String,String> |
getMap(String key)
Gets a Map from the preferences.
|
Map<String,String> |
getMap(String absolutePath,
String key) |
void |
put(Class<?> c,
String name,
boolean value) |
void |
put(Class<?> c,
String name,
double value) |
void |
put(Class<?> c,
String name,
float value) |
void |
put(Class<?> c,
String name,
int value) |
void |
put(Class<?> c,
String name,
long value) |
void |
put(Class<?> c,
String name,
String value) |
void |
put(String name,
boolean value) |
void |
put(String name,
double value) |
void |
put(String name,
float value) |
void |
put(String name,
int value) |
void |
put(String name,
long value) |
void |
put(String name,
String value) |
void |
putIterable(Class<?> prefClass,
Iterable<String> iterable,
String key)
Puts an iterable into the preferences.
|
void |
putIterable(Iterable<String> iterable,
String key)
Puts an iterable into the preferences.
|
void |
putList(Class<?> prefClass,
List<String> list)
Puts a list into the preferences.
|
void |
putList(Class<?> prefClass,
List<String> list,
String key)
Puts a list into the preferences, indexed under the specified class.
|
void |
putList(List<String> list,
String key)
Puts a list into the preferences.
|
void |
putList(String absolutePath,
List<String> list)
Puts a list into the preferences, indexed under the specified path.
|
void |
putList(String absolutePath,
List<String> list,
String key)
Puts a list into the preferences, indexed under the specified path and
relative key.
|
void |
putMap(Class<?> prefClass,
Map<String,String> map)
Puts a Map into the preferences, indexed under the given class.
|
void |
putMap(Class<?> prefClass,
Map<String,String> map,
String key)
Puts a Map into the preferences, indexed under the specified class.
|
void |
putMap(Map<String,String> map,
String key)
Puts a Map into the preferences.
|
void |
putMap(String absolutePath,
Map<String,String> map)
Puts a Map into the preferences, indexed under the given path.
|
void |
putMap(String absolutePath,
Map<String,String> map,
String key)
Puts a Map into the preferences, indexed under the given path and
relative key path.
|
void |
remove(Class<?> prefClass,
String key)
Removes the node.
|
void |
remove(String absolutePath,
String key) |
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
boolean getBoolean(String name, boolean defaultValue)
double getDouble(String name, double defaultValue)
float getFloat(String name, float defaultValue)
int getInt(String name, int defaultValue)
long getLong(String name, long defaultValue)
void put(String name, boolean value)
void put(String name, double value)
void put(String name, float value)
void put(String name, int value)
void put(String name, long value)
void clear(Class<?> c)
void clearAll()
void clear(String key)
void putMap(Class<?> prefClass, Map<String,String> map, String key)
void putMap(String absolutePath, Map<String,String> map)
void putMap(Class<?> prefClass, Map<String,String> map)
void putMap(String absolutePath, Map<String,String> map, String key)
Map<String,String> getMap(Class<?> prefClass, String key)
void putList(Class<?> prefClass, List<String> list, String key)
void putList(String absolutePath, List<String> list, String key)
void putList(String absolutePath, List<String> list)
List<String> getList(String absolutePath, String key)
List<String> getList(Class<?> prefClass, String key)
List<String> getList(Class<?> prefClass)
void putIterable(Iterable<String> iterable, String key)
void putIterable(Class<?> prefClass, Iterable<String> iterable, String key)
Copyright © 2009–2015 SciJava. All rights reserved.