* @throws IllegalArgumentException
* if the provided id is not recognized by the data source.
*/
- public void scrollToItem(Object itemId) throws IllegalArgumentException {
- scrollToItem(itemId, ScrollDestination.ANY);
+ public void scrollTo(Object itemId) throws IllegalArgumentException {
+ scrollTo(itemId, ScrollDestination.ANY);
}
/**
* @throws IllegalArgumentException
* if the provided id is not recognized by the data source.
*/
- public void scrollToItem(Object itemId, ScrollDestination destination)
+ public void scrollTo(Object itemId, ScrollDestination destination)
throws IllegalArgumentException {
int row = datasource.indexOfId(itemId);
new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
- grid.scrollToItem(Integer.valueOf(row),
+ grid.scrollTo(Integer.valueOf(row),
ScrollDestination.MIDDLE);
}
});