2829303132333435363738
* @author Alex Ruiz */ final class JTreeSetRootVisibleTask { @RunsInEDT static void setRootVisible(final @Nonnull JTree tree, final boolean visible) { execute(new GuiTask() { @Override protected void executeInEDT() { tree.setRootVisible(visible); } });
* @author Alex Ruiz */ final class JTreeSetEditableTask { @RunsInEDT static void setEditable(final @Nonnull JTree tree, final boolean editable) { execute(new GuiTask() { @Override protected void executeInEDT() { tree.setEditable(editable); } });
6061626364656667686970
validateIndex(list, index); } @RunsInEDT private static void validateIndex(final JList list, final int index) { execute(new GuiTask() { @Override protected void executeInEDT() { JListItemPreconditions.checkIndexInBounds(list, index); } });
6465666768697071727374
robot.waitForIdle(); } @RunsInEDT private static void setJLabelAsEditorIn(final JSpinner spinner) { execute(new GuiTask() { @Override protected void executeInEDT() { spinner.setEditor(new JLabel()); } });
8687888990919293949596
robot.waitForIdle(); } @RunsInEDT private static void setValue(final JSpinner spinner, final Object value) { execute(new GuiTask() { @Override protected void executeInEDT() { spinner.setValue(value); } });
5556575859606162636465
assertThat(hasSelection(table)).isTrue(); } @RunsInEDT private static void selectAllIn(final TestTable table) { execute(new GuiTask() { @Override protected void executeInEDT() { table.selectAll(); } });
919293949596979899100101
@RunsInEDT private void checkSafelyIfReady(final @Nonnull Window w) { if (!windows.isShowingButNotReady(w)) { return; } execute(new GuiTask() { @Override protected void executeInEDT() { makeLargeEnoughToReceiveEvents(w); } });
robot.waitForIdle(); } @RunsInEDT static void setText(final JTextField textField, final String text) { execute(new GuiTask() { @Override protected void executeInEDT() { textField.setText(text); } });
4546474849505152535455
parent = FrameWithButton.createNew(); } @After public void tearDown() { execute(new GuiTask() { @Override protected void executeInEDT() { parent.setVisible(false); parent.dispose(); }
9899100101102103104105106107108
} } @RunsInEDT private static void makeEditableAndClearSelection(final JComboBox comboBox) { execute(new GuiTask() { @Override protected void executeInEDT() { comboBox.setSelectedIndex(-1); comboBox.setEditable(true); }