public class ParamsImpl extends Object implements Params
Modifier and Type | Field and Description |
---|---|
static int |
CHECK |
static int |
CHOICE |
static int |
MULTI_CHECK |
static int |
NONE |
static int |
SLIDER |
Constructor and Description |
---|
ParamsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
changeParamValue(String id,
Object value)
Asigna un valor para un parámetro existens.
|
void |
clear()
Inicializa la lista de parámetros
|
Object |
clone()
Clones this object
|
int |
getNumParams()
Obtiene el número de parámetros.
|
Param |
getParam(int param)
Obtiene el parámetro de la posición definida por param
|
Param |
getParamById(String id)
Obtiene un parámetro de la lista a partir de su identificador
|
List<Param> |
getParams()
Devuelve el array de los Params
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
removeParam(String id)
Borra los parametros asociados a ese id
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setManagerID(String id) |
void |
setParam(Param param)
Asigna el parámetro pasado a la lista de parámetros necesitados por el driver
|
void |
setParam(String id,
Object value)
Asigna un parámetro.
|
void |
setParam(String id,
Object value,
int type,
String[] list)
Asigna un parámetro.
|
public static final int NONE
public static final int CHECK
public static final int CHOICE
public static final int SLIDER
public static final int MULTI_CHECK
public void setManagerID(String id)
setManagerID
in interface Params
public Param getParam(int param)
public void setParam(Param param)
public Param getParamById(String id)
getParamById
in interface Params
id
- Identificador del parámetropublic void setParam(String id, Object value, int type, String[] list)
Params
public void setParam(String id, Object value)
Params
public void removeParam(String id)
removeParam
in interface Params
id
- public void changeParamValue(String id, Object value)
changeParamValue
in interface Params
id
- Identificador del parámetrovalue
- Valor a asignarpublic int getNumParams()
getNumParams
in interface Params
public Object clone() throws CloneNotSupportedException
Params
clone
in interface Params
clone
in class Object
CloneNotSupportedException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistence()