aboutsummaryrefslogtreecommitdiffstats
path: root/shared/src/com
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-02-11 10:15:15 +0100
committerVaadin Code Review <review@vaadin.com>2016-03-14 09:07:39 +0000
commit888fec0669c3a34ffaedb883029b37b10b00399a (patch)
treed9ad6aebdb696e47414bf9494ce08b0900b64014 /shared/src/com
parentacab3d3c0c8eda303a8aa331ba5b17d38164542a (diff)
downloadvaadin-framework-888fec0669c3a34ffaedb883029b37b10b00399a.tar.gz
vaadin-framework-888fec0669c3a34ffaedb883029b37b10b00399a.zip
Initial import of TypedGrid component
This patch introduces a generics version of Grid. Change-Id: I0777a0468ccb5f38e266aa0f33ceb8d0324d72dd
Diffstat (limited to 'shared/src/com')
-rw-r--r--shared/src/com/vaadin/shared/ui/proto/TypedGridClientRpc.java24
-rw-r--r--shared/src/com/vaadin/shared/ui/proto/TypedGridColumnState.java24
-rw-r--r--shared/src/com/vaadin/shared/ui/proto/TypedGridServerRpc.java23
-rw-r--r--shared/src/com/vaadin/shared/ui/proto/TypedGridState.java21
4 files changed, 92 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/proto/TypedGridClientRpc.java b/shared/src/com/vaadin/shared/ui/proto/TypedGridClientRpc.java
new file mode 100644
index 0000000000..4fcec759bf
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/proto/TypedGridClientRpc.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui.proto;
+
+import com.vaadin.shared.communication.ClientRpc;
+
+public interface TypedGridClientRpc extends ClientRpc {
+
+ void setColumnOrder(String[] columnOrder);
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/proto/TypedGridColumnState.java b/shared/src/com/vaadin/shared/ui/proto/TypedGridColumnState.java
new file mode 100644
index 0000000000..26b229f793
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/proto/TypedGridColumnState.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui.proto;
+
+import com.vaadin.shared.communication.SharedState;
+
+public class TypedGridColumnState extends SharedState {
+
+ public String id;
+
+}
diff --git a/shared/src/com/vaadin/shared/ui/proto/TypedGridServerRpc.java b/shared/src/com/vaadin/shared/ui/proto/TypedGridServerRpc.java
new file mode 100644
index 0000000000..467422c743
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/proto/TypedGridServerRpc.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui.proto;
+
+import com.vaadin.shared.communication.ServerRpc;
+
+public interface TypedGridServerRpc extends ServerRpc {
+
+ void setSelected(String rowKey);
+}
diff --git a/shared/src/com/vaadin/shared/ui/proto/TypedGridState.java b/shared/src/com/vaadin/shared/ui/proto/TypedGridState.java
new file mode 100644
index 0000000000..9fe8260462
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/proto/TypedGridState.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui.proto;
+
+import com.vaadin.shared.AbstractComponentState;
+
+public class TypedGridState extends AbstractComponentState {
+}