本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.setEnabled()
方法的一些代码示例,展示了Fragment.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.setEnabled()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:setEnabled
暂无
代码示例来源:origin: org.onehippo.cms7/hippo-addon-hst-configuration-editor-frontend
private void setComponentForm() {
Fragment f = getBean().isReference() ? new RefComponentFragment() : new ComponentFragment();
f.setEnabled(!getLockInfo().isLocked());
if (selected == null || !selected.equals(f)) {
form.addOrReplace(selected = f);
}
}
代码示例来源:origin: org.geoserver.web/gs-web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink<WorkspaceNewPage>("addNew", WorkspaceNewPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
// check for full admin, we don't allow workspace admins to add new workspaces
header.setEnabled(isAuthenticatedAsAdmin());
return header;
}
代码示例来源:origin: org.geoserver.web/web-core
protected Component headerPanel() {
Fragment header = new Fragment(HEADER_PANEL, "header", this);
// the add button
header.add(new BookmarkablePageLink("addNew", WorkspaceNewPage.class));
// the removal button
header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
removal.setOutputMarkupId(true);
removal.setEnabled(false);
//check for full admin, we don't allow workspace admins to add new workspaces
header.setEnabled(isAuthenticatedAsAdmin());
return header;
}
内容来源于网络,如有侵权,请联系作者删除!