本文整理匯總了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;
}
}
}
}
}