Browse Source

Fix for #5112

svn changeset:13499/svn branch:6.4
tags/6.7.0.beta1
John Alhroos 14 years ago
parent
commit
5440919469
2 changed files with 10 additions and 13 deletions
  1. 10
    1
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
  2. 0
    12
      src/com/vaadin/ui/Table.java

+ 10
- 1
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java View File

@@ -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();
}
}

+ 0
- 12
src/com/vaadin/ui/Table.java View File

@@ -3079,18 +3079,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.
*

Loading…
Cancel
Save