io.github.albertus82.jface.validation.ShortTextValidator 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 ShortTextValidator extends NumberTextValidator {
public ShortTextValidator(final Text text) {
super(text);
}
public ShortTextValidator(final Text text, final boolean emptyStringAllowed) {
super(text, emptyStringAllowed);
}
public ShortTextValidator(final Text text, final boolean emptyStringAllowed, final Short minValidValue, final Short maxValidValue) {
super(text, emptyStringAllowed, minValidValue, maxValidValue);
}
@Override
protected Short toNumber(final String value) {
return Short.valueOf(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy