Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Copyright 2012-2015 the original author or authors.
package org.assertj.swing.jide.grids.driver;
Understands look up of the javax.swing.JList in the pop-up raised by a com.jidesoft.combobox.AbstractComboBox, if the implementation actually uses one.
  private static final ComponentMatcher LIST_MATCHER = new TypeMatcher(JList.class);
  private final Robot _robot;
	 = robot;
  }

  
Finds the javax.swing.JList in the pop-up raised by a com.jidesoft.combobox.AbstractComboBox, if the implementation actually uses one.

Note: this method is not executed in the event dispatch thread. Callers are responsible for calling this method in the event dispatch thread.

Returns:
the found JList, or null if a drop-down list cannot be found.
  JList findDropDownList(Container startFrom) {
	return findListIn(startFrom);
  }
  private JList findListIn(Container parent) {
	if (found.size() != 1) {
	  return null;
	}
	final Component c = found.get(0);
	if (c instanceof JList) {
	  return (JListc;
	}
	return null;
  }
New to GrepCode? Check out our FAQ X