Reviewers: ,
Description:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6483
Please review this at http://gwt-code-reviews.appspot.com/1884803/
Affected files:
user/src/com/google/gwt/user/client/ui/ValueListBox.java
Index: user/src/com/google/gwt/user/client/ui/ValueListBox.java
===================================================================
--- user/src/com/google/gwt/user/client/ui/ValueListBox.java (revision
11461)
+++ user/src/com/google/gwt/user/client/ui/ValueListBox.java (working copy)
@@ -42,7 +42,7 @@
* @param <T> the value type
*/
public class ValueListBox<T> extends Composite implements
- HasConstrainedValue<T>, IsEditor<TakesValueEditor<T>> {
+ Focusable, HasConstrainedValue<T>, IsEditor<TakesValueEditor<T>> {
private final List<T> values = new ArrayList<T>();
private final Map<Object, Integer> valueKeyToIndex = new HashMap<Object,
Integer>();
@@ -88,6 +88,11 @@
return editor;
}
+ @Override
+ public int getTabIndex() {
+ return getListBox().getTabIndex();
+ }
+
public T getValue() {
return value;
}
@@ -105,6 +110,21 @@
updateListBox();
}
+ @Override
+ public void setAccessKey(char key) {
+ getListBox().setAccessKey(key);
+ }
+
+ @Override
+ public void setFocus(boolean focused) {
+ getListBox().setFocus(focused);
+ }
+
+ @Override
+ public void setTabIndex (int index) {
+ getListBox().setTabIndex(index);
+ }
+
/**
* Set the value and display it in the select element. Add the value to
the
* acceptable set if it is not already there.
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors