Package org.fest.swing.edt

Examples of org.fest.swing.edt.GuiTask


    driver.clientProperty(button, null);
  }

  @RunsInEDT
  private static void putClientProperty(final JComponent c, final Object key, final Object value) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        c.putClientProperty(key, value);
      }
    });
View Full Code Here


    window = MyWindow.createNew(getClass());
  }

  @RunsInEDT
  final void editTableCellAt(final int row, final int col) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        window.table.editCellAt(row, col);
      }
    });
View Full Code Here

  // TODO test
  @RunsInEDT
  static @Nonnull AppletViewer showAppletViewerWith(
      final @Nonnull Applet applet, final @Nonnull Map<String, String> parameters) {
    final AppletViewer viewer = newViewer(applet, parameters);
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        viewer.pack();
        viewer.setVisible(true);
      }
View Full Code Here

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void clearSelectionOf(final @Nonnull JList list) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        list.clearSelection();
      }
    });
View Full Code Here

    }
  }

  @RunsInEDT
  private static void validateIndicesAndClearSelection(final @Nonnull JList list, final @Nonnull int... indices) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkIndicesInBounds(list, indices);
        list.clearSelection();
      }
View Full Code Here

   * @throws IllegalStateException if the {@code JFileChooser} is disabled.
   * @throws IllegalStateException if the {@code JFileChooser} is not showing on the screen.
   */
  @RunsInEDT
  public void setCurrentDirectory(@Nonnull final JFileChooser fileChooser, @Nonnull final File dir) {
    execute(new GuiTask() {
      @Override protected void executeInEDT() {
        checkEnabledAndShowing(fileChooser);
        fileChooser.setCurrentDirectory(dir);
      }
    });
View Full Code Here

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void validateAndIncrementValue(final @Nonnull JSpinner spinner, final int times) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkEnabledAndShowing(spinner);
        incrementValue(spinner, times);
      }
View Full Code Here

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void validateAndIncrementValue(final @Nonnull JSpinner spinner) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkEnabledAndShowing(spinner);
        Object newValue = spinner.getNextValue();
        if (newValue != null) {
View Full Code Here

    throw new IllegalArgumentException(msg);
  }

  @RunsInEDT
  private static void validateAndDecrementValue(final @Nonnull JSpinner spinner, final int times) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkEnabledAndShowing(spinner);
        decrementValue(spinner, times);
      }
View Full Code Here

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void validateAndDecrementValue(final @Nonnull JSpinner spinner) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        checkEnabledAndShowing(spinner);
        Object newValue = spinner.getPreviousValue();
        if (newValue != null) {
View Full Code Here

TOP

Related Classes of org.fest.swing.edt.GuiTask

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.