/** * @see ListModel */ @Override public void unSelect(String value) { super.unSelect(value); }
/** * @see Component */ @Override public String toString() { return super.toString() + ", label:" + label(); } }
/** * @see Component */ @Override public String toString() { return super.toString() + ", values:" + Arrays.deepToString(values().toArray()) + ", selectedValues:" + Arrays.deepToString(listSelectedValues().toArray()); } }
/** * Uses the matcher ContainsValues to compare the content of a given listModel to the expected values of the matcher, * using the syntax "containsValues("xxx", "yyyy", "zzz")" or "containsExactlyValues("xxx", "yyyy", "zzz")" * * @param listModel the listModel * @return True if the list contains (contains exactly for second syntax) the values of the matcher ContainsValues */ public boolean matchesSafely(ListModel listModel) { List<String> values = new ArrayList<String>(); values.addAll(listModel.values()); if (exactly) { return values.containsAll(expectedValues) && values.size() == expectedValues.size(); } return values.containsAll(expectedValues); }
/** * @see Component */ @Override public String toString() { return super.toString() + ", label:" + label(); } }
/** * To select a given value in the list * * @param value the value we want to be selected in the list */ public void select(String value) { if (values().contains(value)) { evaluator.select(value, this); } }
/** * @see Component */ @Override public String toString() { return super.toString() + ", label:" + label(); } }
/** * To unselect a given value in the list * * @param value the value we want to be unselected in the list */ protected void unSelect(String value) { if (values().contains(value)) { evaluator.unselect(value, this); } }
/** * To get the string describing the list. * * @return string describing the list and its content */ public String toString() { return super.toString() + ", visibleRows:" + visibleRows(); }