Guest User

Untitled

a guest
Mar 8th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. List objects = new ArrayList();
  2. objects.add(new PersonRpc("a name", new Integer(1), "a date", "a city", "a country"));
  3. objects.add(new PersonRpc("2nd name", new Integer(2), "2nd date", "2nd city", "2nd country"));
  4.  
  5. Clickinator click = new Clickinator(){
  6.  
  7. public Replicated getReplicated() {
  8. return (Replicated) GWT.create(PersonRpc.class);
  9. }};
  10. HashMap customHeaders = new HashMap();
  11. customHeaders.put("Name", "Nyaaame Boiii");
  12. click.setCustomHeaders(customHeaders);
  13. List excludedColumns = new ArrayList();
  14. excludedColumns.add("date");
  15. excludedColumns.add("city");
  16. excludedColumns.add("country");
  17. click.update(objects, excludedColumns);
  18. RootPanel.get().add(click);
Add Comment
Please, Sign In to add comment