
io.github.albertus82.jface.validation.FloatTextValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jface-utils Show documentation
Show all versions of jface-utils Show documentation
Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.
package io.github.albertus82.jface.validation;
import org.eclipse.swt.widgets.Text;
public class FloatTextValidator extends NumberTextValidator {
public FloatTextValidator(final Text text) {
super(text);
}
public FloatTextValidator(final Text text, final boolean emptyStringAllowed) {
super(text, emptyStringAllowed);
}
public FloatTextValidator(final Text text, final boolean emptyStringAllowed, final Float minValidValue, final Float maxValidValue) {
super(text, emptyStringAllowed, minValidValue, maxValidValue);
}
@Override
protected Float toNumber(final String value) {
return Float.valueOf(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy