Returns all the items in the list box that have checked state, as a list
@return List of all items in the list box that has checked state on
171680
public synchronized List<V> getCheckedItems() {
        List<V> result = new ArrayList<V>();
        for(int i = 0; i < itemStatus.size(); i++) {
            if(itemStatus.get(i)) {
                result.add(getItemAt(i));
            }
        }
        return result;
    }
432583
public List<T> pollAll() {
    List<T> retList = new ArrayList<T>(size);
    for (int i = 0; i < entries.length; i++) {
      LinkedElement<T> current = entries[i];
      while (current != null) {
        retList.add(current.element);
        current = current.next;
      }
    }
    this.clear();
    return retList;
  }
864759
public <T extends Widget & Checkable> List<T> getCheckableChildren() {
        List<Widget> children = getChildren();
        ArrayList<T> result = new ArrayList<>();
        for (Widget c : children) {
            if (c instanceof Checkable) {
                result.add((T) c);
            }
        }
        return result;
    }
1063313
public List<Option> getSelectedItems() {
        final List<Option> items = new ArrayList<>(0);
        for (Entry<OptionElement, Option> entry : itemMap.entrySet()) {
            Option opt = entry.getValue();
            if (opt.isSelected())
                items.add(opt);
        }
        return items;
    }
607493
def list(self):
        
        settings = []
        for setting in _SETTINGS:
            value = self.get(setting)
            is_set = self.is_set(setting)
            default_value = self.get_default_value(setting)
            is_supported = True
            settings.append((setting, value, default_value, is_set, is_supported))
        for setting in sorted(self.settings_state.list_keys()):
            if not self.is_supported(setting):
                value = self.get(setting)
                default_value = None
                is_set = True
                is_supported = False
                settings.append((setting, value, default_value, is_set, is_supported))
        return settings
358069
public <T extends Widget & Checkable> List<T> getCheckedWidgets() {
        List<T> checked = new ArrayList<>();

        for (Widget c : getChildren()) {
            if (c instanceof Checkable && ((Checkable) c).isChecked()) {
                checked.add((T) c);
            }
        }

        return checked;
    }
469724
public static List<ComputerPanelBox> all(Computer computer) {
        List<ComputerPanelBox> boxs = new ArrayList<>();
        for(ComputerPanelBox box:  ExtensionList.lookup(ComputerPanelBox.class)){
            box.setComputer(computer);
            boxs.add(box);
        }
        return boxs;
    }
1030605
public List<CmsListItem> getSelectedItems() {

        Iterator<String> it = CmsStringUtil.splitAsList(
            getParamSelItems(),
            CmsHtmlList.ITEM_SEPARATOR,
            true).iterator();
        List<CmsListItem> items = new ArrayList<CmsListItem>();
        while (it.hasNext()) {
            String id = it.next();
            items.add(getList().getItem(id));
        }
        return items;
    }
1172478
public java.util.List<String> getCheckerIpRanges() {
        if (checkerIpRanges == null) {
            checkerIpRanges = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return checkerIpRanges;
    }
1224296
public List<String> getSelected() {

        List<String> result = new ArrayList<String>();
        result.add(m_singleResult);
        return result;
    }
638870
public List<T> getSelectedValues() {
        Object[] curVal = (Object[]) $(listbox.getElement()).val();

        List<T> selectedValues = new ArrayList<>();
        if (curVal == null || curVal.length < 1) {
            return selectedValues;
        }

        List<String> keyIndex = getValuesKeyIndex();
        for (Object val : curVal) {
            if (val instanceof String) {
                int selectedIndex = keyIndex.indexOf(val);
                if (selectedIndex != -1) {
                    selectedValues.add(values.get(selectedIndex));
                } else {
                    if (isTags() && val instanceof String) {
                        selectedValues.add((T) val);
                    }
                }
            }
        }
        return selectedValues;
    }
697974
@Override
    public List<T> returnItemsWithState(final List<Integer> states) {
        if (states == null) throw new IllegalArgumentException("states cannot be null");

        final List<T> retValue = new ArrayList<T>();

        for (final V item : getItems()) {
            if (states.contains(item.getState())) retValue.add(item.getItem());
        }

        return retValue;
    }
800498
public List<ValidatorElement> getAllValidatorElements() {
        List<ValidatorElement> ret = CollectionUtil.createArrayList();
        for (ListAble<ValidatorElement> e : validatorElementLinkedList) {
            ret.addAll(e.getAsList());
        }
        return ret;
    }
552717
protected List<CmsContainer> getPageState() {

        PageStateVisitor visitor = new PageStateVisitor();
        processPageContent(visitor);
        return visitor.getContainers();
    }
1303780
public synchronized CheckBoxList<V> addItem(V object, boolean checkedState) {
        itemStatus.add(checkedState);
        return super.addItem(object);
    }
908285
function () {
            var allCheckboxes = $("li input[type='checkbox']:enabled", this.$ul),
                visibleCheckboxes = allCheckboxes.filter(":visible"),
                allCheckboxesCount = allCheckboxes.length,
                visibleCheckboxesCount = visibleCheckboxes.length;

            visibleCheckboxes.prop('checked', true);
            $("li:not(.divider):not(.disabled)", this.$ul).filter(":visible").addClass(this.options.selectedClass);

            if (allCheckboxesCount === visibleCheckboxesCount) {
                $("option:enabled", this.$select).prop('selected', true);
            }
            else {
                var values = visibleCheckboxes.map(function() { return $(this).val() }).get();
                $("option:enabled", this.$select).filter(function(index){ return $.inArray($(this).val(), values) !== -1; }).prop('selected', true);
            }
        }
1291853
List<CmsCategoryTreeEntry> getFlatList() {

        List<CmsCategoryTreeEntry> toProcess = Lists.newArrayList(m_categoryEntries);
        List<CmsCategoryTreeEntry> result = Lists.newArrayList();
        Set<CmsUUID> visited = Sets.newHashSet();
        while (!toProcess.isEmpty()) {
            Iterator<CmsCategoryTreeEntry> iter = toProcess.iterator();
            CmsCategoryTreeEntry entry = iter.next();
            iter.remove();
            if (!visited.contains(entry.getId())) {
                result.add(entry);
                visited.add(entry.getId());
                toProcess.addAll(entry.getChildren());
            }
        }
        return result;
    }