Browse Source

Add Javadoc to the ScrollTo methods in TreeGrid (#11399)

* Add Javadoc to the ScrollTo methods in TreeGrid
tags/8.8.0.beta1
Sun Zhe 5 years ago
parent
commit
3775008992
No account linked to committer's email address
1 changed files with 21 additions and 0 deletions
  1. 21
    0
      server/src/main/java/com/vaadin/ui/TreeGrid.java

+ 21
- 0
server/src/main/java/com/vaadin/ui/TreeGrid.java View File

@@ -43,6 +43,7 @@ import com.vaadin.event.CollapseEvent.CollapseListener;
import com.vaadin.event.ExpandEvent;
import com.vaadin.event.ExpandEvent.ExpandListener;
import com.vaadin.shared.Registration;
import com.vaadin.shared.ui.grid.ScrollDestination;
import com.vaadin.shared.ui.treegrid.FocusParentRpc;
import com.vaadin.shared.ui.treegrid.FocusRpc;
import com.vaadin.shared.ui.treegrid.NodeCollapseRpc;
@@ -199,6 +200,26 @@ public class TreeGrid<T> extends Grid<T>
});
}

/**
* This method is inherited from Grid but should never be called directly
* with a TreeGrid
*/
@Override
@Deprecated
public void scrollTo(int row) throws IllegalArgumentException {
super.scrollTo(row);
}

/**
* This method is inherited from Grid but should never be called directly
* with a TreeGrid
*/
@Deprecated
@Override
public void scrollTo(int row, ScrollDestination destination) {
super.scrollTo(row, destination);
}

/**
* Adds an ExpandListener to this TreeGrid.
*

Loading…
Cancel
Save