selectedKeys.add(dataSource.getRowKey(row));
}
- getRpcProxy(GridServerRpc.class).selectionChange(
+ getRpcProxy(GridServerRpc.class).select(
new ArrayList<String>(selectedKeys));
} else {
updatedFromState = false;
* @param listener
* the sort order change listener to remove
*/
- public void removeSortistener(SortListener listener);
+ public void removeSortListener(SortListener listener);
}
}
registerRpc(new GridServerRpc() {
@Override
- public void selectionChange(List<String> selection) {
+ public void select(List<String> selection) {
Collection<Object> receivedSelection = getKeyMapper()
.getItemIds(selection);
* the sort order change listener to remove
*/
@Override
- public void removeSortistener(SortListener listener) {
+ public void removeSortListener(SortListener listener) {
removeListener(SortEvent.class, listener, SORT_ORDER_CHANGE_METHOD);
}
* @author Vaadin Ltd
*/
public interface GridServerRpc extends ServerRpc {
- void selectionChange(List<String> newSelection);
- void sort(String[] columnIds, SortDirection[] directions,
- boolean userOriginated);
+ void select(List<String> newSelection);
void selectAll();
+
+ void sort(String[] columnIds, SortDirection[] directions,
+ boolean userOriginated);
}
import org.openqa.selenium.interactions.Actions;
import com.vaadin.testbench.elements.GridElement.GridRowElement;
-import com.vaadin.tests.components.grid.basicfeatures.GridBasicFeaturesTest;
+import com.vaadin.tests.components.grid.basicfeatures.GridBasicClientFeaturesTest;
-public class DisabledGridClientTest extends GridBasicFeaturesTest {
+public class DisabledGridClientTest extends GridBasicClientFeaturesTest {
@Before
public void setUp() {
}
}, "Component", "State", "Frozen column count");
}
+
+ addMenuCommand("Enabled", new ScheduledCommand() {
+
+ @Override
+ public void execute() {
+ grid.setEnabled(!grid.isEnabled());
+ }
+ }, "Component", "State");
}
private void createColumnsMenu() {