ScrollBoxLayout should have empty implementation of requestFocus #PL-4959

This commit is contained in:
Yuriy Artamonov 2015-02-24 14:02:56 +00:00
parent 0b492aea60
commit a429902c9a
2 changed files with 0 additions and 13 deletions

View File

@ -141,13 +141,6 @@ public class WebScrollBoxLayout extends WebAbstractComponent<Panel> implements S
@Override
public void requestFocus() {
Iterator<com.vaadin.ui.Component> componentIterator = getContent().iterator();
if (componentIterator.hasNext()) {
com.vaadin.ui.Component childComponent = componentIterator.next();
if (childComponent instanceof com.vaadin.ui.Component.Focusable) {
((com.vaadin.ui.Component.Focusable) childComponent).focus();
}
}
}
@SuppressWarnings("unchecked")

View File

@ -103,12 +103,6 @@ public class WebScrollBoxLayout extends WebAbstractComponent<ScrollablePanel> im
@Override
public void requestFocus() {
if (component.getComponentIterator().hasNext()) {
com.vaadin.ui.Component vComponent = component.getComponentIterator().next();
if (vComponent instanceof com.vaadin.ui.Component.Focusable) {
((com.vaadin.ui.Component.Focusable) vComponent).focus();
}
}
}
@SuppressWarnings("unchecked")