Examples of UIAdapterDescriptorRegistry


Examples of org.openbp.core.uiadapter.UIAdapterDescriptorRegistry

    // Clear the item list
    selectionField.clearItems();

    // Get UI adapter registry.
    UIAdapterDescriptorRegistry registry = UIAdapterDescriptorRegistry.getInstance();

    // 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.
      selectionField.addItem(registry.getDisplayText(visualTypes [i], UIAdapterDescriptor.COCKPIT_DISPLAY_NAME), visualTypes [i]);
    }

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

Examples of org.openbp.core.uiadapter.UIAdapterDescriptorRegistry

    {
      MimeTypes.ACTIVITY_ITEM
    }, Association.PRIMARY, "");

    // Get the set of visual types from the UIAdapterRegisty.
    UIAdapterDescriptorRegistry registry = UIAdapterDescriptorRegistry.getInstance();
    String[] visualTypes = registry.getVisualTypes();

    for (int i = 0; i < visualTypes.length; i++)
    {
      String visualType = visualTypes[i];
      String visualSource = registry.getVisualPath(visualType, getVisualId(), getModel());

      associations = AssociationUtil.addAssociation(associations, - 1, registry.getDisplayText(visualType,
        UIAdapterDescriptor.ASSOCIATION_DISPLAY_NAME), visualSource, this, registry.getMimeTypes(visualType), Association.NORMAL, registry
        .getDisplayText(visualType, UIAdapterDescriptor.ASSOCIATION_HINT_MESSAGE));
    }

    associations = AssociationUtil.addAssociations(associations, - 1, super.getAssociations());
View Full Code Here

Examples of org.openbp.core.uiadapter.UIAdapterDescriptorRegistry

  public List getAssociations()
  {
    List associations = null;

    // Get the set of visual types from the UIAdapterRegisty.
    UIAdapterDescriptorRegistry registry = UIAdapterDescriptorRegistry.getInstance();
    String[] visualTypes = registry.getVisualTypes();

    for (int i = 0; i < visualTypes.length; i++)
    {
      String visualType = visualTypes[i];
      String visualSource = registry.getVisualPath(visualType, getVisualId(), getProcess().getModel());

      associations = AssociationUtil.addAssociation(associations, - 1, registry.getDisplayText(visualType,
        UIAdapterDescriptor.ASSOCIATION_DISPLAY_NAME), visualSource, this, registry.getMimeTypes(visualType), Association.NORMAL, registry
        .getDisplayText(visualType, UIAdapterDescriptor.ASSOCIATION_HINT_MESSAGE));
    }

    return associations;
  }
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.