public void setHtmlContentAllowed(boolean htmlContentAllowed) { if (getInternalField() instanceof CheckBoxGroup) { ((CheckBoxGroup<?>) getInternalField()).setHtmlContentAllowed(htmlContentAllowed); } }
@SuppressWarnings("unchecked") public void setItemEnabledProvider(SerializablePredicate<T> itemEnabledProvider) { if (getInternalField() instanceof CheckBoxGroup) { ((CheckBoxGroup<T>) getInternalField()).setItemEnabledProvider(itemEnabledProvider); } }
public CheckBoxMultiGroup() { this(new CheckBoxGroup<>()); }
public CheckBoxMultiGroup(String caption) { this(new CheckBoxGroup<>(caption)); }
public CheckBoxMultiGroup(String caption, Collection<V> items) { this(new CheckBoxGroup<>(caption, items)); }
public CheckBoxMultiGroup(String caption, DataProvider<V, ?> dataProvider) { this(new CheckBoxGroup<>(caption, dataProvider)); }
public CheckBoxMultiGroup(CheckBoxGroup<V> field) { super(field); }
/** * @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; }
/** * @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; }
/** * 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; }