(boolean b)
| 864 | |
| 865 | /// {@inheritDoc} |
| 866 | @Override |
| 867 | public void setHandlesInput(boolean b) { |
| 868 | Form f = getComponentForm(); |
| 869 | if (f != null) { |
| 870 | // prevent the list from losing focus if its the only element |
| 871 | // or when the user presses fire and there is no other component |
| 872 | super.setHandlesInput(b || f.isSingleFocusMode()); |
| 873 | } else { |
| 874 | super.setHandlesInput(b); |
| 875 | } |
| 876 | } |
| 877 | |
| 878 | void setHandlesInputParent(boolean b) { |
| 879 | super.setHandlesInput(b); |