to top
Datalogic APIs
public class

NumericProperty

extends Property<T>
java.lang.Object
   ↳ com.datalogic.device.configuration.Property<T>
     ↳ com.datalogic.device.configuration.NumericProperty

Class Overview

NumericProperty is the class that implements the property of type Integer.

Summary

Public Constructors
NumericProperty(int index, int min, int max)
Constructor
NumericProperty(int index)
Constructor
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
From class java.lang.Object

Public Constructors

public NumericProperty (int index, int min, int max)

Added in revision 1

Constructor

Parameters
index int
min int
max int

public NumericProperty (int index)

Added in revision 1

Constructor

Parameters
index int
Throws
ConfigException in case of error, when exceptions are enabled through the ErrorManager singleton.

Public Methods

public int getMax ()

Added in revision 1

Get max limit

Returns
  • int

public int getMin ()

Added in revision 1

Get min limit

Returns
  • int

public int set (Integer value)

Added in revision 1

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.