root / sqs-reader / src / main / java / net / sqs2 / omr / result / model / RowItem.java @ 1848
History | View | Annotate | Download (717 Bytes)
| 1 | package net.sqs2.omr.result.model;
|
|---|---|
| 2 | |
| 3 | import java.io.File; |
| 4 | import java.util.List; |
| 5 | |
| 6 | import net.sqs2.omr.model.PageID; |
| 7 | |
| 8 | public class RowItem extends ModelItemMap { |
| 9 | |
| 10 | /**
|
| 11 | * |
| 12 | */ |
| 13 | private static final long serialVersionUID = 1L; |
| 14 | |
| 15 | public RowItem(List<PageID> pageIDList, int numPages, int tableIndex, int rowIndex){ |
| 16 | PageItemList items = new PageItemList();
|
| 17 | put(Label.Row.ITEMS, items);
|
| 18 | for (int pageIndex = 0; pageIndex < numPages; pageIndex++) { |
| 19 | items.add(new PageItem(new File(pageIDList.get(pageIndex + (rowIndex * numPages)).getFileResourceID() |
| 20 | .getRelativePath()).getName())); |
| 21 | } |
| 22 | put(Label.Row.ICON, ImageFileName.PERSON);
|
| 23 | put(Label.Row.TABLE_INDEX, tableIndex);
|
| 24 | } |
| 25 | |
| 26 | } |

SourceEditor2.0(2010/08/18)
