public final class RescatPreferences extends HashStructureAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_KEY |
_hash
Constructor and Description |
---|
RescatPreferences(HashStructure hash) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(java.lang.String path,
java.lang.String expr)
Adds or replace a filter on one specific path.
|
java.lang.String |
findFilter(java.lang.String path)
Returns the filter expression for the specified path, or null if
a filter has not been defined.
|
static RescatPreferences |
getInstance()
Returns the resource catalog preferences.
|
static RescatPreferences |
getInstance(PropertyStorage prefs)
Returns the resource catalog preferences.
|
boolean |
isPaletteVisible() |
void |
removeFilters(java.lang.String rootPath)
Removes all filters below a path.
|
void |
renameFilter(java.lang.String oldPath,
java.lang.String newPath) |
void |
setPaletteVisible(boolean visible) |
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
public static final java.lang.String DATA_KEY
public RescatPreferences(HashStructure hash)
public static RescatPreferences getInstance()
public static RescatPreferences getInstance(PropertyStorage prefs)
public boolean isPaletteVisible()
public void setPaletteVisible(boolean visible)
public java.lang.String findFilter(java.lang.String path)
public void addFilter(java.lang.String path, java.lang.String expr)
public void removeFilters(java.lang.String rootPath)
public void renameFilter(java.lang.String oldPath, java.lang.String newPath)