NumericTextField Component
This Echo3 component is a subclass of the abstract class 'ActiveTextField' as described elsewhere.
This components only allow the characters, '+', '-', '.' and the digits 0 to 9 to be entered. A range can be set for validation. If a range is invalid, a tooltip is set for the invalid icon which, when hovered over, reveals the valid range of decimal or integer.
Demonstration
This component valids the numeric, integer and non-integer, values given a range. Click on the instructions below to set the ranges so that the input value is valid and invalid.
NumericTextField - Summary API
package org.informagen.echo.app;
import org.informagen.echo.app.ActiveTextField;
public class NumericTextField extends ActiveTextField
public NumericTextField()
public NumericTextField(double minimumValue, double maximumValue)
public boolean isValid()
public boolean isInRange()
public void setValue(double value)
public double getValue()
public void setMinimumValue(double minimumValue)
public double getMinimumValue()
public void setMaximumValue(double maximumValue)
public double getMaximumValue()
}