Changeset 4453


Ignore:
Timestamp:
Mar 18, 2013, 1:26:59 PM (10 years ago)
Author:
olle
Message:

#800. Added client class for removing files from biomaterial.

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  
    3838import org.proteios.action.extract.ViewExtract;
    3939import org.proteios.action.file.ViewFile;
     40import org.proteios.action.sample.RemoveFilesFromBioMaterial;
    4041import org.proteios.action.write.AddAnnotation;
    4142import org.proteios.core.Annotation;
     
    207208        // Use
    208209        table.setTitle("AssociatedFiles");
     210        table.add(new Column<Checkbox<VInteger>>(""));
    209211        table.add(new Column<String>("Name"));
    210212        table.add(new Column<String>("Type"));
     
    213215            file = files.next();
    214216            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);
    215221            nameCell = new Cell<String>(file.getName());
    216222            ActionLink viewFile = getActionFactory().getActionLink(
     
    243249        fileLink.addParameter(BioMaterialIdField.VPARAM, sample.getId());
    244250        toolbar.add(fileLink);
     251        ActionLink al = getActionFactory().getActionLink(
     252            RemoveFilesFromBioMaterial.class, "Remove");
     253        al.addParameter(RemoveFilesFromBioMaterial.VBIOMATERIALID, sample.getId());
     254        toolbar.add(al);
    245255        return table;
    246256    }
Note: See TracChangeset for help on using the changeset viewer.