mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-08 20:12:23 +00:00
bug4476 useing integerbox for global starttime offset
This commit is contained in:
1 parent
ce5e3f3ae0
commit
ffcc58882d
1 file changed
+10
-4
+10
-4
@@ -27,6 +27,7 @@ import com.google.gwt.user.client.ui.DialogBox;
|
||||
import com.google.gwt.user.client.ui.DockPanel;
|
||||
import com.google.gwt.user.client.ui.FlexTable;
|
||||
import com.google.gwt.user.client.ui.FlowPanel;
|
||||
import com.google.gwt.user.client.ui.IntegerBox;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.google.gwt.user.client.ui.ListBox;
|
||||
import com.google.gwt.user.client.ui.ScrollPanel;
|
||||
@@ -114,11 +115,16 @@ public class MultiVideoDialog extends DialogBox {
|
||||
mainContent.add(statusLabel);
|
||||
|
||||
FlowPanel offsetPanel = new FlowPanel();
|
||||
TextBox timeOffset = new TextBox();
|
||||
timeOffset.addValueChangeHandler(new ValueChangeHandler<String>() {
|
||||
IntegerBox timeOffset = new IntegerBox();
|
||||
timeOffset.addValueChangeHandler(new ValueChangeHandler<Integer>() {
|
||||
@Override
|
||||
public void onValueChange(ValueChangeEvent<String> event) {
|
||||
offsetTimeInMS = Integer.parseInt(event.getValue());
|
||||
public void onValueChange(ValueChangeEvent<Integer> event) {
|
||||
Integer value = event.getValue();
|
||||
if (value == null) {
|
||||
offsetTimeInMS = 0;
|
||||
} else {
|
||||
offsetTimeInMS = value;
|
||||
}
|
||||
updateUI();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user