org.apache.wicket.markup.html.panel.Fragment.setEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(182)

本文整理了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

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;
}

相关文章