Examples of ComponentLookupException


Examples of org.fest.swing.exception.ComponentLookupException

  public JPopupMenu showPopupMenu(Component invoker, Point location) {
    if (isFocusable(invoker)) focusAndWaitForFocusGain(invoker);
    click(invoker, location, RIGHT_BUTTON, 1);
    JPopupMenu popup = findActivePopupMenu();
    if (popup == null)
      throw new ComponentLookupException(concat("Unable to show popup at ", location, " on ", inEdtFormat(invoker)));
    long start = currentTimeMillis();
    while (!isWindowAncestorReadyForInput(popup) && currentTimeMillis() - start > POPUP_DELAY)
      pause();
    return popup;
  }
View Full Code Here

Examples of org.fest.swing.exception.ComponentLookupException

  /**
   * Returns the component hierarchy to be added to this condition's description in case of a component lookup failure.
   * @return the component hierarchy to be added to this condition's description in case of a component lookup failure.
   */
  @Override protected String descriptionAddendum() {
    ComponentLookupException error = notFoundError.get();
    if (error == null) return EMPTY_TEXT;
    return concat(lineSeparator(), error.getMessage());
  }
View Full Code Here

Examples of org.fest.swing.exception.ComponentLookupException

   * <code>{@link ComponentMatcher}</code>.
   * @return all the components that satisfied the search criteria specified by this condition's
   * {@code ComponentMatcher}.
   */
  public Collection<? extends Component> duplicatesFound() {
    ComponentLookupException error = notFoundError.get();
    if (error == null) return emptyList();
    return error.found();
  }
View Full Code Here

Examples of org.fest.swing.exception.ComponentLookupException

    if (button == null) throw cannotFindButton(logicalName, text);
    return button;
  }

  private ComponentLookupException cannotFindButton(String name, String text) {
    throw new ComponentLookupException(concat(
        "Unable to find ", quote(name), " button with text ", quote(text)));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.