/** * Sets the number of visible list items. * * @param size The number of visible list items */ @PropertySetter(value = "size", description = "The number of visible list items.") public void setSize(int size) { propertyChange("size", this.size, this.size = size, true); }
/** * Sets the multiple selection flag. If true, multiple list items may be selected at once. * * @param multiple The multiple selection flag. */ @PropertySetter(value = "multiple", defaultValue = "false", description = "If true, multiple list items may be selected at once.") public void setMultiple(boolean multiple) { if (propertyChange("multiple", this.multiple, this.multiple = multiple, true)) { if (!multiple && selected.size() > 1) { unselect(null); } } }