<NUMBER> : Input Field of Number Type

Java class : leon.view.LyNumber

ROLE

An input field of Number type allows displaying a graphical component allowing to input or to consult a number value.
It does not comprise any element.
It is possible to specify the minimum and the maximum value, the incrementation step, the number of decimals and the unit.

ATTRIBUTES

<!ATTLIST NUMBER
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  label CDATA #IMPLIED
	  format CDATA #IMPLIED
	  vMin NMTOKEN "Double.NEGATIVE_INFINITY"
	  vMax NMTOKEN "Double.POSITIVE_INFINITY"
	  pitch NMTOKEN "0"
	  decimals NMTOKEN #IMPLIED
	  modulo ( true | false) "false"
	  unit CDATA #IMPLIED
	  bean CDATA #IMPLIED
	  font CDATA #IMPLIED
	  enabledColor CDATA #IMPLIED
	  disabledColor CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  arrows ( true | false) "true"
	  arrowUp CDATA #IMPLIED
	  arrowDown CDATA #IMPLIED
	  nCols NMTOKEN #IMPLIED>
Attribute Mand. Description Default
id no NUMBER.id  
template no NUMBER.template  
label no Value displayed for the number.  
format no Display format of the number.  
vMin no Minimum value.
The provided value can be a positive or a negative integer, or else a non integer value (the decimal delimiter being a dot).
Double.NEGATIVE_INFINITY
vMax no Maximum value.
The provided value can be a positive or a negative integer, or else a non integer value (the decimal delimiter being a dot).
Double.POSITIVE_INFINITY
pitch no Incrementation step.
The provided value can be a positive or a negative integer, or else a non integer value (the decimal delimiter being a dot).
0
decimals no Number of decimals.
The expected value is a positive integer value.
Any other value is equivalent to the value 0 (indicating a field of integer type).
-1
modulo no Indicates if the number value is a modulo of its maximum value. By default the number value is not a modulo of its maximum value. false
unit no Unit.
The expected value is a string which format is free (this label should nevertheless remain short because it it intended to be displayed after the graphical component).
Its content is purely informative.
 
bean no Allows specifying the name of a Java class that replaces the default graphical component.  
font no NUMBER.font  
enabledColor no NUMBER.enabledColor  
disabledColor no NUMBER.disabledColor  
fontColor no NUMBER.fontColor  
arrows no Indicates if arrows are displayed or not on the numeric field. true
arrowUp no Image of the button used for increasing the current value.  
arrowDown no Image of the button used for decreasing the current value.  
nCols no Gives the number of digits used to present the numeric field. -1

SAMPLE

<!-- Integer comprised between 1 and 10,000 and expressed in Mbit/s -->
<NUMBER label="100" vMin="1" vMax="10000" pitch="100" unit="Mbit/s"/>

<!-- Number with 3 decimals and an incrementation step of 0.01 -->
<NUMBER vMin="-1" vMax="1" pitch="0.01" decimals="3"/>