summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2010-06-02 12:52:37 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2010-06-02 12:52:37 +0000
commit5440919469e6955d5fc779be2f8edd44a9bb2644 (patch)
tree32334849af88f700a8afcb0e16d4382d3dfd2b16
parent3292a1ddd2d2787d152532383282237f28d99e28 (diff)
downloadvaadin-framework-5440919469e6955d5fc779be2f8edd44a9bb2644.tar.gz
vaadin-framework-5440919469e6955d5fc779be2f8edd44a9bb2644.zip
Fix for #5112
svn changeset:13499/svn branch:6.4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java11
-rw-r--r--src/com/vaadin/ui/Table.java12
2 files changed, 10 insertions, 13 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index c6f74bc360..e8cf37c1ff 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -50,6 +50,7 @@ import com.google.gwt.user.client.ui.Widget;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
import com.vaadin.terminal.gwt.client.Container;
+import com.vaadin.terminal.gwt.client.Focusable;
import com.vaadin.terminal.gwt.client.MouseEventDetails;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.RenderSpace;
@@ -90,7 +91,7 @@ import com.vaadin.terminal.gwt.client.ui.dd.VerticalDropLocation;
*/
public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
VHasDropHandler, KeyPressHandler, KeyDownHandler, FocusHandler,
- BlurHandler {
+ BlurHandler, Focusable {
public static final String CLASSNAME = "v-table";
public static final String CLASSNAME_SELECTION_FOCUS = CLASSNAME + "-focus";
@@ -5038,4 +5039,12 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
return false;
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see com.vaadin.terminal.gwt.client.Focusable#focus()
+ */
+ public void focus() {
+ scrollBodyPanel.focus();
+ }
}
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java
index 336436530c..8c9a0afc3d 100644
--- a/src/com/vaadin/ui/Table.java
+++ b/src/com/vaadin/ui/Table.java
@@ -3080,18 +3080,6 @@ public class Table extends AbstractSelect implements Action.Container,
}
/**
- * Focusing to this component is not supported.
- *
- * @throws UnsupportedOperationException
- * if invoked.
- * @see com.vaadin.ui.AbstractField#focus()
- */
- @Override
- public void focus() throws UnsupportedOperationException {
- throw new UnsupportedOperationException();
- }
-
- /**
* Gets the ID of the Item following the Item that corresponds to itemId.
*
* @see com.vaadin.data.Container.Ordered#nextItemId(java.lang.Object)