Changeset 4453
- Timestamp:
- Mar 18, 2013, 1:26:59 PM (10 years ago)
- Location:
- trunk/client/servlet/src/org/proteios/action/sample
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/sample/ViewActiveSample.java
r4431 r4453 38 38 import org.proteios.action.extract.ViewExtract; 39 39 import org.proteios.action.file.ViewFile; 40 import org.proteios.action.sample.RemoveFilesFromBioMaterial; 40 41 import org.proteios.action.write.AddAnnotation; 41 42 import org.proteios.core.Annotation; … … 207 208 // Use 208 209 table.setTitle("AssociatedFiles"); 210 table.add(new Column<Checkbox<VInteger>>("")); 209 211 table.add(new Column<String>("Name")); 210 212 table.add(new Column<String>("Type")); … … 213 215 file = files.next(); 214 216 row = new Row(file.getId()); 217 Checkbox<VInteger> cb = new Checkbox<VInteger>(RemoveFilesFromBioMaterial.VFILEID); 218 cb.setValue(file.getId()); 219 Cell<Checkbox<VInteger>> chk = new Cell<Checkbox<VInteger>>(cb); 220 row.addCell(chk); 215 221 nameCell = new Cell<String>(file.getName()); 216 222 ActionLink viewFile = getActionFactory().getActionLink( … … 243 249 fileLink.addParameter(BioMaterialIdField.VPARAM, sample.getId()); 244 250 toolbar.add(fileLink); 251 ActionLink al = getActionFactory().getActionLink( 252 RemoveFilesFromBioMaterial.class, "Remove"); 253 al.addParameter(RemoveFilesFromBioMaterial.VBIOMATERIALID, sample.getId()); 254 toolbar.add(al); 245 255 return table; 246 256 }
Note: See TracChangeset
for help on using the changeset viewer.