Java 类com.vaadin.ui.CheckBoxGroup 实例源码

项目:holon-vaadin    文件:MultiSelectField.java   
public void setHtmlContentAllowed(boolean htmlContentAllowed) {
    if (getInternalField() instanceof CheckBoxGroup) {
        ((CheckBoxGroup<?>) getInternalField()).setHtmlContentAllowed(htmlContentAllowed);
    }
}
项目:holon-vaadin    文件:MultiSelectField.java   
@SuppressWarnings("unchecked")
public void setItemEnabledProvider(SerializablePredicate<T> itemEnabledProvider) {
    if (getInternalField() instanceof CheckBoxGroup) {
        ((CheckBoxGroup<T>) getInternalField()).setItemEnabledProvider(itemEnabledProvider);
    }
}
项目:bootstrap-formgroup    文件:CheckBoxMultiGroup.java   
public CheckBoxMultiGroup() {
    this(new CheckBoxGroup<>());
}
项目:bootstrap-formgroup    文件:CheckBoxMultiGroup.java   
public CheckBoxMultiGroup(String caption) {
    this(new CheckBoxGroup<>(caption));
}
项目:bootstrap-formgroup    文件:CheckBoxMultiGroup.java   
public CheckBoxMultiGroup(String caption, Collection<V> items) {
    this(new CheckBoxGroup<>(caption, items));
}
项目:bootstrap-formgroup    文件:CheckBoxMultiGroup.java   
public CheckBoxMultiGroup(String caption, DataProvider<V, ?> dataProvider) {
    this(new CheckBoxGroup<>(caption, dataProvider));
}
项目:bootstrap-formgroup    文件:CheckBoxMultiGroup.java   
public CheckBoxMultiGroup(CheckBoxGroup<V> field) {
    super(field);
}
项目:vaadin-fluent-api    文件:FluentCheckBoxGroup.java   
/**
 * @see IconGenerator
 * @see AbstractListing#setItemIconGenerator(IconGenerator)
 *
 * @param itemIconGenerator
 *            the item icon generator to set, not null
 * @return this for method chaining
 */
@SuppressWarnings("unchecked")
public default THIS withItemIconGenerator(IconGenerator<VALUE> itemIconGenerator) {
    ((CheckBoxGroup<VALUE>) this).setItemIconGenerator(itemIconGenerator);
    return (THIS) this;
}
项目:vaadin-fluent-api    文件:FluentCheckBoxGroup.java   
/**
 * @see AbstractMultiSelect#setItemEnabledProvider(SerializablePredicate)
 *
 * @param itemEnabledProvider
 *            the item enabled provider to set, not {@code null}
 * @return this for method chaining
 */
@SuppressWarnings("unchecked")
public default THIS withItemEnabledProvider(SerializablePredicate<VALUE> itemEnabledProvider) {
    ((CheckBoxGroup<VALUE>) this).setItemEnabledProvider(itemEnabledProvider);
    return (THIS) this;
}
项目:vaadin-fluent-api    文件:FluentCheckBoxGroup.java   
/**
 * Sets whether html is allowed in the item captions. If set to true, the
 * captions are passed to the browser as html and the developer is
 * responsible for ensuring no harmful html is used. If set to false, the
 * content is passed to the browser as plain text.
 *
 * @param htmlContentAllowed
 *            true if the captions are used as html, false if used as plain text
 * @return this for method chaining
 * @see CheckBoxGroup#setHtmlContentAllowed(boolean)
 */
@SuppressWarnings("unchecked")
public default THIS withHtmlContentAllowed(boolean htmlContentAllowed) {
    ((CheckBoxGroup<VALUE>) this).setHtmlContentAllowed(htmlContentAllowed);
    return (THIS) this;
}