Closed gonuke closed 9 years ago
The only thing missing is that I don't test that it's an integer, which the schema probably expects?
Looks good Paul. We can probably add the integer check after? Or we can use my number only text field for this as well.
Can you point me to the number only text field?
I thought I extended the class but I guess not.
This code should do the trick when building the text field.
TextField isoWeightFrac = new TextField(){
@Override public void replaceText(int start, int end, String text) {
if (!text.matches("[a-z]")){
super.replaceText(start, end, text);
}
}
public void replaceSelection(String text) {
if (!text.matches("[a-z]")){
super.replaceSelection(text);
}
}
};
sorry that bottom bit of code is superfluous. Just need
TextField isoWeightFrac = new TextField(){
@Override public void replaceText(int start, int end, String text) {
if (!text.matches("[a-z]")){
super.replaceText(start, end, text);
}
}
};
hold on whitespace....
whitespace updated...
Is this ready paul?
one sec... switching to context menus as part of this
ready now
crap!! wrong PR hold on
Nope.. it's OK. You already merged #111. The last few commits are more related to that, so this should be good to go on top of that merge.
my first PR from 30,000 ft!