Package org.openbp.swing.components.popupfield

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


    Object o = editor.getObject();
    if (!(o instanceof DisplayObject))
      return;

    selectionField.addItem(null);
    String displayName = NameUtil.makeDisplayName(((DisplayObject) o).getName());
    if (displayName != null)
    {
      selectionField.addItem(displayName);
    }
View Full Code Here


    selectionField.addItem(null);
    String displayName = NameUtil.makeDisplayName(((DisplayObject) o).getName());
    if (displayName != null)
    {
      selectionField.addItem(displayName);
    }

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

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

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

    selectionField.addItem(null);
    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

    Object o = editor.getObject();
    if (!(o instanceof HandlerDefinition))
      return;

    selectionField.addItem(null);

    ModelObject mo = ((HandlerDefinition) o).getOwner();
    String pkg = mo.getOwningModel().getDefaultPackage();
    if (pkg != null)
    {
View Full Code Here

      if (suffix != null)
      {
        className.append (suffix);
      }

      selectionField.addItem(className.toString());
    }
    else
    {
      selectionField.addItem("<no default model package name specified>");
    }
View Full Code Here

      selectionField.addItem(className.toString());
    }
    else
    {
      selectionField.addItem("<no default model package name specified>");
    }

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

    }

    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

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.