mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
PL-8716 TokenList requestFocus is ignored
This commit is contained in:
parent
fa7ae04040
commit
ce3f4d6a27
@ -955,7 +955,7 @@ public class DesktopTokenList extends DesktopAbstractField<JPanel> implements To
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void refreshComponent() {
|
||||
if (editor != null) {
|
||||
remove(editor);
|
||||
@ -1149,4 +1149,13 @@ public class DesktopTokenList extends DesktopAbstractField<JPanel> implements To
|
||||
protected boolean isEmpty(Object value) {
|
||||
return super.isEmpty(value) || (value instanceof Collection && ((Collection) value).isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestFocus() {
|
||||
if (simple) {
|
||||
addButton.requestFocus();
|
||||
} else {
|
||||
lookupPickerField.requestFocus();
|
||||
}
|
||||
}
|
||||
}
|
@ -904,4 +904,13 @@ public class WebTokenList extends WebAbstractField<WebTokenList.CubaTokenList> i
|
||||
protected boolean isEmpty(Object value) {
|
||||
return super.isEmpty(value) || (value instanceof Collection && ((Collection) value).isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestFocus() {
|
||||
if (simple) {
|
||||
addButton.requestFocus();
|
||||
} else {
|
||||
lookupPickerField.requestFocus();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user