|
|||||||||||||||||||
| This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ShowItems.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 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 | 0 |
public Collection getItems() {
|
| 17 | 0 |
return items; |
| 18 |
} |
|
| 19 |
|
|
| 20 | 0 |
public void setItems(Collection items) {
|
| 21 | 0 |
this.items = items; |
| 22 |
} |
|
| 23 |
|
|
| 24 | 0 |
public ItemI getCurrentItem() {
|
| 25 | 0 |
return currentItem; |
| 26 |
} |
|
| 27 |
|
|
| 28 | 0 |
public void setCurrentItem(ItemI currentItem) {
|
| 29 | 0 |
this.currentItem = currentItem; |
| 30 |
} |
|
| 31 |
|
|
| 32 | 0 |
public String getEscapedDescription() {
|
| 33 | 0 |
return HTMLUtil.escape(currentItem.getDescription()); |
| 34 |
} |
|
| 35 |
} |
|
| 36 |
|
|
||||||||||