Examples of GuiTask


Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
*/
public class AppletViewer_newViewerWithAppletAndMap_Test extends EDTSafeTestCase {
  @Test(expected = NullPointerException.class)
  public void should_throw_error_if_parameterMap_is_null() {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        Map<String, String> map = null;
        AppletViewer.newViewer(singletonAppletMock(), map);
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    hideDropDownListIfVisible(comboBox);
  }

  @RunsInEDT
  private static void validateCanSelectItem(final @Nonnull JComboBox comboBox, final int index) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkEnabledAndShowing(comboBox);
        checkItemIndexInBounds(comboBox, index);
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    dropDownVisibleThroughUIDelegate(comboBox, false);
  }

  @RunsInEDT
  private void dropDownVisibleThroughUIDelegate(@Nonnull final JComboBox comboBox, final boolean visible) {
    execute(new GuiTask() {
      @Override protected void executeInEDT() {
        comboBox.setPopupVisible(visible);
      }
    });
    robot.waitForIdle();
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

   * @throws IllegalStateException if the {@code JComboBox} is not editable.
   * @throws ActionFailedException if the {@code JComboBox} does not have an editor.
   */
  @RunsInEDT
  public void enterText(final @Nonnull JComboBox comboBox, @Nonnull String text) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkAccessibleEditor(comboBox);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    });
  }

  @RunsInEDT
  private static void assertThatIsInitializedAndStarted(final TestApplet applet) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        assertThat(applet.initialized()).isTrue();
        assertThat(applet.started()).isTrue();
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

   * @throws IllegalStateException if the {@code Component} is disabled.
   * @throws IllegalStateException if the {@code Component} is not showing on the screen.
   */
  @RunsInEDT
  protected static void checkInEdtEnabledAndShowing(final @Nonnull Component c) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkEnabledAndShowing(c);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void selectRow(final JTable table, final int row) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        table.setRowSelectionInterval(row, row);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    robot.click(tree, p, LEFT_BUTTON, toggleClickCount);
  }

  @RunsInEDT
  private static void toggleRowThroughTreeUI(final @Nonnull JTree tree, final @Nonnull Point p) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        TreeUI treeUI = tree.getUI();
        if (!(treeUI instanceof BasicTreeUI)) {
          throw actionFailure(concat("Can't toggle row for ", treeUI));
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Yvonne Wang
*/
final class JTableStopCellEditingTask {
  @RunsInEDT
  static void stopEditing(final @Nonnull TableCellEditor cellEditor) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        doStopCellEditing(cellEditor);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    });
  }

  @RunsInEDT
  static void stopEditing(final @Nonnull JTable table, final int row, final int column) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        doStopCellEditing(table, row, column);
      }
    });
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.