jreceiver.common.callback.rec
Class DsettingIntRec
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.callback.rec.DsettingRec
|
+--jreceiver.common.callback.rec.DsettingIntRec
- All Implemented Interfaces:
- Dsetting, DsettingInt, Hashable
- public final class DsettingIntRec
- extends DsettingRec
- implements DsettingInt
Bean to represent a int setting item
- Version:
- $Revision: 1.2 $ $Date: 2002/07/20 01:40:43 $
- Author:
- Reed Esau
Field Summary |
protected int |
max_val
the upper limit of the int range, inclusive |
protected int |
min_val
the lower limit of the int range, inclusive |
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 |
DsettingIntRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
DsettingIntRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
int def_value)
|
DsettingIntRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
int def_value,
int min_val,
int max_val)
|
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 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 |
min_val
protected int min_val
- the lower limit of the int range, inclusive
max_val
protected int max_val
- the upper limit of the int range, inclusive
DsettingIntRec
public DsettingIntRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
int def_value)
DsettingIntRec
public DsettingIntRec(java.lang.String id,
boolean is_required,
java.lang.String name,
java.lang.String desc,
java.util.Locale locale,
int def_value,
int min_val,
int max_val)
DsettingIntRec
public DsettingIntRec(java.util.Hashtable hash)
- ctor - construct from a hashtable, usually retrieved via XML-RPC
- Parameters:
hash
-
getValueInt
public int getValueInt()
- Specified by:
getValueInt
in interface DsettingInt
setValueInt
public void setValueInt(int value)
- Specified by:
setValueInt
in interface DsettingInt
getDefaultValueInt
public int getDefaultValueInt()
- Specified by:
getDefaultValueInt
in interface DsettingInt
setDefaultValueInt
public void setDefaultValueInt(int def_value)
- Specified by:
setDefaultValueInt
in interface DsettingInt
getMinVal
public int getMinVal()
- Specified by:
getMinVal
in interface DsettingInt
setMinVal
public void setMinVal(int min_val)
- Specified by:
setMinVal
in interface DsettingInt
getMaxVal
public int getMaxVal()
- Specified by:
getMaxVal
in interface DsettingInt
setMaxVal
public void setMaxVal(int max_val)
- Specified by:
setMaxVal
in interface DsettingInt
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.