public SitemenuEditorPlugin(IPluginContext context, IPluginConfig config) { super(context, config); saveLink.setEnabled(false); saveLink.setVisible(false); }
public ContainerItemPackageEditorPlugin(IPluginContext context, IPluginConfig config) { super(context, config); saveLink.setEnabled(false); saveLink.setVisible(false); }
public SitemenuEditorPlugin(IPluginContext context, IPluginConfig config) { super(context, config); saveLink.setEnabled(false); saveLink.setVisible(false); }
link.setEnabled(false); // This button can be clicked only when imported data are copied
link.setEnabled(false); // This button can be clicked only when imported data are copied
@Override protected void onUpdate(AjaxRequestTarget target) { templates.validate(); generateLink.setEnabled(templates.getConvertedInput() != null); target.add(generateLink); } });
@Override protected void onJcrEvent(final JcrEvent event) { if (maxAllowed > 0) { final RelatedDocCollection relatedDocCollection = getRelatedDocs(); if (relatedDocCollection.size() >= maxAllowed) { refreshLink.setEnabled(false); browseLink.setEnabled(false); } else { refreshLink.setEnabled(true); browseLink.setEnabled(true); } } redraw(); }
@Override protected void onUpdate(AjaxRequestTarget target) { styles.validate(); copyLink.setEnabled(styles.getConvertedInput() != null); target.add(copyLink); } });
@Override protected void onUpdate(AjaxRequestTarget target) { styles.validate(); copyLink.setEnabled(styles.getConvertedInput() != null); target.addComponent(copyLink); } });
public void enableSearch(final IEventSink resultContainer) { this.resultContainer = resultContainer; this.searchButton.setEnabled(true); this.searchButton.setVisible(true); field.add(AttributeModifier.replace( "onkeydown", Model.of("if(event.keyCode == 13) {event.preventDefault();}"))); field.add(new AjaxEventBehavior("keydown") { private static final long serialVersionUID = -7133385027739964990L; @Override protected void onEvent(final AjaxRequestTarget target) { if (resultContainer == null) { send(SearchClausePanel.this, Broadcast.BUBBLE, new SearchEvent(target)); } else { send(resultContainer, Broadcast.EXACT, new SearchEvent(target)); } } @Override protected void updateAjaxAttributes(final AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getAjaxCallListeners().add(new AjaxCallListener() { private static final long serialVersionUID = 7160235486520935153L; @Override public CharSequence getPrecondition(final Component component) { return "if (Wicket.Event.keyCode(attrs.event) == 13) { return true; } else { return false; }"; } }); } }); }
searchButtonFragment.add(searchButton.setEnabled(false).setVisible(false));
public StyleAdminPanel(String id, AbstractStylePage parent) { super(id, parent); initUI(parent.getStyleModel()); if (stylePage instanceof StyleEditPage) { // global styles only editable by full admin if (!stylePage.isAuthenticatedAsAdmin() && parent.getStyleInfo().getWorkspace() == null) { nameTextField.setEnabled(false); uploadLink.setEnabled(false); } if (StylePage.isDefaultStyle(getStylePage().getStyleInfo())) { nameTextField.setEnabled(false); wsChoice.setEnabled(false); } // format only settable upon creation formatChoice.setEnabled(false); formatReadOnlyMessage.setVisible(true); } }
final RelatedDocCollection relatedDocCollection = getRelatedDocs(); if (relatedDocCollection.size() >= maxAllowed) { refreshLink.setEnabled(false); browseLink.setEnabled(false); } else { refreshLink.setEnabled(true); browseLink.setEnabled(true);
add(templates); generateLink = generateLink(); generateLink.setEnabled(false); add(generateLink); add(styles); copyLink = copyLink(); copyLink.setEnabled(false); add(copyLink);
styleForm.add(styles); copyLink = copyLink(); copyLink.setEnabled(false); styleForm.add(copyLink);