|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MetaInfo
This interface defines Meta Information about a Preferences node. It must always be seen in conjunction with the Preferences it describes.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_ICONRES
Store a reference to a Icon resource under this key |
static java.lang.String |
KEY_LONGDESC
Store a key for the value of a resource bundle containing long descriptions or the description itself under this key |
static java.lang.String |
KEY_NAME
Store a key for the value of a resource bundle containing the name of the preference/node or the name itself under this key |
static java.lang.String |
KEY_SHORTDESC
Store a key for the value of a resource bundle containing short descriptions or the description itself under this key |
static java.lang.String |
KEY_TYPE
Store the pref type under this key |
static java.lang.String |
KEY_USEREDIT
Store the fact if a user (not admin) may edit the pref under this key |
static int |
TYPE_boolean
|
static int |
TYPE_byteArray
|
static int |
TYPE_double
|
static int |
TYPE_float
|
static int |
TYPE_int
|
static int |
TYPE_long
|
static int |
TYPE_string
|
static int |
TYPE_undefined
|
| Method Summary | |
|---|---|
java.lang.String |
getMappingInfo(java.lang.String key,
java.lang.String infoKey,
java.lang.String defaultInfo)
Retrieve a piece of Information stored about the mapping identified by its key inside the node this MetaInfo describes mapped to the infoKey. |
java.lang.String |
getNodeInfo(java.lang.String infoKey,
java.lang.String defaultInfo)
Retrieve a piece of Information stored about the node described by this MetaInfo under the given key. |
int |
getType(java.lang.String key)
Get the type of the value mapped with the given key. |
boolean |
isUserEditable(java.lang.String key)
Check if the value of the mapping with the given key is editable by users or by admins only. |
void |
setMappingInfo(java.lang.String key,
java.lang.String infoKey,
java.lang.String info)
Store a piece of Information about the mapping identified by its key inside the node described by this MetaInfo. |
void |
setNodeInfo(java.lang.String infoKey,
java.lang.String info)
Store a piece of Information about the node described by this MetaInfo under the given key. |
void |
setType(java.lang.String key,
int type)
Set the type of the value mapped with the given key. |
void |
setUserEditable(java.lang.String key,
boolean editable)
Set if the value of the mapping with the given key should be editable by users or by admins only. |
| Field Detail |
|---|
static final int TYPE_undefined
static final int TYPE_string
static final int TYPE_int
static final int TYPE_long
static final int TYPE_double
static final int TYPE_float
static final int TYPE_boolean
static final int TYPE_byteArray
static final java.lang.String KEY_ICONRES
static final java.lang.String KEY_NAME
static final java.lang.String KEY_SHORTDESC
static final java.lang.String KEY_LONGDESC
static final java.lang.String KEY_USEREDIT
static final java.lang.String KEY_TYPE
| Method Detail |
|---|
int getType(java.lang.String key)
key - the key of the mapping
void setType(java.lang.String key,
int type)
key - the key of the mappingtype - the new type of the mapping. Should be one of the predefined
types.boolean isUserEditable(java.lang.String key)
key - the key of the mapping
void setUserEditable(java.lang.String key,
boolean editable)
key - the key of the mappingeditable - the new state: true: users may edit false: admins only
java.lang.String getNodeInfo(java.lang.String infoKey,
java.lang.String defaultInfo)
infoKey - the key the data was mapped todefaultInfo - the default to be returned on missing data
void setNodeInfo(java.lang.String infoKey,
java.lang.String info)
infoKey - the key to map the data withinfo - the data to be mapped
java.lang.String getMappingInfo(java.lang.String key,
java.lang.String infoKey,
java.lang.String defaultInfo)
key - the key of the mapping data was stored aboutinfoKey - the key the data was mapped todefaultInfo - the default to be returned on missing data
void setMappingInfo(java.lang.String key,
java.lang.String infoKey,
java.lang.String info)
key - the key of the mapping to store data aboutinfoKey - key to map the data withinfo - the data to be mapped
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||