Class Overview
NumericProperty
is the class that implements the property of
type Integer.
Summary
Public Methods |
int
|
getMax()
Get max limit
|
int
|
getMin()
Get min limit
|
int
|
set(Integer value)
Sets the value of the property, it is not applied to the device.
|
[Expand]
Inherited Methods |
From class
com.datalogic.device.configuration.Property
static
Property
|
findPropertybyId(ArrayList<Property> list, int id)
Finds the corresponding Property matching the passed ID, in a list of Properties.
|
T
|
get()
Gets the current value of the Property.
|
T
|
getDefault()
Gets the default value of the Property.
|
int
|
getId()
Gets the integer value of the unique identifier PropertyID of the property.
|
String
|
getName()
Gets the name of the unique identifier PropertyID of the property.
|
boolean
|
getNeedReboot()
Returns whether a Property needs a device reboot to be applied or not.
|
PropertyType
|
getType()
Gets the type of the Property.
|
boolean
|
isReadOnly()
Returns whether a Property is read only or not.
|
boolean
|
isSupported()
Returns whether a Property is supported or not.
|
int
|
load(PropertyGetter from)
Loads the property with the current set values, through a PropertyGetter.
|
static
int
|
loadlist(PropertyGetter from, ArrayList list)
Loads and sync the current set values into all the Properties contained in the passed list.
|
int
|
set(T value)
Sets the value of the property, it is not applied to the device.
|
int
|
setToDefault()
Resets to the default value the property.
|
int
|
store(PropertyEditor to)
Stores the Property value, applying them.
|
static
int
|
storelist(PropertyEditor to, ArrayList list)
Stores and applies all the Properties and their current associated values.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
NumericProperty
(int index, int min, int max)
Parameters
index
| int |
min
| int |
max
| int
|
public
NumericProperty
(int index)
Public Methods
public
int
set
(Integer value)
Sets the value of the property, it is not applied to the device. To apply the value of the property to the device and make it persistent the method commit()
of ConfigurationManager
must be called.
Parameters
value
| The value to be set. |
Returns
int
SUCCESS
in case of success
otherwise a possible error code, matching one of the ConfigException
error constants.
In case of error, when exceptions are enabled through the ErrorManager
singleton, an exception is thrown.