Examples of addChoice()


Examples of com.alkacon.acacia.client.ui.AttributeValueView.addChoice()

                    value.getAttribute(attributeChoice).getComplexValue());
            }

            List<ChoiceMenuEntryBean> menuEntries = Renderer.getChoiceEntries(getAttributeType(), true);
            for (ChoiceMenuEntryBean menuEntry : menuEntries) {
                valueWidget.addChoice(m_widgetService, menuEntry);
            }
        } else if (getAttributeType().isSimpleType()) {
            String value = m_entity.getAttribute(m_attributeName).getSimpleValues().get(currentPosition);
            m_entity.removeAttributeValue(m_attributeName, currentPosition);
            m_entity.insertAttributeValue(m_attributeName, value, targetPosition);
View Full Code Here

Examples of com.alkacon.acacia.client.ui.ChoiceSubmenu.addChoice()

        ChoiceSubmenu submenu = new ChoiceSubmenu(menuEntry);
        submenu.positionDeferred(entryWidget);
        choiceWidget.getSubmenuPanel().add(submenu);
        m_submenus.add(submenu);
        for (ChoiceMenuEntryBean subEntry : menuEntry.getChildren()) {
            submenu.addChoice(new ChoiceMenuEntryWidget(
                m_widgetService.getAttributeLabel(subEntry.getPathComponent()),
                m_widgetService.getAttributeHelp(subEntry.getPathComponent()),
                subEntry,
                selectHandler,
                choiceWidget,
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

      GenericDialog gd = new GenericDialog(command+"...");
      gd.addNumericField("Radius", radius, 1, 6, "pixels");
      int digits = imp.getType() == ImagePlus.GRAY32 ? 2 : 0;
      if(filterType == OUTLIERS) {
        gd.addNumericField("Threshold", threshold, digits);
        gd.addChoice("Which Outliers", outlierStrings, outlierStrings[whichOutliers]);
      }
      gd.addPreviewCheckbox(pfr);    //passing pfr makes the filter ready for preview
      gd.addDialogListener(this);    //the DialogItemChanged method will be called on user input
      gd.showDialog();              //display the dialog; preview runs in the  now
      if (gd.wasCanceled()) return DONE;
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

    GenericDialog gd = new GenericDialog("ZProjection",IJ.getInstance());
    gd.addNumericField("Start slice:",startSlice,0/*digits*/);
    gd.addNumericField("Stop slice:",stopSlice,0/*digits*/);

    // Different kinds of projections.
    gd.addChoice("Projection Type", METHODS, METHODS[method]);

    return gd;
    }

    /** Performs actual projection using specified method. */
 
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

                JOptionPane.ERROR_MESSAGE);
            return;
          }
          String[] choices = { "Dump to textfile", "Apply to image" };
          GenericDialog gd = new GenericDialog(" Z stamps");
          gd.addChoice("Stamps destination : ", choices,
              "Apply to image");
          gd.showDialog();
          if (gd.wasCanceled()) {
            return;
          }
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

                JOptionPane.ERROR_MESSAGE);
            return;
          }
          String[] choices = { "Dump to textfile", "Apply to image" };
          GenericDialog gd = new GenericDialog("Time stamps");
          gd.addChoice("Stamps destination : ", choices,
              "Apply to image");
          gd.showDialog();
          if (gd.wasCanceled()) {
            return;
          }
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

                JOptionPane.ERROR_MESSAGE);
            return;
          }
          String[] choices = { "Dump to textfile", "Apply to image" };
          GenericDialog gd = new GenericDialog("Lambdastamps");
          gd.addChoice("Stamps destination : ", choices,
              "Apply to image");
          gd.showDialog();
          if (gd.wasCanceled()) {
            return;
          }
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

    public void run(String arg) {
        OpenDialog od = new OpenDialog("Select a file in source folder...", "");
        if (od.getFileName()==null) return;
        String dir1 = od.getDirectory();
        GenericDialog gd = new GenericDialog("LSM Batch Converter", IJ.getInstance());
        gd.addChoice("Convert to: ", choices, format);
        gd.showDialog();
        if (gd.wasCanceled())
            return;
        format = gd.getNextChoice();
        SaveDialog sd = new SaveDialog("Open destination folder...", "dummy name (required)", "");
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

      radius = lastRadius[filterType]<=0 ? 2 :  lastRadius[filterType];
      gd.addNumericField("Radius", radius, 1, 6, "pixels");
      int digits = imp.getType() == ImagePlus.GRAY32 ? 2 : 0;
      if (filterType==OUTLIERS) {
        gd.addNumericField("Threshold", lastThreshold, digits);
        gd.addChoice("Which outliers", outlierStrings, outlierStrings[lastWhichOutliers]);
        gd.addHelp(IJ.URL+"/docs/menus/process.html#outliers");
      } else if (filterType==REMOVE_NAN)
        gd.addHelp(IJ.URL+"/docs/menus/process.html#nans");
      gd.addPreviewCheckbox(pfr);    //passing pfr makes the filter ready for preview
      gd.addDialogListener(this);    //the DialogItemChanged method will be called on user input
View Full Code Here

Examples of ij.gui.GenericDialog.addChoice()

  }
 
  boolean showDialog(ImagePlus imp) {
    int size = imp.getStackSize();
    GenericDialog gd = new GenericDialog("Z Project");
    gd.addChoice("Projection method", ZProjector.METHODS, ZProjector.METHODS[method]);
    gd.addNumericField("Group size:", size, 0);
    gd.showDialog();
    if (gd.wasCanceled()) return false;
    method = gd.getNextChoiceIndex();
    groupSize = (int)gd.getNextNumber();
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.