Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

EditorClientRpc.java 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.v7.shared.ui.grid;
  17. import java.util.List;
  18. import com.vaadin.shared.communication.ClientRpc;
  19. /**
  20. * An RPC interface for the grid editor server-to-client communications.
  21. *
  22. * @since 7.4
  23. * @author Vaadin Ltd
  24. */
  25. public interface EditorClientRpc extends ClientRpc {
  26. /**
  27. * Tells the client to open the editor and bind data to it.
  28. *
  29. * @param rowIndex
  30. * the index of the edited row
  31. */
  32. void bind(int rowIndex);
  33. /**
  34. * Tells the client to cancel editing and hide the editor.
  35. *
  36. * @param rowIndex
  37. * the index of the edited row
  38. */
  39. void cancel(int rowIndex);
  40. /**
  41. * Confirms a pending {@link EditorServerRpc#bind(int) bind request} sent by
  42. * the client.
  43. *
  44. * @param bindSucceeded
  45. * <code>true</code> if the bind action was successful
  46. */
  47. void confirmBind(boolean bindSucceeded);
  48. /**
  49. * Confirms a pending {@link EditorServerRpc#save(int) save request} sent by
  50. * the client.
  51. *
  52. * @param saveSucceeded
  53. * <code>true</code> if the save action was successful
  54. * @param errorMessage
  55. * the error message to show the user
  56. * @param errorColumnsIds
  57. * a list of column keys that should get error markers, or
  58. * <code>null</code> if there should be no error markers
  59. */
  60. void confirmSave(boolean saveSucceeded, String errorMessage,
  61. List<String> errorColumnsIds);
  62. }