I am having problems to translate this table vaadin in java to clojure:
;; Java
Table table = new Table("This is my Table");
table.addContainerProperty("First Name", String.class, null);
table.addContainerProperty("Last Name", String.class, null);
table.addContainerProperty("Year", Integer.class, null);
table.addItem(new Object[] {
"Nicolaus","Copernicus",new Integer(1473)}, new Integer(1));
table.addItem(new Object[] {
"Tycho", "Brahe", new Integer(1546)}, new Integer(2));
;; Clojure
table (doto (.Table)
(.addContainerProperty "First Name" String.class null)
(.addContainerProperty "Last Name" String.class null)
(.addContainerProperty "Year" Integer.class null)
(.addItem Object. ["Nicolaus" "Copernicus" 1473 1])
(.addItem Object. ["Tycho" "Brahe" 1546 2])
The result is something like this:
<http://vaadin.com/download/current/docs/book/img/components/table-example1.png>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en