本文整理汇总了Java中org.apache.wicket.markup.html.list.ListItem.iterator方法的典型用法代码示例。如果您正苦于以下问题:Java ListItem.iterator方法的具体用法?Java ListItem.iterator怎么用?Java ListItem.iterator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.markup.html.list.ListItem
的用法示例。
在下文中一共展示了ListItem.iterator方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findFields
import org.apache.wicket.markup.html.list.ListItem; //导入方法依赖的package包/类
private void findFields() {
MarkupContainer container = this;
while (!(container instanceof FieldInstancesPanel))
container = container.getParent();
FieldInstancesPanel parent = (FieldInstancesPanel) container;
ListView<FieldInstanceModel> listView = parent.getFieldList();
Iterator<? extends ListItem<FieldInstanceModel>> itfim = listView.iterator();
while (itfim.hasNext()) {
ListItem<FieldInstanceModel> li = itfim.next();
FieldInstance fi = li.getModelObject().getFieldInstance();
FieldAssignment fa = fi.getFieldAssignment();
FieldDefinition fd = fa.getFieldDefinition();
if (fd.getFieldType() != FieldDefinition.FIELD_TYPE_OCCURRENCE)
continue;
OccurrenceField of = (OccurrenceField)fd;
OccurrenceType ot = of.getOccurrenceType();
if (ot == null)
continue;
Collection<LocatorIF> psis = ot.getTopicIF().getSubjectIdentifiers();
if (psis.contains(PSI.ON_LATITUDE) ||
psis.contains(PSI.ON_LONGITUDE)) {
Iterator<? extends Component> it = li.iterator();
while (it.hasNext()) {
Object component = it.next();
if (component instanceof FieldInstanceOccurrencePanel) {
FieldInstanceOccurrencePanel fiop = (FieldInstanceOccurrencePanel) component;
if (psis.contains(PSI.ON_LONGITUDE))
lngpan = fiop;
else
latpan = fiop;
}
}
}
}
}