Package org.openbp.swing.components.popupfield

Examples of org.openbp.swing.components.popupfield.JSelectionField.addItem()


    outputDirLabel.setBorder(new EmptyBorder(0, 0, 0, 5));
    panel.add(outputDirLabel, BorderLayout.WEST);

    // Text field
    final JSelectionField sf = new JSelectionField();
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.ask"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.merge"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.overwrite"));
    sf.setEditable(false);
    sf.addActionListener(new ActionListener()
    {
View Full Code Here


    panel.add(outputDirLabel, BorderLayout.WEST);

    // Text field
    final JSelectionField sf = new JSelectionField();
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.ask"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.merge"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.overwrite"));
    sf.setEditable(false);
    sf.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent ae)
View Full Code Here

    // Text field
    final JSelectionField sf = new JSelectionField();
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.ask"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.merge"));
    sf.addItem(resourceCollection.getRequiredString("wizard.result.overwrite.overwrite"));
    sf.setEditable(false);
    sf.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent ae)
      {
View Full Code Here

    // Get visual types.
    String [] visualTypes = registry.getVisualTypes();

    // Add empty value.
    selectionField.addItem("", null);

    // For each visual type...
    for (int i = 0; i < visualTypes.length; i++)
    {
      // ... add an entry to the drop down.
View Full Code Here

    // For each visual type...
    for (int i = 0; i < visualTypes.length; i++)
    {
      // ... add an entry to the drop down.
      selectionField.addItem(registry.getDisplayText(visualTypes [i], UIAdapterDescriptor.COCKPIT_DISPLAY_NAME), visualTypes [i]);
    }

    // Restore the text
    selectionField.setText(text);
  }
View Full Code Here

      String name = node.getName();
      map.put(name, name);
    }

    selectionField.addItem(null);
    selectionField.addItem(CoreConstants.JUMPTARGET_DEFAULT_PROCESS);
    for (Iterator itGroups = map.keySet().iterator(); itGroups.hasNext();)
    {
      String s = (String) itGroups.next();
      selectionField.addItem(s);
View Full Code Here

      String name = node.getName();
      map.put(name, name);
    }

    selectionField.addItem(null);
    selectionField.addItem(CoreConstants.JUMPTARGET_DEFAULT_PROCESS);
    for (Iterator itGroups = map.keySet().iterator(); itGroups.hasNext();)
    {
      String s = (String) itGroups.next();
      selectionField.addItem(s);
    }
View Full Code Here

    selectionField.addItem(null);
    selectionField.addItem(CoreConstants.JUMPTARGET_DEFAULT_PROCESS);
    for (Iterator itGroups = map.keySet().iterator(); itGroups.hasNext();)
    {
      String s = (String) itGroups.next();
      selectionField.addItem(s);
    }

    // Restore the text
    selectionField.setText(text);
  }
View Full Code Here

        String name = d.getName();
        String text = d.getDescription();
        if (text != null)
        {
          c.addItem(text, name);
        }
        else
        {
          c.addItem(name);
        }
View Full Code Here

        {
          c.addItem(text, name);
        }
        else
        {
          c.addItem(name);
        }
      }
    }

    c.addFocusListener(this);
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.