- DisclosurePanel allTags = new DisclosurePanel("All tags");\r
- allTagsContent = new FlowPanel();\r
- allTagsContent.setWidth("100%");\r
- for (Tag t : app.getAllTags()) {\r
- final Anchor tagAnchor = new Anchor(t.getName(), false);\r
- tagAnchor.addStyleName("pithos-tag");\r
- allTagsContent.add(tagAnchor);\r
- Label separator = new Label(", ");\r
- separator.addStyleName("pithos-tag");\r
- allTagsContent.add(separator);\r
- tagAnchor.addClickHandler(new ClickHandler() {\r
+ Label meta = new Label("Meta data");\r
+ generalPanel.add(meta);\r
+ Image plus = new Image("images/plus.png");\r
+ plus.addStyleName("pithos-addInvitationImg");\r
+ generalPanel.add(plus);\r
+ \r
+ metaTable = new FlexTable();\r
+ metaTable.setCellSpacing(0);\r
+ metaTable.setHTML(0, 0, "Name");\r
+ metaTable.getFlexCellFormatter().setStyleName(0, 0, "props-labels");\r
+ metaTable.setText(0, 1, "Value");\r
+ metaTable.getFlexCellFormatter().setStyleName(0, 1, "props-labels");\r
+ int rows = 1;\r
+ for (String metaKey : file.getMeta().keySet()) {\r
+ addFormLine(metaTable, rows++, metaKey, file.getMeta().get(metaKey));\r
+ }\r
+ \r
+ plus.addClickHandler(new ClickHandler() {\r
+ \r
+ @Override\r
+ public void onClick(ClickEvent event) {\r
+ addFormLine(metaTable, metaTable.getRowCount(), "", "");\r
+ }\r
+ });\r