本文整理了Java中org.apache.wicket.markup.html.list.ListView.setOutputMarkupId()
方法的一些代码示例,展示了ListView.setOutputMarkupId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setOutputMarkupId()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.list.ListView
类名称:ListView
方法名:setOutputMarkupId
暂无
代码示例来源:origin: net.ontopia/ontopoly-editor
private ListView<FieldDefinitionModel> createListView(final List<FieldDefinitionModel> fieldDefinitionModels) {
ListView<FieldDefinitionModel> listView = new ListView<FieldDefinitionModel>("addFields", fieldDefinitionModels) {
public void populateItem(final ListItem<FieldDefinitionModel> item) {
FieldDefinitionModel fieldDefinitionModel = item.getModelObject();
//item.setRenderBodyOnly(true);
Component component = new FieldsEditorAddPanel("field", topicTypeModel, fieldDefinitionModel) {
@Override
protected void onAddField(TopicTypeModel topicTypeModel, FieldDefinitionModel fieldDefinitionModel, AjaxRequestTarget target) {
// add field to topic type
topicTypeModel.getTopicType().addField(fieldDefinitionModel.getFieldDefinition());
// remove field definition from available list
fieldDefinitionModels.remove(fieldDefinitionModel);
@SuppressWarnings("rawtypes")
ListView pListView = (ListView)item.getParent();
pListView.removeAll();
onUpdate(target);
}
};
//component.setRenderBodyOnly(true);
item.add(component);
}
};
listView.setOutputMarkupId(true);
listView.setReuseItems(true);
return listView;
}
代码示例来源:origin: ontopia/ontopia
private ListView<FieldDefinitionModel> createListView(final List<FieldDefinitionModel> fieldDefinitionModels) {
ListView<FieldDefinitionModel> listView = new ListView<FieldDefinitionModel>("addFields", fieldDefinitionModels) {
@Override
public void populateItem(final ListItem<FieldDefinitionModel> item) {
FieldDefinitionModel fieldDefinitionModel = item.getModelObject();
//item.setRenderBodyOnly(true);
Component component = new FieldsEditorAddPanel("field", topicTypeModel, fieldDefinitionModel) {
@Override
protected void onAddField(TopicTypeModel topicTypeModel, FieldDefinitionModel fieldDefinitionModel, AjaxRequestTarget target) {
// add field to topic type
topicTypeModel.getTopicType().addField(fieldDefinitionModel.getFieldDefinition());
// remove field definition from available list
fieldDefinitionModels.remove(fieldDefinitionModel);
@SuppressWarnings("rawtypes")
ListView pListView = (ListView)item.getParent();
pListView.removeAll();
onUpdate(target);
}
};
//component.setRenderBodyOnly(true);
item.add(component);
}
};
listView.setOutputMarkupId(true);
listView.setReuseItems(true);
return listView;
}
代码示例来源:origin: de.alpharogroup/jaulp-wicket-components
radioListView.setOutputMarkupId(true);
return radioListView;
};
代码示例来源:origin: apache/syncope
private Fragment getDataFragment() {
final Fragment contentFragment = new Fragment("content", "dataFragment", AbstractMultiPanel.this);
contentFragment.add(view.setOutputMarkupId(true));
return contentFragment;
}
代码示例来源:origin: de.alpharogroup/jaulp.wicket.components
radioListView.setOutputMarkupId(true);
return radioListView;
};
代码示例来源:origin: ch.qos.mistletoe/mistletoe-wicket
void handleDescriptionWithChildren() {
ListView<TestReport> listView = new ListView<TestReport>(
Constants.PAYLOAD_ID, testReport.getChildren()) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem<TestReport> item) {
TestReport childNode = item.getModelObject();
item.add(new TestReportPanel(Constants.NODE_ID, childNode))
.setOutputMarkupId(true);
}
};
listView.setOutputMarkupId(true);
add(listView);
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-kb
suggestions.setOutputMarkupId(true);
return suggestions;
代码示例来源:origin: inception-project/inception
suggestions.setOutputMarkupId(true);
return suggestions;
代码示例来源:origin: apache/syncope
innerListView.setOutputMarkupId(true);
item.add(innerListView);
代码示例来源:origin: apache/syncope
public ProgressesPanel(final String id, final Date lastUpdate, final List<ProgressBean> progressBeans) {
super(id);
add(new Label("lastUpdate", SyncopeConsoleSession.get().getDateFormat().format(lastUpdate)));
ListView<ProgressBean> progresses = new ListView<ProgressBean>("progresses", progressBeans) {
private static final long serialVersionUID = -9180479401817023838L;
@Override
protected void populateItem(final ListItem<ProgressBean> item) {
item.add(new ProgressPanel("progress", item.getModelObject()));
}
};
progresses.setOutputMarkupId(true);
add(progresses);
}
代码示例来源:origin: apache/syncope
conns.setOutputMarkupId(true);
item.add(conns);
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
public BreadcrumbWidget(final String id, final IModel<List<IModel<T>>> model) {
super(id, model);
setOutputMarkupId(true);
add(CssClass.append("hippo-breadcrumbs"));
final BreadcrumbModel breadcrumbModel = new BreadcrumbModel();
final ListView<Breadcrumb> breadCrumbs = new ListView<Breadcrumb>("crumbs", breadcrumbModel) {
@Override
protected void populateItem(final ListItem<Breadcrumb> item) {
final Breadcrumb crumb = item.getModelObject();
item.add(crumb);
final String css = crumb.getCssClass();
if (StringUtils.isNotEmpty(css)) {
item.add(CssClass.append(css));
}
}
};
breadCrumbs.setOutputMarkupId(true);
add(breadCrumbs);
}
代码示例来源:origin: org.geoserver.community/gs-status-monitoring
list.setOutputMarkupId(true);
add(list);
代码示例来源:origin: org.jabylon/rest.ui
public ProjectVersionsConfigSection(String id, IModel<Project> model, Preferences config) {
super(id, model);
add(buildAddNewLink(model));
ComplexEObjectListDataProvider<ProjectVersion> provider = new ComplexEObjectListDataProvider<ProjectVersion>(model,
PropertiesPackage.Literals.RESOLVABLE__CHILDREN);
ListView<ProjectVersion> project = new ListView<ProjectVersion>("versions", provider) {
private static final long serialVersionUID = 1L;
private ProgressionModel progressModel;
@Override
protected void populateItem(ListItem<ProjectVersion> item) {
item.setOutputMarkupId(true);
item.add(new Label("name", item.getModelObject().getName()));
item.add(new Label("summary", new StringResourceModel("ProjectVersionsConfigSection.summary", item, null, item.getModel().getObject().getChildren().size())));
progressModel = new ProgressionModel("");
final ProgressPanel progressPanel = new ProgressPanel("progress", progressModel);
item.add(progressPanel);
ProjectVersion projectVersion = item.getModelObject();
item.add(new BookmarkablePageLink<Void>("edit",SettingsPage.class,WicketUtil.buildPageParametersFor(projectVersion)));
item.add(createCheckoutAction(progressPanel, item.getModel()));
item.add(createRescanAction(progressPanel, item.getModel()));
item.add(createUpdateAction(progressPanel, item.getModel()));
item.add(createResetAction(progressPanel, item.getModel()));
item.add(createCommitAction(progressPanel, item.getModel()));
item.add(createDeleteAction(progressPanel, item.getModel()));
}
};
project.setReuseItems(true);
project.setOutputMarkupId(true);
add(project);
}
代码示例来源:origin: stackoverflow.com
selectRepetor.setOutputMarkupId(true);
selectRepetor.setOutputMarkupPlaceholderTag(true);
selectGroup.add(selectRepetor);
代码示例来源:origin: org.onehippo.ecm/hst-addon-configuration-editor-frontend
containers.setOutputMarkupId(true);
form.add(containers);
代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-kb
conceptsListView.setOutputMarkupId(true);
add(conceptsListView);
代码示例来源:origin: inception-project/inception
conceptsListView.setOutputMarkupId(true);
add(conceptsListView);
代码示例来源:origin: org.jabylon/rest.ui
properties.setOutputMarkupId(true);
add(properties);
代码示例来源:origin: org.onehippo.cms7/hippo-addon-hst-configuration-editor-frontend
containers.setOutputMarkupId(true).setEnabled(!getLockInfo().isLocked());
form.add(containers);
内容来源于网络,如有侵权,请联系作者删除!