Examples of StringTextMatcher


Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the {@code JComboBox} is not showing on the screen.
   * @see #replaceCellReader(JComboBoxCellReader)
   */
  @RunsInEDT
  public void selectItem(@Nonnull JComboBox comboBox, @Nullable String value) {
    selectItem(comboBox, new StringTextMatcher(value));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws LocationUnavailableException if a column with a matching name cannot be found.
   */
  @RunsInEDT
  public void clickColumn(@Nonnull JTableHeader tableHeader, @Nullable String columnName, @Nonnull MouseButton button,
      int times) {
    clickColumn(tableHeader, new StringTextMatcher(columnName), button, times);
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the {@code JTableHeader} is not showing on the screen.
   * @throws ComponentLookupException if a pop-up menu cannot be found.
   */
  @RunsInEDT
  public @Nonnull JPopupMenu showPopupMenu(@Nonnull JTableHeader tableHeader, @Nullable String columnName) {
    return robot.showPopupMenu(tableHeader, pointAtName(tableHeader, new StringTextMatcher(columnName), location()));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

  @RunsInEDT
  static @Nonnull Point centerOfMatchingItemCell(final @Nonnull JList list, final @Nullable String value,
      final @Nonnull JListCellReader cellReader) {
    Point result = execute(new GuiQuery<Point>() {
      @Override protected Point executeInEDT() {
        int itemIndex = matchingItemIndex(list, new StringTextMatcher(value), cellReader);
        Rectangle cellBounds = checkNotNull(cellBounds(list, itemIndex));
        return cellCenter(list, cellBounds);
      }
    });
    return checkNotNull(result);
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @return a cell from the given {@code JTable} whose value matches the given one.
   * @throws ActionFailedException if a cell with a matching value cannot be found.
   */
  @RunsInEDT
  public @Nonnull TableCell cell(@Nonnull JTable table, @Nullable String value) {
    return cellWithValue(table, new StringTextMatcher(value), cellReader());
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the {@code JList} is not showing on the screen.
   * @throws LocationUnavailableException if an element matching the any of the given values cannot be found.
   */
  @RunsInEDT
  public void selectItems(@Nonnull JList list, @Nonnull String[] values) {
    selectItems(list, new StringTextMatcher(values));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the {@code JList} is not showing on the screen.
   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   */
  @RunsInEDT
  public void selectItem(@Nonnull JList list, @Nullable String value) {
    selectItem(list, new StringTextMatcher(value));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the {@code JList} is disabled.
   * @throws IllegalStateException if the {@code JList} is not showing on the screen.
   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   */
  public void clickItem(@Nonnull JList list, @Nullable String value, @Nonnull MouseButton button, int times) {
    clickItem(list, new StringTextMatcher(value), button, times);
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalArgumentException if the given array is empty.
   * @throws AssertionError if the selected items do not match the given values.
   */
  @RunsInEDT
  public void requireSelectedItems(@Nonnull JList list, @Nonnull String... items) {
    requireSelectedItems(list, new StringTextMatcher(items));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   * @see #replaceCellReader(JListCellReader)
   */
  @RunsInEDT
  public void drag(@Nonnull JList list, @Nullable String value) {
    drag(list, new StringTextMatcher(value));
  }
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.