Package org.fest.swing.exception

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


   * <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

    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

Related Classes of org.fest.swing.exception.ComponentLookupException

Copyright © 2018 www.massapicom. 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.