.getRelativePathPrefixToContextRoot()
+ PickwickApplication.THUMBNAIL_IMAGE_PATH + "/" + imagePath)));
link.add(new Label("thumbnailLabel", imageProperties.getTitle()));
} else if (item.getModelObject() instanceof Folder){
final Folder folder = (Folder) item.getModelObject();
Sequence sequence = imageUtils.readSequence(folder.getFile());
WebMarkupContainer link;
item.add(link = new WebMarkupContainer("link"){
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("href", imageUtils.getRelativePath(folder.getFile()));
}
});
WebComponent image;
link.add(image = new WebComponent("thumbnail"){
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("src", urlFor(new ResourceReference(SequenceGridPanel.class, "images/folder.png")));
}
});
String title = null;
if (sequence != null){
title = sequence.getTitle();
}
if (title == null){
title = folder.getFile().getName();
}
link.add(new Label("thumbnailLabel", title));