mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 02:40:42 +00:00
examples load instantly when clicked
This commit is contained in:
parent
cde13db5b1
commit
5f35f57151
@ -123,11 +123,7 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onExampleButtonClick() {
|
private void onExampleButtonClick() {
|
||||||
Consumer<String> setValue = value -> {
|
Dialog exampleDialog = new ExampleDialog(this::inferTerm);
|
||||||
inputField.setValue(value);
|
|
||||||
inputField.focus();
|
|
||||||
};
|
|
||||||
Dialog exampleDialog = new ExampleDialog(setValue);
|
|
||||||
exampleDialog.open();
|
exampleDialog.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user