@TraceDisabled public class LabelCache extends java.util.HashMap<java.lang.String,java.lang.Object>
| Constructor and Description |
|---|
LabelCache(int initialCapacity,
float loadFactor,
java.lang.String anapp)
Constructor taking both hash map sizing parameters
(initialCapacity, loadFactor).
|
LabelCache(int initialCapacity,
java.lang.String anapp)
Constructor taking HashMap initial capacity
|
LabelCache(java.lang.String anapp)
Constructor using default HashMap values
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String key)
Fetches the string value for control id/property.
|
java.lang.String |
getCacheApp()
Returns the application this cache is for
|
java.util.Date |
getCacheCreateDate()
Returns the data/time this cache was created
|
java.lang.String |
getString(java.lang.String id,
java.lang.String property)
Fetches the string value for control id/property.
|
boolean |
isModified()
Returns true of cache was modified
|
static java.lang.String |
makeUniqueKey(java.lang.String id,
java.lang.String property)
Makes a concatenated key for control id/property pairs.
|
java.lang.Object |
put(java.lang.String id,
java.lang.String property,
java.lang.Object value)
Put method added to take the two keys and the value.
|
java.lang.Object |
remove(java.lang.String id,
java.lang.String property) |
void |
setModified(boolean modified)
Sets the cache to be modified or not
|
public LabelCache(int initialCapacity,
float loadFactor,
java.lang.String anapp)
initialCapacity - The initial capacityloadFactor - The load factoranapp - Application the cache is forHashMappublic LabelCache(int initialCapacity,
java.lang.String anapp)
initialCapacity - The initial capacityalocale - Locale the cache is foranapp - Application the cache is foratype - Type of labels in the cacheHashMappublic LabelCache(java.lang.String anapp)
alocale - Locale the cache is foranapp - Application the cache is foratype - Type of labels in the cacheHashMappublic static java.lang.String makeUniqueKey(java.lang.String id,
java.lang.String property)
id - control id for the propertyproperty - name of the propertypublic java.lang.String getCacheApp()
public java.util.Date getCacheCreateDate()
public java.lang.Object put(java.lang.String id,
java.lang.String property,
java.lang.Object value)
id - Control idproperty - Control Propertyvalue - The value to be added to the hashmappublic java.lang.Object remove(java.lang.String id,
java.lang.String property)
public java.lang.String get(java.lang.String key)
key - Control keypublic java.lang.String getString(java.lang.String id,
java.lang.String property)
id - Control idproperty - Control Propertypublic boolean isModified()
public void setModified(boolean modified)