我用Java扩展了ListView。 并尝试获取该视图中已添加作业的列表。这就是我的
MyExtendedView.java和index.jelly
public class MyExtendedView extends ListView {
public static final class SomeDescriptor extends ViewDescriptor {
//some code omited
public ArrayList<Job> jobs () {
//here I hope to get a list of Jobs that user added to this view
//Jobs can be added when creating the view it is inherited
//functionality from LisView
}
}
}
一种通过index.jelly传递参数的方法 但是有没有一种方法可以直接使用TopLevelItems从这里获取呢?
答案 0 :(得分:0)
$ {h.getAllTopLevelItems(it.ownerItemGroup)}