Examples of Dialog


Examples of org.apache.shale.dialog.basic.model.Dialog

         *
         * @exception Exception if a processing exception occurs
         */
        public void end(String namespace, String name) throws Exception {

            Dialog dialog = (Dialog) getDigester().peek();
            Map map = (Map) getDigester().peek(1);
            map.put(dialog.getName(), dialog);

        }
View Full Code Here

Examples of org.apache.struts2.jquery.components.Dialog

    super();
  }
 
  @Override
  public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    Component bean = new Dialog(stack, req, res);
    return bean;
  }
View Full Code Here

Examples of org.apache.tapestry.dojo.html.Dialog

        getBuilder().updateComponent("projectDescription");
    }
   
    public void showDialog()
    {
        Dialog dlg = (Dialog)getComponent("testDialog");
        dlg.show();
    }
View Full Code Here

Examples of org.beryl.gui.widgets.Dialog

   * @param message The dialog message
   * @return The result (RESULT_YES/RESULT_NO/RESULT_CANCEL)
   */
  public static int showYesNoCancelDialog(Frame frame, String title, String message) throws GUIException {
    YesNoCancelEventListener listener = new YesNoCancelEventListener();
    Dialog dialog = (Dialog) WidgetFactory.getInstance().constructWidget(DialogUtils.class, "YesNoCancelDialog", listener);
    Label label = (Label) dialog.getWidget("DialogCaption");
    label.setProperty("text", message);
    dialog.initDialog(frame);
    dialog.setProperty("title", title);
    dialog.show();
    return listener.getResult();
  }
View Full Code Here

Examples of org.beryl.gui.widgets.Dialog

  public void eventOccured(GUIEvent event) {
    String name = event.getName();
    try {
      if (name.equals("add")) {
        final Dialog dialog =
          (Dialog) WidgetFactory
            .getInstance()
            .constructWidget(getClass(), "AddInternationalizationDialog", new GUIEventListener() {
          public void eventOccured(GUIEvent event) {
            try {
              Widget source = event.getSource();
              if (event.getName().equals("ok")) {
                String key = (String) source.getDataModel().getValue("key");
                String value = (String) source.getDataModel().getValue("value");

                boolean isNew = (properties.getProperty(key) == null);
                properties.setProperty(key, value);
                if (isNew)
                  propertyModel.addRow(new PropertyTableRow(key));
                modified = true;
              }
              ((Dialog) source.getParentWidgetByClass(Dialog.class)).dispose();
            } catch (Exception e) {
              new MessageDialog(e);
            }
          }
        }, new MapDataModel());
        dialog.initDialog(frame);
        dialog.show();
      } else if (name.equals("popup")) {
        PopupMenu popup = (PopupMenu) constructWidget("PropertyPopup");
        popup.popup(event);
      } else if (name.equals("delete")) {
        TableRow rows[] = (TableRow[]) dataModel.getValue("property.value");
View Full Code Here

Examples of org.beryl.gui.widgets.Dialog

    parentNode.addChild(newNode, null);
    widget.finalizeConstruction();

    if (widget instanceof Dialog) {
      /* Dialogs get treated a little bit differently */
      Dialog dialog = (Dialog) widget;
      dialog.initDialog(null);
      dialog.show();
    }

    return widget;
  }
View Full Code Here

Examples of org.beryl.gui.widgets.Dialog

    widget.finalizeConstruction();

    parentObject.element.appendChild(childWidget);

    if (widget instanceof Dialog) {
      Dialog dialog = (Dialog) widget;
      dialog.initDialog(null);
      dialog.show();
    }

    if (parentWidget != null)
      revalidate(parentWidget);
View Full Code Here

Examples of org.eclipse.jface.dialogs.Dialog

  }

  public void run(IAction action) {
    if (fEditor instanceof ITextEditor) {
      final ITextEditor editor = (ITextEditor) fEditor;
      Dialog cleanupDialog = new CleanupDialogXML(editor.getSite().getShell());
      if (cleanupDialog.open() == Window.OK) {
        // setup runnable
        Runnable runnable = new Runnable() {
          public void run() {
            IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
            if (cleanupProcessor != null) {
View Full Code Here

Examples of org.eclipse.jface.dialogs.Dialog

            transfer(dest, JDBC_FILE_NAME, dialog);
            transfer(dest, CONFIG_FILE_NAME, dialog);

            if(needUserCopy) {
              while(!requiredPluginDir.exists()) {
                Dialog dialog2 = new Dialog(shell) {
                  protected Control createDialogArea(Composite parent) {
                    Control comp;
                      try {
                      Browser browser = new Browser(parent, SWT.NONE);

                        String mainMessage = String.format(Messages.GetHTMLCopyPluginMsg,finalNewPlugin.getParentFile().getAbsolutePath(), finalNewPlugin.getAbsolutePath(), pluginsDir.getAbsolutePath());
                    browser.setText(mainMessage);
                    browser.addLocationListener(new LocationListener() {
                     
                      @Override
                      public void changing(LocationEvent event) {
                        event.doit = false;
                        org.eclipse.swt.program.Program.launch(event.location);                       
                      }
                     
                      @Override
                      public void changed(LocationEvent event) {
                      }
                    });
                    comp = browser;
                      } catch (SWTError e) {
                      Text text = new Text(parent, SWT.MULTI
                          | SWT.READ_ONLY | SWT.WRAP | SWT.BORDER
                          | SWT.SHADOW_IN);

                      String mainMessage = String.format(Messages.GetDriverMsg,finalNewPlugin.getAbsolutePath(), pluginsDir.getAbsolutePath());
                      text.setText(mainMessage);
                      comp = text;
                      }
                      GridDataFactory.fillDefaults().hint(500, 200).applyTo(comp);

                      return comp;
                  };
                  @Override
                  protected Button createButton(Composite parent,
                      int id, String label, boolean defaultButton) {
                    Button button = super.createButton(parent, id,label, defaultButton);
                    if (id == Window.OK) button.setText("Restart");
 
                    return button;
                  }
                };
               
                if(dialog2.open() == Window.CANCEL) return;
              }
            }
           
            String cmd = buildCommandLine(shell);
            if (cmd != null) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Dialog

      }
    };

    textSelectionListener = new SelectionListener() {
      public void widgetSelected(SelectionEvent event) {
        Dialog settingsDialog = null;
        Button button = ((Button)event.widget);
        String selection = "";

        if (button.getData().equals("default_browser")) {
          settingsDialog = new FileDialog(Display.getDefault().getShells()[0], SWT.OPEN);
          settingsDialog.setText("Choose your default browser");
          selection = ((FileDialog)settingsDialog).open();
          if (selection != null) defaultBrowserText.setText(selection);
        }

        if (button.getData().equals("default_exc_dir")) {
          settingsDialog = new DirectoryDialog(Display.getDefault().getShells()[0], SWT.OPEN);
          settingsDialog.setText("Choose your default problem directory");
          selection = ((DirectoryDialog)settingsDialog).open();
          if (selection != null) defaultExcDirText.setText(selection);
        }

        if (selection != null) {
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.