/** * @param dataType * the type of the data in the Ajax response. * @return {@code this} object for chaining */ public AjaxRequestAttributes setDataType(final String dataType) { this.dataType = Args.notEmpty(dataType, "dataType"); return this; }
/** * Construct. * * @param event * the event this behavior will be attached to */ public AjaxEventBehavior(String event) { Args.notEmpty(event, "event"); this.event = event; }
/** * @param dataType * the type of the data in the Ajax response. * @return {@code this} object for chaining */ public AjaxRequestAttributes setDataType(final String dataType) { this.dataType = Args.notEmpty(dataType, "dataType"); return this; }
/** * Construct. * * @param event * the event this behavior will be attached to */ public AjaxEventBehavior(String event) { Args.notEmpty(event, "event"); this.event = event; }
public WebjarsSettings webjarsPackage(String webjarsPackage) { this.webjarsPackage = Args.notEmpty(webjarsPackage, "webjarsPackage"); return this; }
public TextMessage(final CharSequence text) { this.text = Args.notEmpty(text, "text"); }
/** * Construct. * * @param target * @param event * @param javaScript */ public OnEventHeaderItem(String target, String event, CharSequence javaScript) { this.target = Args.notEmpty(target, "target"); Args.notEmpty(event, "event"); event = event.toLowerCase(Locale.ROOT); this.event = event; this.javaScript = javaScript; }
private HeaderKey(String name) { this.name = Args.notEmpty(name, "name").trim(); key = this.name.toLowerCase(Locale.US); }
/** * Build a new {@link MetaDataHeaderItem} having {@code tagName} as tag. * * @param tagName * the name of the tag */ public MetaDataHeaderItem(String tagName) { this.tagName = Args.notEmpty(tagName, "tagName"); this.tagAttributes = new ValueMap(); this.tagMinimizedAttributes = new ArrayList<>(); }
public Property(ClassReference<?> owner, String name) { Args.notNull(owner, "owner"); Args.notEmpty(name, "name"); this.owner = owner; this.name = name; }
/** * Build a new {@link MetaDataHeaderItem} having {@code tagName} as tag. * * @param tagName * the name of the tag */ public MetaDataHeaderItem(String tagName) { this.tagName = Args.notEmpty(tagName, "tagName"); this.tagAttributes = new ValueMap(); this.tagMinimizedAttributes = new ArrayList<>(); }
/** * Sets a key and value in the variables map for use in substitution. * * @param name * a variable name * @param value * a variable value * @return this <code>ValidationError</code> for chaining purposes */ public ValidationError setVariable(String name, Object value) { Args.notEmpty(name, "name"); getVariables().put(name, value); return this; }
/** * Creates a attribute modifier that replaces the current value with the given value. * * @param attributeName * @param value * @return the attribute modifier * @since 1.5 */ public static AttributeModifier replace(String attributeName, Serializable value) { Args.notEmpty(attributeName, "attributeName"); return new AttributeModifier(attributeName, value); }
public AbstractSimpleVisualizer(String name, boolean extended, Collection<OType> supportedTypes) { Args.notNull(name, "name"); Args.notNull(supportedTypes, "supportedTypes"); Args.notEmpty(supportedTypes, "supportedTypes"); this.name = name; this.extended = extended; this.supportedTypes = Collections.unmodifiableCollection(supportedTypes); }
/** * Creates a attribute modifier that removes an attribute with the specified name * * @param attributeName * the name of the attribute to be removed * @return the attribute modifier * @since 1.5 */ public static AttributeModifier remove(String attributeName) { Args.notEmpty(attributeName, "attributeName"); return replace(attributeName, Model.of(VALUELESS_ATTRIBUTE_REMOVE)); } }
public AbstractBookmarkableMapper(String mountPath, IPageParametersEncoder pageParametersEncoder) { Args.notEmpty(mountPath, "mountPath"); this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder"); mountSegments = getMountSegments(mountPath); pathSegments = getPathSegments(mountSegments); }
public AbstractBookmarkableMapper(String mountPath, IPageParametersEncoder pageParametersEncoder) { Args.notEmpty(mountPath, "mountPath"); this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder"); mountSegments = getMountSegments(mountPath); pathSegments = getPathSegments(mountSegments); }
public EditableDataGridView(String id, List<? extends ICellPopulator<R>> populators, IEditableDataProvider<R, U> dataProvider) { super(id, populators, dataProvider); }