-
Notifications
You must be signed in to change notification settings - Fork 0
/
textfields.pde
24 lines (22 loc) · 912 Bytes
/
textfields.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public void setmaxspeakchange(GTextField textfield, GEvent event) { //_CODE_:textarea1:333925:
println("textfield1 - GTextArea >> GEvent." + event + " @ " + millis());
if(isStringInt(setmaxspeak.getText())){
spokentimermax = Integer.parseInt(setmaxspeak.getText());
}
} //_CODE_:textarea1:333925:
public void setmaxcaucuschange(GTextField source, GEvent event) { //_CODE_:textfield1:427748:
println("textfield1 - GTextField >> GEvent." + event + " @ " + millis());
if(isStringInt(setmaxcaucus.getText())){
caucustimermax = Integer.parseInt(setmaxcaucus.getText());
}
resetclick(reset, event);
image(loadingbarcaucus, width / 4, 2 * height / 3 + loadingbar.height);
} //_CODE_:textfield1:427748:
public boolean isStringInt(String s){
try{
Integer.parseInt(s);
return true;
} catch (NumberFormatException ex){
return false;
}
}