Changeset 4838
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/clients/web/net/sf/basedb/clients/web/formatter/SpotImageFormatter.java
r4512 r4838 43 43 private final String ID; 44 44 private final String root; 45 public String imgClass = "spotimage"; 45 46 46 47 public SpotImageFormatter(DbControl dc, RawDataType rawDataType, String root) … … 50 51 this.root = root; 51 52 this.ID = dc.getSessionControl().getId(); 53 } 54 55 /** 56 Sets the class attribute for the generated <img> tag 57 that displays the spot image. The default value 58 is "spotimage". 59 @since 2.11 60 */ 61 public void setImgClass(String imgClass) 62 { 63 this.imgClass = imgClass; 52 64 } 53 65 … … 64 76 if (rawBioAssay.hasSpotImages()) 65 77 { 66 sb.append("<img src=\"").append(root).append("/views/rawbioassays/rawdata/spotimage/"); 78 sb.append("<img"); 79 if (imgClass != null) sb.append(" class=\"").append(imgClass).append("\""); 80 sb.append(" src=\"").append(root).append("/views/rawbioassays/rawdata/spotimage/"); 67 81 sb.append(ID).append("/").append(rawBioAssay.getId()).append("/"); 68 82 sb.append(rawData.getId()).append("/spot").append(rawData.getPosition()).append(".png"); -
trunk/www/views/rawbioassays/rawdata/list_rawdata.jsp
r4746 r4838 700 700 { 701 701 %> 702 <img src="spotimage/<%=ID%>/<%=rawBioAssay.getId()%>/<%=itemId%>/spot<%=item.getPosition()%>.png">702 <img class="spotimage" src="spotimage/<%=ID%>/<%=rawBioAssay.getId()%>/<%=itemId%>/spot<%=item.getPosition()%>.png"> 703 703 <% 704 704 } -
trunk/www/views/rawbioassays/rawdata/view_rawdata.jsp
r4511 r4838 169 169 { 170 170 %> 171 <img src="spotimage/<%=ID%>/<%=rawBioAssay.getId()%>/<%=itemId%>/spot<%=rawData.getPosition()%>.png">171 <img class="spotimage" src="spotimage/<%=ID%>/<%=rawBioAssay.getId()%>/<%=itemId%>/spot<%=rawData.getPosition()%>.png"> 172 172 <% 173 173 }
Note: See TracChangeset
for help on using the changeset viewer.