protected void onBeforeRender() { groups.clearSelection(); removal.setEnabled(false); removalWithRoles.setEnabled(false); super.onBeforeRender(); }
protected void onBeforeRender() { groups.clearSelection(); removal.setEnabled(false); removalWithRoles.setEnabled(false); super.onBeforeRender(); } }
@Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(groups.getSelection().size() > 0); target.addComponent(removal); removalWithRoles.setEnabled(groups.getSelection().size() > 0); target.addComponent(removalWithRoles); }
@Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(groups.getSelection().size() > 0); target.add(removal); removalWithRoles.setEnabled(groups.getSelection().size() > 0); target.add(removalWithRoles); } });
@Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(groups.getSelection().size() > 0); target.addComponent(removal); removalWithRoles.setEnabled(groups.getSelection().size() > 0); target.addComponent(removalWithRoles); }
@Override public void onClose(AjaxRequestTarget target) { // if the selection has been cleared out it's sign a deletion // occurred, so refresh the table if (groups.getSelection().size() == 0) { setEnabled(false); target.add(SelectionGroupRemovalLink.this); target.add(groups); } } });
@Override public void onClose(AjaxRequestTarget target) { // if the selection has been cleared out it's sign a deletion // occurred, so refresh the table if (groups.getSelection().size() == 0) { setEnabled(false); target.addComponent(SelectionGroupRemovalLink.this); target.addComponent(groups); } }
@Override public void onClose(AjaxRequestTarget target) { // if the selection has been cleared out it's sign a deletion // occurred, so refresh the table if (groups.getSelection().size() == 0) { setEnabled(false); target.addComponent(SelectionGroupRemovalLink.this); target.addComponent(groups); } }
removal.setEnabled(false); removal.setVisibilityAllowed(canCreateStore); removalWithRoles.setEnabled(false); removalWithRoles.setVisibilityAllowed(canCreateStore&& GeoServerApplication.get().getSecurityManager().getActiveRoleService().canCreateStore());
removal.setEnabled(false); removal.setVisibilityAllowed(canCreateStore); removalWithRoles.setEnabled(false); removalWithRoles.setVisibilityAllowed(canCreateStore&& GeoServerApplication.get().getSecurityManager().getActiveRoleService().canCreateStore());
serviceName, "removeSelected", groups, dialog, false)); removal.setOutputMarkupId(true); removal.setEnabled(false); removal.setVisibilityAllowed(canCreateStore); serviceName, "removeSelectedWithRoles", groups, dialog, true)); removalWithRoles.setOutputMarkupId(true); removalWithRoles.setEnabled(false); removalWithRoles.setVisibilityAllowed( canCreateStore