View Javadoc
1 package net.sf.flock.webapp.components;
2
3 import java.util.Collection;
4
5 import net.sf.tapestry.BaseComponent;
6 import net.sf.flock.ItemI;
7 import net.sf.flock.parser.HTMLUtil;
8
9 public class ShowItems extends BaseComponent {
10
11 private Collection items;
12
13 /*** temporary */
14 private ItemI currentItem;
15
16 public Collection getItems() {
17 return items;
18 }
19
20 public void setItems(Collection items) {
21 this.items = items;
22 }
23
24 public ItemI getCurrentItem() {
25 return currentItem;
26 }
27
28 public void setCurrentItem(ItemI currentItem) {
29 this.currentItem = currentItem;
30 }
31
32 public String getEscapedDescription() {
33 return HTMLUtil.escape(currentItem.getDescription());
34 }
35 }
This page was automatically generated by Maven