/** * sets the thumbnail title * * @param title new thumbnail title * @return this instance for chaining */ public ThumbnailBorder setTitle(IModel<String> title) { this.title.setDefaultModel(title); return this; }
/** * sets the label of the button. * * @param label the new button label * @return reference to the current instance */ public BootstrapBookmarkablePageLink<T> setLabel(IModel<?> label) { this.label.setDefaultModel(label); return this; }
/** * sets the label of the button. * * @param label the new button label * @return reference to the current instance */ @Override public BootstrapAjaxButton setLabel(IModel<String> label) { this.label.setDefaultModel(label); return this; }
/** * sets the label of the button. * * @param label the new button label * @return reference to the current instance */ public BootstrapExternalLink setLabel(IModel<?> label) { this.label.setDefaultModel(label); return this; }
@Override public void setModel(final IModel iModel) { component.setDefaultModel(iModel); }
public ThumbnailBorder setTitle(IModel<String> title) { this.title.setDefaultModel(title); return this; }
/** * @see org.apache.wicket.version.undo.Change#undo() */ @Override public void undo() { setDefaultModel(model); } }
/** * Sets the label of the button. * * @param label the new button label * @return reference to the current instance */ public <L extends Serializable> BootstrapAjaxLink<T> setLabel(IModel<L> label) { this.label.setDefaultModel(label); return this; }
/** * sets the label of the button. * * @param label the new button label * @return reference to the current instance */ public BootstrapLink<T> setLabel(IModel<?> label) { this.label.setDefaultModel(label); return this; }
/** * sets the label of the brand name button * * @param brandName the brand name label * @return the component's current instance */ public Navbar setBrandName(final IModel<String> brandName) { Component name = brandNameLink.get("brandLabel"); name.setDefaultModel(brandName); return this; }
/** * Sets the header label text and whether model strings should be escaped. * * @param label The header label * @param escapeMarkup True is model strings should be escaped * @return This */ public Modal<T> header(final IModel<String> label, final boolean escapeMarkup) { headerLabel.setDefaultModel(label); headerLabel.setEscapeModelStrings(escapeMarkup); return this; }
/** * sets the label of the button. * * @param label the new button label * @return reference to the current instance */ @Override public BootstrapAjaxFallbackButton setLabel(IModel<String> label) { this.label.setDefaultModel(label); //the label is also in the button model setModel(label); return this; }
public OrienteerDataTable<T, S> setCaptionModel(IModel<String> captionModel) { get("caption").setDefaultModel(captionModel); this.captionModel = captionModel; return this; }
/** * sets the label of the button. * * @param label the new button label * @return reference to the current instance */ @Override public BootstrapButton setLabel(IModel<String> label) { this.label.setDefaultModel(label); //the label is also store in the button's model setModel(label); return this; }
/** * Sets the header label text. * * @param label The header label * @return This */ public Modal<T> header(IModel<String> label) { headerLabel.setDefaultModel(label); setHeaderVisible(true); return this; }
/** * @see org.apache.wicket.version.undo.Change#undo() */ @Override public void undo() { if (log.isDebugEnabled()) { log.debug("UNDO MODEL CHANGE: setting original model " + originalModel + " to " + component.getPath() + "@" + component.hashCode() + ")"); } component.setDefaultModel(originalModel); }
@Override public final AjaxEditableLabel<T> setDefaultModel(final IModel<?> model) { super.setDefaultModel(model); getLabel().setDefaultModel(model); getEditor().setDefaultModel(model); return this; }
private void authenticateUser(String username, String password) { TextField userField = ((TextField)tester.getComponentFromLastRenderedPage(base+ "testCx:username")); userField.setDefaultModel(new Model(username)); TextField passwordField = ((TextField)tester.getComponentFromLastRenderedPage(base+ "testCx:password")); passwordField.setDefaultModel(new Model(password)); Map<String, String> map = new HashMap<String, String>(); map.put("username", username); map.put("password", password); tester.getComponentFromLastRenderedPage("form:panel:testCx").setDefaultModel(new MapModel<String, String>(map)); tester.clickLink(base+ "testCx:test", true); } }
private void authenticate(String username, String password) { TextField userField = ((TextField)tester.getComponentFromLastRenderedPage(base+ "testCx:username")); userField.setDefaultModel(new Model(username)); TextField passwordField = ((TextField)tester.getComponentFromLastRenderedPage(base+ "testCx:password")); passwordField.setDefaultModel(new Model(password)); Map<String, String> map = new HashMap<String, String>(); map.put("username", username); map.put("password", password); tester.getComponentFromLastRenderedPage("form:panel:testCx").setDefaultModel(new MapModel<String, String>(map)); tester.clickLink(base+ "testCx:test", true); } }
private void authenticate(String username, String password) { TextField<?> userField = ((TextField<?>) tester.getComponentFromLastRenderedPage(base + "testCx:username")); userField.setDefaultModel(new Model<String>(username)); TextField<?> passwordField = ((TextField<?>) tester.getComponentFromLastRenderedPage(base + "testCx:password")); passwordField.setDefaultModel(new Model<String>(password)); Map<String, String> map = new HashMap<String, String>(); map.put("username", username); map.put("password", password); tester.getComponentFromLastRenderedPage("form:panel:testCx") .setDefaultModel(new MapModel<String, String>(map)); tester.clickLink(base + "testCx:test", true); }