getOutput().printLine("Wait items to be " +
(selected ? "" : "un") + "selected in component \n : "+
toStringSource());
getOutput().printGolden("Wait items to be " +
(selected ? "" : "un") + "selected");
waitState(new ComponentChooser() {
public boolean checkComponent(Component comp) {
int[] indices = getSelectedIndices();
for(int i = 0; i < indices.length; i++) {
if(indices[i] != itemIndices[i]) {
return(false);