本文整理了Java中org.apache.wicket.markup.html.list.ListView.setVisible()
方法的一些代码示例,展示了ListView.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.setVisible()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.list.ListView
类名称:ListView
方法名:setVisible
暂无
代码示例来源:origin: org.opensingular/singular-wicket-utils
@Override
public void onConfigure(Component component) {
super.onConfigure(component);
formats.setVisible(component.isEnabledInHierarchy());
}
});
代码示例来源:origin: net.ontopia/ontopoly-editor
public FunctionBoxesPanel(String id) {
super(id);
Form<Object> form = new Form<Object>("functionBoxesForm");
add(form);
List<Component> list = getFunctionBoxesList("functionBox");
ListView<Component> functionBoxes = new ListView<Component>("functionBoxesList", list) {
protected void populateItem(ListItem<Component> item) {
item.add(item.getModelObject());
}
};
functionBoxes.setVisible(!list.isEmpty());
form.add(functionBoxes);
}
代码示例来源:origin: ontopia/ontopia
public FunctionBoxesPanel(String id) {
super(id);
Form<Object> form = new Form<Object>("functionBoxesForm");
add(form);
List<Component> list = getFunctionBoxesList("functionBox");
ListView<Component> functionBoxes = new ListView<Component>("functionBoxesList", list) {
@Override
protected void populateItem(ListItem<Component> item) {
item.add(item.getModelObject());
}
};
functionBoxes.setVisible(!list.isEmpty());
form.add(functionBoxes);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
public DocumentMetadataDialog(WorkflowDescriptorModel model) {
super(model);
setTitleKey("document-info");
setSize(DialogConstants.MEDIUM_AUTO);
setOkVisible(false);
setCancelLabel(new StringResourceModel("close", this, null));
setFocusOnCancel();
ListView metaDataListView = getMetaDataListView();
add(metaDataListView);
// Show info of live variant if one found with hippostd:state = published and hippostd:stateSummary = live || changed
List<DocumentMetadataEntry> publicationMetadata = getPublicationMetaData();
ListView publicationDataList = new ListView<DocumentMetadataEntry>("publicationmetadatalist", publicationMetadata) {
protected void populateItem(ListItem item) {
final DocumentMetadataEntry entry = (DocumentMetadataEntry) item.getModelObject();
item.add(new Label("key", entry.getKey()));
item.add(new Label("value", entry.getValue()));
}
};
final Label publicationheader = new Label("publicationheader", getString("publication-header"));
add(publicationheader);
add(publicationDataList);
if (publicationMetadata.size() == 0) {
publicationDataList.setVisible(false);
publicationheader.setVisible(false);
}
}
代码示例来源:origin: ch.qos.mistletoe/mistletoe-wicket
@SuppressWarnings("unchecked")
@Override
public void onClick(AjaxRequestTarget target) {
TestReportPanel nodePanel = (TestReportPanel) getParent();
if(nodePanel == null || nodePanel.testReport == null) {
warn("Failed to find node panel");
return;
}
if (nodePanel.testReport.isSuite()) {
expanded = !expanded;
TreeExpansionLink link = (TreeExpansionLink) nodePanel
.get(Constants.TREE_CONTROL_ID);
target.add(link.getParent());
Image image = (Image) link.get(Constants.TREE_CONTROL_SYMBOL_ID);
ResourceReference ref = getControlSymbolResourceReference(expanded);
image.setImageResourceReference(ref);
ListView<Node> payloadNode = (ListView<Node>) nodePanel
.get(Constants.PAYLOAD_ID);
payloadNode.setVisible(expanded);
// can't update a ListView
target.add(payloadNode.getParent());
}
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-admin
externalList = new MembershipsListView("external-memberships", "external-membership", user);
externalLabel.setVisible((user.getExternalMemberships().size() > 0));
externalList.setVisible((user.getExternalMemberships().size() > 0));
form.add(externalLabel);
form.add(externalList);
内容来源于网络,如有侵权,请联系作者删除!