Examples of GuiTask


Examples of org.fest.swing.edt.GuiTask

    assertNoSelection(table);
  }

  @RunsInEDT
  private static void assertNoSelection(final @Nonnull JTable table) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        if (!hasSelection(table)) {
          return;
        }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

   * @throws NullPointerException if the cell is {@code null}.
   * @throws IndexOutOfBoundsException if any of the indices (row and column) is out of bounds.
   */
  @RunsInEDT
  public void checkCellIndicesInBounds(final @Nonnull JTable table, final @Nonnull TableCell cell) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        JTableCellPreconditions.checkCellIndicesInBounds(table, cell);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
*/
final class JTreeExpandPathTask {
  @RunsInEDT
  static void expandTreePath(final @Nonnull JTree tree, final @Nonnull TreePath path) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        TreePath realPath = addRootIfInvisible(tree, path);
        if (!tree.isExpanded(path)) {
          tree.expandPath(realPath);
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

  private JTextField scrollToViewTextField;

  @RunsInEDT
  @Override
  void extraSetUp() {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        scrollToViewTextField = new JTextField(10);
        JScrollPane scrollPane = new JScrollPane(VERTICAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_ALWAYS);
        JViewport viewport = scrollPane.getViewport();
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

* @author Alex Ruiz
*/
final class JComboBoxMakeEditableAndSelectItemTask {
  @RunsInEDT
  static void makeEditableAndSelectItem(final @Nonnull JComboBox comboBox, final @Nullable Object itemToSelect) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        comboBox.setEditable(true);
        comboBox.setSelectedItem(itemToSelect);
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    });
  }

  @RunsInEDT
  static void makeEditableAndSelectIndex(final @Nonnull JComboBox comboBox, final int index) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        comboBox.setEditable(true);
        comboBox.setSelectedIndex(index);
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void setEditableAndSelectFirstItem(final JComboBox comboBox, final boolean editable) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        comboBox.setSelectedIndex(0);
        comboBox.setEditable(editable);
      }
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    showWindow();
  }

  @RunsInEDT
  private static void setFloatable(final JToolBar toolBar, final boolean flotable) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        toolBar.setFloatable(flotable);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void setMultipleSelectionEnabled(final JFileChooser fileChooser, final boolean b) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        fileChooser.setMultiSelectionEnabled(b);
      }
    });
View Full Code Here

Examples of org.fest.swing.edt.GuiTask

    robot.waitForIdle();
  }

  @RunsInEDT
  private static void setClosable(final JInternalFrame internalFrame, final boolean closeable) {
    execute(new GuiTask() {
      @Override
      protected void executeInEDT() {
        internalFrame.setClosable(closeable);
      }
    });
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.