Examples of StringTextMatcher


Examples of org.fest.swing.util.StringTextMatcher

   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   * @throws ActionFailedException if there is no drag action in effect.
   */
  @RunsInEDT
  public void drop(@Nonnull JList list, @Nullable String value) {
    drop(list, new StringTextMatcher(value));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws ComponentLookupException if a pop-up menu cannot be found.
   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   */
  @RunsInEDT
  public JPopupMenu showPopupMenu(@Nonnull JList list, @Nullable String value) {
    return showPopupMenu(list, new StringTextMatcher(value));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @return the index of the first item matching the given value.
   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   */
  @RunsInEDT
  public int indexOf(@Nonnull JList list, @Nullable String value) {
    return indexOf(list, new StringTextMatcher(value));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

  @RunsInEDT
  private static int indexOfTab(final JTabbedPane tabbedPane, final String title) {
    return execute(new GuiQuery<Integer>() {
      @Override
      protected Integer executeInEDT() {
        return JTabbedPaneTabIndexQuery.indexOfTab(tabbedPane, new StringTextMatcher(title));
      }
    });
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @return the index of the first tab that matches the given {@code String}.
   * @throws LocationUnavailableException if a tab matching the given title could not be found.
   */
  @RunsInCurrentThread
  public int indexOf(@Nonnull JTabbedPane tabbedPane, @Nullable String title) {
    return indexOf(tabbedPane, new StringTextMatcher(title));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the {@code JTabbedPane} is not showing on the screen.
   * @throws LocationUnavailableException if a tab matching the given title could not be found.
   */
  @RunsInEDT
  public void selectTab(@Nonnull JTabbedPane tabbedPane, @Nullable String title) {
    selectTab(tabbedPane, new StringTextMatcher(title));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

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

Examples of org.fest.swing.util.StringTextMatcher

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

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the <code>JList</code> 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(JList list, String[] values) {
    selectItems(list, new StringTextMatcher(values));
  }
View Full Code Here

Examples of org.fest.swing.util.StringTextMatcher

   * @throws IllegalStateException if the <code>JList</code> is not showing on the screen.
   * @throws LocationUnavailableException if an element matching the given value cannot be found.
   */
  @RunsInEDT
  public void selectItem(JList list, String value) {
    selectItem(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.