Examples of addItem()


Examples of org.jbpm.formapi.common.panels.ListWidget.addItem()

        Object value = getInputValue(formData);
        if (value != null) {
            if (value.getClass().isArray()) {
                Object[] arr = (Object[]) value;
                for (Object obj : arr) {
                    lw.addItem(String.valueOf(obj));
                }
            } else if (value instanceof Collection) {
                Collection<?> coll = (Collection<?>) value;
                for (Object obj : coll) {
                    lw.addItem(String.valueOf(obj));
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.AbsolutePanelRepresentation.addItem()

    @Override
    public FormItemRepresentation getRepresentation() {
        AbsolutePanelRepresentation rep = super.getRepresentation(new AbsolutePanelRepresentation());
        rep.setId(this.id);
        for (FBFormItem item : getItems()) {
            rep.addItem(item.getRepresentation(),
                    item.getDesiredX() - panel.getAbsoluteLeft(),
                    item.getDesiredY() - panel.getAbsoluteTop());
        }
        return rep;
    }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.items.HorizontalPanelRepresentation.addItem()

        rep.setId(this.id);
        rep.setSpacing(this.spacing);
        rep.setTitle(this.title);
        rep.setVerticalAlignment(this.verticalAlignment);
        for (FBFormItem item : getItems()) {
            rep.addItem(item.getRepresentation());
        }
        return rep;
    }

    @Override
View Full Code Here

Examples of org.jitterbit.application.ui.menu.MenuContribution.addItem()

    }

    private void addMenuSwitch(Menu viewMenu, ViewShell shell) {
        MenuContribution viewSwitches = new MenuContribution("ViewMenu.ViewSwitches");
        Action action = shell.getSwitchAction();
        viewSwitches.addItem(new KongaMenuItem(action));
        viewMenu.addExtension(MenuExtensionPoint.EXTENSION_POINT_1, viewSwitches);
    }


    private void addMenuExtensionsFromShell(ViewShell shell) {
View Full Code Here

Examples of org.jitterbit.integration.data.entity.Folder.addItem()

    // Start by checking if it belongs to a folder.
    // This will implicitly add the item to a project.
    List<Folder> folderList = m_itemIdParentFolderListMap.get( entity.getID() );
    if ( folderList != null && !folderList.isEmpty() ) {
      Folder nextFolder = folderList.get(0);
      nextFolder.addItem(entity);
      folderList.remove(0);
      return;
    }
    else {
      project.getRootFolder(entity.getEntityType()).addItem(entity);
View Full Code Here

Examples of org.jitterbit.integration.data.entity.IntegrationEntityMapLookup.addItem()

        addProjectListener(new EntitiesDeletedHandler());
    }

    private IntegrationEntityMapLookup createEmptyLookup() {
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(this);
        return lookup;
    }

    private void addRootFolders() {
        for (EntityType type : getRootFolderTypes()) {
View Full Code Here

Examples of org.jitterbit.integration.data.entity.RootFolder.addItem()

   
    @Test
    public void testGetAllEntities() {
        RootFolder schedules = project.getRootFolder(EntityType.Schedule);
        Schedule s1 = new Schedule("s1");
        schedules.addItem(s1);
        Schedule s2 = new Schedule("s2");
        schedules.addItem(s2);
        Folder f1 = new Folder("F1", EntityType.Schedule);
        Schedule s3 = new Schedule("s3");
        f1.addItem(s3);
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DataForm.addItem()

                }
                else if (parser.getName().equals("field")) {                   
                    dataForm.addField(parseField(parser));
                }
                else if (parser.getName().equals("item")) {                   
                    dataForm.addItem(parseItem(parser));
                }
                else if (parser.getName().equals("reported")) {                   
                    dataForm.setReportedData(parseReported(parser));
                }
            } else if (eventType == XmlPullParser.END_TAG) {
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DiscoverItems.addItem()

                    if (nodeInformationProvider != null) {
                        // Specified node was found
                        List<DiscoverItems.Item> items = nodeInformationProvider.getNodeItems();
                        if (items != null) {
                            for (DiscoverItems.Item item : items) {
                                response.addItem(item);
                            }
                        }
                    } else if(discoverItems.getNode() != null) {
                        // Return <item-not-found/> error since client doesn't contain
                        // the specified node
View Full Code Here

Examples of org.jivesoftware.smackx.packet.MUCAdmin.addItem()

        iq.setType(IQ.Type.SET);
        // Set the new affiliation.
        MUCAdmin.Item item = new MUCAdmin.Item(affiliation, null);
        item.setJid(jid);
        item.setReason(reason);
        iq.addItem(item);

        // Wait for a response packet back from the server.
        PacketFilter responseFilter = new PacketIDFilter(iq.getPacketID());
        PacketCollector response = connection.createPacketCollector(responseFilter);
        // Send the change request to the server.
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.