Gets multiple selected labels.

@return All selected labels.
167924
public String[] getSelectedLabels() {
        List<WebElement> options = getElement().findElements(By.tagName("option"));
        List<String> selected = new ArrayList<String>();
        for (WebElement option : options) {
            if (option.isSelected()) {
                selected.add(option.getText());
            }
        }
        return (String[]) selected.toArray(new String[selected.size()]);
    }
356341
public String getSelectedLabel() {
        List<WebElement> options = getElement().findElements(By.tagName("option"));
        for (WebElement option : options) {
            if (option.isSelected()) {
                return option.getText();
            }
        }
        return null;
    }
698959
def label_set(self):
        """"""
        label_set = list()
        for class_ in self.class_set:
            samples_in_class = self.sample_ids_in_class(class_)
            label_set.append(self.labels[samples_in_class[0]])

        return label_set
337322
public String getLabel() {
            String label = getProperty(labelProperty);
            label = label == null ? node.getLabel() : label;

            if (label == null) {
                label = getDefaultInstanceName();
                setProperty(labelProperty, label);
            }

            return label;
        }
319812
public Set<Label> getLabels() {
        Set<Label> r = new TreeSet<>();
        for (Label l : labels.values()) {
            if(!l.isEmpty())
                r.add(l);
        }
        return r;
    }
71987
public Set<String> getTags() {
    Set<String> tags = new HashSet<String>(classIndex.objectsList());
    tags.remove(flags.backgroundSymbol);
    return tags;
  }
67614
public String[] getItemsSelected() {
        List<String> selected = new LinkedList<>();
        for (int i = getIndexOffset(); i < listBox.getItemCount(); i++) {
            if (listBox.isItemSelected(i)) {
                selected.add(listBox.getValue(i));
            }
        }
        return selected.toArray(new String[selected.size()]);
    }
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;
    }
160095
public int[] getSelectedComponents ()
    {
        int[] values = new int[_selected.size()];
        Iterator<Integer> iter = _selected.values().iterator();
        for (int ii = 0; iter.hasNext(); ii++) {
            values[ii] = iter.next().intValue();
        }
        return values;
    }
1037276
def labels(self):
        
        return [x for x in self[self.current_scope].values() if x.class_ == CLASS.label]
801720
public java.util.List<java.util.Map<String, String>> getTags() {
        return tags;
    }
545411
public static ArrayList<ClassLabel> allClassLabels(MultipleObjectsBundle bundle) {
    int col = findClassLabelColumn(bundle);
    // TODO: automatically infer class labels?
    if(col < 0) {
      throw new AbortException("No class label found (try using ClassLabelFilter).");
    }
    return allClassLabels(bundle, col);
  }
742693
public function getLabelTargets()
    {
        $targets = array();
        foreach ($this->_getTargetMap() as $_target) {
            $targets[$_target['name']] = $_target['label'];
        }
        return $targets;
    }
1018676
public String[] getSelectOptions() {
        List<WebElement> optionList = getElement().findElements(By.tagName("option"));
        String[] optionArray = new String[optionList.size()];
        for (int i = 0; i < optionList.size(); i++) {
            optionArray[i] = optionList.get(i).getText();
        }
        return optionArray;
    }
304591
public static DescriptorExtensionList<LabelAtomProperty,LabelAtomPropertyDescriptor> all() {
        return Jenkins.getInstance().<LabelAtomProperty,LabelAtomPropertyDescriptor>getDescriptorList(LabelAtomProperty.class);
    }
788458
public List<MenuItemSelectable> getSelectedMenuItems() {
		List<MenuItemSelectable> selectedItems = getComponentModel().selectedMenuItems;
		if (selectedItems == null || selectedItems.isEmpty()) {
			return Collections.emptyList();
		} else {
			return Collections.unmodifiableList(selectedItems);
		}
	}
570057
public List<Label> getStoryLabels() {
        if (!isAnnotationPresent(Stories.class)) {
            return Collections.emptyList();
        }

        List<Label> result = new ArrayList<>();
        for (String story : getAnnotation(Stories.class).value()) {
            result.add(createStoryLabel(story));
        }
        return result;
    }