Examples of Dialog


Examples of java.awt.Dialog

                                }
                            }
                        });
                        dd.setOptions(new Object[]{okButton, DialogDescriptor.CANCEL_OPTION});
                        dd.setClosingOptions(null);//All options close
                        Dialog dialog = DialogDisplayer.getDefault().createDialog(dd);
                        dialog.addWindowListener(new WindowAdapter() {

                            @Override
                            public void windowClosing(WindowEvent e) {
                                ui.unSetup();
                            }
                        });
                        dialog.setVisible(true);
                    } else {
                        executeAttributeColumnsManipulatorInOtherThread(m, table, column);
                    }
                }
            });
View Full Code Here

Examples of java.awt.Dialog

    public void actionPerformed(ActionEvent e) {
        SpigotWizardIterator wizardIterator = new SpigotWizardIterator();
        WizardDescriptor wizardDescriptor = new WizardDescriptor(wizardIterator);
        wizardDescriptor.setTitleFormat(new MessageFormat("{0} ({1})"));
        wizardDescriptor.setTitle(NbBundle.getMessage(getClass(), "ImportSpigot.wizard.title"));
        Dialog dialog = DialogDisplayer.getDefault().createDialog(wizardDescriptor);
        dialog.setVisible(true);
        dialog.toFront();

        boolean cancelled = wizardDescriptor.getValue() != WizardDescriptor.FINISH_OPTION;
        if (!cancelled) {
            ImporterWizardUI wizardUI = wizardIterator.getCurrentWizardUI();
View Full Code Here

Examples of java.awt.Dialog

  private @Nonnull DialogFixture findDialog(@Nonnull ComponentMatcher matcher, @Nonnull Timeout timeout) {
    String description = "dialog to be found using matcher " + matcher;
    ComponentFoundCondition condition = new ComponentFoundCondition(description, robot().finder(), matcher);
    pause(condition, timeout);
    Dialog dialog = (Dialog) condition.found();
    return new DialogFixture(robot(), checkNotNull(dialog));
  }
View Full Code Here

Examples of java.awt.Dialog

* @author Yvonne Wang
*/
public class DialogFixture_constructor_withRobotAndName_Test extends RobotBasedTestCase {
  @Test
  public void should_lookup_showing_dialog_by_name() {
    Dialog target = dialog().withName("dialog")
                            .withTitle(getClass().getSimpleName())
                            .createAndShow();
    DialogFixture fixture = new DialogFixture(robot, "dialog");
    assertThat(fixture.robot()).isSameAs(robot);
    assertThat(fixture.target()).isSameAs(target);
View Full Code Here

Examples of java.awt.Dialog

    }
  }

  @Test
  public void should_lookup_showing_dialog_by_name_using_new_Robot() {
    Dialog target = dialog().withName("dialog")
                            .withTitle(getClass().getSimpleName())
                            .createAndShow();
    fixture = new DialogFixture("dialog");
    assertThat(fixture.robot()).isNotNull();
    assertThat(fixture.target()).isSameAs(target);
View Full Code Here

Examples of java.awt.Dialog

    }
  }

  @Test
  public void should_create_new_Robot_and_use_given_dialog_as_target() {
    Dialog target = dialog().createNew();
    fixture = new DialogFixture(target);
    assertThat(fixture.robot()).isNotNull();
    assertThat(fixture.target()).isSameAs(target);
  }
View Full Code Here

Examples of java.awt.Dialog

        // TODO Auto-generated constructor stub
    }

    public Object createComponentInstance(Object parent, DomNode element)
    {
        Dialog dlg = null;
        if (parent instanceof Frame)
        {
            dlg = new Dialog((Frame) parent);
        } else
        {
            dlg = new Dialog((Dialog) parent);
        }
        handleChildren(getClient(), dlg, dlg, element);
        return dlg;
    }
View Full Code Here

Examples of javax.sip.Dialog

         * @see EventPackageSubscriber.Subscription#getDialog()
         */
        @Override
        protected Dialog getDialog()
        {
            Dialog dialog = super.getDialog();

            if ((dialog == null)
                    || DialogState.TERMINATED.equals(dialog.getState()))
                dialog = callPeer.getDialog();
            return dialog;
        }
View Full Code Here

Examples of javax.sip.Dialog

         * @see EventPackageSubscriber.Subscription#getDialog()
         */
        @Override
        protected Dialog getDialog()
        {
            Dialog dialog = super.getDialog();

            if ((dialog == null)
                    || DialogState.TERMINATED.equals(dialog.getState()))
                dialog = callPeer.getDialog();
            return dialog;
        }
View Full Code Here

Examples of javax.sip.Dialog

         * @see EventPackageSubscriber.Subscription#getDialog()
         */
        @Override
        protected Dialog getDialog()
        {
            Dialog dialog = super.getDialog();

            if ((dialog == null)
                    || DialogState.TERMINATED.equals(dialog.getState()))
                dialog = callPeer.getDialog();
            return dialog;
        }
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.