Focus new type assumption field

This commit is contained in:
Arne Keller 2021-02-13 10:11:48 +01:00
parent 0e1c596702
commit c6eb794049
2 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,13 @@ public class TypeAssumptionField extends HorizontalLayout implements LocaleChang
setId(ASSUMPTIONS_FIELD_ID);
}
/**
* Focus the variable field of this element.
*/
protected void focus() {
variableInputField.focus();
}
/**
* Gets the variable of the type assumption.
*

View File

@ -94,6 +94,7 @@ public class TypeAssumptionsArea extends Dialog implements LocaleChangeObserver
});
assumptionContainer.add(assumption);
fields.add(assumption);
assumption.focus();
}
private void onDeleteAllClick() {