List of usage examples for com.google.gwt.user.cellview.client CellBrowser setKeyboardSelectionPolicy
@Override public void setKeyboardSelectionPolicy(KeyboardSelectionPolicy policy)
From source file:com.google.gwt.examples.cellview.CellBrowserExample2.java
License:Apache License
public void onModuleLoad() { // Create a model for the browser. TreeViewModel model = new CustomTreeModel(); /*/* w w w . j a v a2 s. co m*/ * Create the browser using the model. We use <code>null</code> as the * default value of the root node. The default value will be passed to * CustomTreeModel#getNodeInfo(); */ CellBrowser browser = new CellBrowser(model, null); browser.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); // Add the browser to the root layout panel. RootLayoutPanel.get().add(browser); }