blob: 82e08999b49d78f9b1fc2029a02967466b8c7a24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* 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.grid;
import com.vaadin.shared.communication.ClientRpc;
/**
* An RPC interface for the grid editor server-to-client communications.
*
* @since 7.4
* @author Vaadin Ltd
*/
public interface EditorClientRpc extends ClientRpc {
/**
* Tells the client to open the editor and bind data to it.
*
* @param rowIndex
* the index of the edited row
*/
void bind(int rowIndex);
/**
* Tells the client to cancel editing and hide the editor.
*
* @param rowIndex
* the index of the edited row
*/
void cancel(int rowIndex);
/**
* Confirms a pending {@link EditorServerRpc#bind(int) bind request} sent by
* the client.
*
* @param bindSucceeded
* <code>true</code> iff the bind action was successful
*/
void confirmBind(boolean bindSucceeded);
/**
* Confirms a pending {@link EditorServerRpc#save(int) save request} sent by
* the client.
*
* @param saveSucceeded
* <code>true</code> iff the save action was successful
*/
void confirmSave(boolean saveSucceeded);
}
|