jreceiver.common.callback.rec
Class DsettingListRec

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.callback.rec.DsettingRec
              |
              +--jreceiver.common.callback.rec.DsettingListRec
All Implemented Interfaces:
Dsetting, DsettingList, Hashable

public final class DsettingListRec
extends DsettingRec
implements DsettingList

Bean to represent a list setting item

Version:
$Revision: 1.2 $ $Date: 2002/07/20 01:40:43 $
Author:
Reed Esau

Field Summary
protected  java.util.Vector list
          the items in the list
 
Fields inherited from class jreceiver.common.callback.rec.DsettingRec
def_value, desc, id, is_required, locale, name, set_type, value
 
Fields inherited from interface jreceiver.common.callback.rec.DsettingList
HKEY_LIST_DEF_SELECTED, HKEY_LIST_ITEMS, HKEY_LIST_SELECTED
 
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
DsettingListRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
DsettingListRec(java.lang.String id, boolean is_required, java.lang.String name, java.lang.String desc, java.util.Locale locale, java.util.Vector list, java.lang.String def_value)
           
 
Method Summary
 java.lang.String getDefaultValueList()
          obtain the default selected list item
 java.util.Vector getListItems()
           
 java.lang.String getValueList()
          obtain the selected list item
 void setDefaultValueList(java.lang.String def_value)
          assign the default selected list item
 void setValueList(java.lang.String value)
          assign the selected list item
 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.callback.rec.DsettingRec
createInstance, getDefaultValue, getDesc, getId, getIsBoolSetting, getIsIntSetting, getIsListSetting, getIsRequired, getIsStrSetting, getIsUrlSetting, getLocale, getName, getType, getValue, reconstitute, reconstituteMap, setDefaultValue, setValue
 
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
 
Methods inherited from interface jreceiver.common.callback.rec.Dsetting
getDefaultValue, getDesc, getId, getIsBoolSetting, getIsIntSetting, getIsListSetting, getIsRequired, getIsStrSetting, getIsUrlSetting, getLocale, getName, getType, getValue, setDefaultValue, setValue
 

Field Detail

list

protected java.util.Vector list
the items in the list
Constructor Detail

DsettingListRec

public DsettingListRec(java.lang.String id,
                       boolean is_required,
                       java.lang.String name,
                       java.lang.String desc,
                       java.util.Locale locale,
                       java.util.Vector list,
                       java.lang.String def_value)

DsettingListRec

public DsettingListRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Method Detail

getListItems

public java.util.Vector getListItems()
Specified by:
getListItems in interface DsettingList

getValueList

public java.lang.String getValueList()
Description copied from interface: DsettingList
obtain the selected list item
Specified by:
getValueList in interface DsettingList

setValueList

public void setValueList(java.lang.String value)
Description copied from interface: DsettingList
assign the selected list item
Specified by:
setValueList in interface DsettingList

getDefaultValueList

public java.lang.String getDefaultValueList()
obtain the default selected list item
Specified by:
getDefaultValueList in interface DsettingList

setDefaultValueList

public void setDefaultValueList(java.lang.String def_value)
assign the default selected list item
Specified by:
setDefaultValueList in interface DsettingList

toString

public java.lang.String toString()
Returns a string representation of the object.
Specified by:
toString in interface Hashable
Overrides:
toString in class DsettingRec
Returns:
a string representation of the object.

toHash

public java.util.Hashtable toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar.

Use DsettingRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Overrides:
toHash in class DsettingRec
Returns:
 


Copyright © 2001-2002 Reed Esau, All Rights Reserved.