Examples of GuiTask


Examples of org.fest.swing.edt.GuiTask

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void showCaretOf(final @Nonnull JTextComponent textComponent) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        Caret caret = textComponent.getCaret();
        if (caret != null) {
          caret.setVisible(true);
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Yvonne Wang
*/
final class JInternalFrameSetIconTask {
  @RunsInEDT
  static void setIcon(final @Nonnull JInternalFrame internalFrame, final @Nonnull JInternalFrameAction action) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() throws PropertyVetoException {
        internalFrame.setMaximum(false);
        internalFrame.setIcon(action.value);
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
*/
final class JTextComponentSetTextTask {
  @RunsInEDT
  static void setTextIn(final @Nonnull JTextComponent textBox, final String text) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        textBox.setText(text);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
*/
final class ComponentMoveTask {
  @RunsInEDT
  static void moveComponent(final @Nonnull Component c, final @Nonnull Point location) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        c.setLocation(location);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

*/
final class JTreeVerifySelectionTask {
  @RunsInEDT
  static void checkHasSelection(final @Nonnull JTree tree, final @Nonnull int[] selection,
      final @Nonnull Description errMsg) {
    execute(new GuiTask() {
      @Override protected void executeInEDT() {
        checkSelection(tree, selection, errMsg);
      }
    });
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

  }

  @RunsInEDT
  static void checkHasSelection(final @Nonnull JTree tree, final @Nonnull String[] selection,
      final @Nonnull JTreePathFinder pathFinder, final @Nonnull Description errMsg) {
    execute(new GuiTask() {
      @Override protected void executeInEDT() {
        checkSelection(tree, selection, pathFinder, errMsg);
      }
    });
  }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

  }


  @RunsInEDT
  static void checkNoSelection(final @Nonnull JTree tree, final @Nonnull Description errMsg) {
    execute(new GuiTask() {
      @Override protected void executeInEDT() {
        if (tree.getSelectionCount() == 0) {
          return;
        }
        String format = "[%s] expected no selection but was:<%s>";
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
* @author Yvonne Wang
*/
final class JScrollBarSetValueTask {
  static void setValue(final @Nonnull JScrollBar scrollBar, final int value) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        scrollBar.setValue(value);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Yvonne Wang
*/
final class JSplitPaneSetDividerLocationTask {
  @RunsInEDT
  static void setDividerLocation(final @Nonnull JSplitPane splitPane, final int location) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        splitPane.setDividerLocation(location);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
*/
public class AppletViewer_newViewerWithAppletAndAppletStub_Test extends EDTSafeTestCase {
  @Test(expected = NullPointerException.class)
  public void should_throw_error_if_AppletStub_is_null() {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        AppletStub appletStub = null;
        AppletViewer.newViewer(singletonAppletMock(), appletStub);
      }
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.