|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.callback.rec.DsettingRec
Base functionality for all player/driver setting items
| Field Summary | |
protected java.lang.Object |
def_value
the default value |
protected java.lang.String |
desc
the description of the setting item, for the locale |
protected java.lang.String |
id
an identifier to refer to a specific setting |
protected boolean |
is_required
is the user required to provide a value? |
protected java.util.Locale |
locale
the locale of the name and description of the setting item |
protected java.lang.String |
name
the title of the setting item |
protected int |
set_type
the type of the setting item (int, bool, etc) |
protected java.lang.Object |
value
the value |
| Fields inherited from interface jreceiver.common.callback.rec.Dsetting |
DSETTING_TYPE_BOOL, DSETTING_TYPE_INT, DSETTING_TYPE_LIST, DSETTING_TYPE_STR, DSETTING_TYPE_URL, HKEY_DSETTING_DESC, HKEY_DSETTING_ID, HKEY_DSETTING_IS_REQUIRED, HKEY_DSETTING_LOCALE_COUNTRY, HKEY_DSETTING_LOCALE_LANG, HKEY_DSETTING_NAME, HKEY_DSETTING_TYPE, OPTIONAL, REQUIRED |
| Constructor Summary | |
DsettingRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
|
DsettingRec(java.lang.String id,
int set_type,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale)
|
|
| Method Summary | |
static DsettingRec |
createInstance(java.util.Hashtable hash)
Create a basic SettingRec object of the specified type. |
java.lang.Object |
getDefaultValue()
default value get |
java.lang.String |
getDesc()
|
java.lang.String |
getId()
|
boolean |
getIsBoolSetting()
|
boolean |
getIsIntSetting()
|
boolean |
getIsListSetting()
|
boolean |
getIsRequired()
|
boolean |
getIsStrSetting()
|
boolean |
getIsUrlSetting()
|
java.util.Locale |
getLocale()
|
java.lang.String |
getName()
|
int |
getType()
|
java.lang.Object |
getValue()
value get |
static java.util.Vector |
reconstitute(java.util.Vector vector)
Reconstitute each DsettingRec object that appears as a hash in the list. |
static java.util.Hashtable |
reconstituteMap(java.util.Hashtable map)
Reconstitute each DsettingRec object that appears as a hash in the map. |
void |
setDefaultValue(java.lang.Object def_value)
default value set |
void |
setValue(java.lang.Object value)
value set |
java.util.Hashtable |
toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class jreceiver.common.rec.BaseRec |
dissolve, dissolveMap, find, find, find, find |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.Object value
protected java.lang.Object def_value
protected java.lang.String id
protected int set_type
protected boolean is_required
protected java.lang.String name
protected java.lang.String desc
protected java.util.Locale locale
| Constructor Detail |
public DsettingRec(java.lang.String id,
int set_type,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale)
public DsettingRec(java.util.Hashtable hash)
hash - | Method Detail |
public java.lang.String getId()
getId in interface Dsettingpublic int getType()
getType in interface Dsettingpublic boolean getIsRequired()
getIsRequired in interface Dsettingpublic java.lang.String getName()
getName in interface Dsettingpublic java.lang.String getDesc()
getDesc in interface Dsettingpublic java.util.Locale getLocale()
getLocale in interface Dsettingpublic java.lang.Object getValue()
getValue in interface Dsettingpublic void setValue(java.lang.Object value)
setValue in interface Dsettingpublic java.lang.Object getDefaultValue()
getDefaultValue in interface Dsettingpublic void setDefaultValue(java.lang.Object def_value)
setDefaultValue in interface Dsettingpublic java.lang.String toString()
toString in interface HashabletoString in class java.lang.Objectpublic boolean getIsBoolSetting()
getIsBoolSetting in interface Dsettingpublic boolean getIsIntSetting()
getIsIntSetting in interface Dsettingpublic boolean getIsStrSetting()
getIsStrSetting in interface Dsettingpublic boolean getIsUrlSetting()
getIsUrlSetting in interface Dsettingpublic boolean getIsListSetting()
getIsListSetting in interface Dsettingpublic java.util.Hashtable toHash()
Use DsettingRec(Hashtable) to transform the data
back into an object of this type.
toHash in interface Hashable
public static DsettingRec createInstance(java.util.Hashtable hash)
throws RecException
pl_type -
public static java.util.Vector reconstitute(java.util.Vector vector)
throws RecException
public static java.util.Hashtable reconstituteMap(java.util.Hashtable map)
throws RecException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||