Examples of DynamicList


Examples of com.cosmo.data.lists.DynamicList

      NodeList attribList;
      NodeList listDefs;
      Element listElement;
      Element attribElement;
      StaticList sList = null;
      DynamicList dList = null;
      ListItem item;

      // Inicializa el contenedor de listas
      HashMap<String, List> lists = new HashMap<String, List>();

      // Comprueba si existe la definici�n
      attribList = doc.getElementsByTagName(DataServiceProperties.XML_TAG_DATALISTS);
      if (attribList.getLength() < 1)
      {
         return lists;
      }

      // Carga las listas est�ticas
      listDefs = doc.getElementsByTagName(DataServiceProperties.XML_TAG_STATICLIST);
      for (int pidx = 0; pidx < listDefs.getLength(); pidx++)
      {
         listNode = listDefs.item(pidx);
         if (listNode.getNodeType() == Node.ELEMENT_NODE)
         {
            listElement = (Element) listNode;

            sList = new StaticList(listElement.getAttribute(DataServiceProperties.XML_ATT_ID));

            attribList = listElement.getElementsByTagName(DataServiceProperties.XML_TAG_STATICLISTITEM);
            for (int aidx = 0; aidx < attribList.getLength(); aidx++)
            {
               attribNode = attribList.item(aidx);
               if (attribNode.getNodeType() == Node.ELEMENT_NODE)
               {
                  attribElement = (Element) attribNode;
                  item = new ListItem(attribElement.getAttribute(DataServiceProperties.XML_ATT_VALUE),
                                      attribElement.getAttribute(DataServiceProperties.XML_ATT_TITLE));

                  if (!StringUtils.isNullOrEmptyTrim(attribElement.getAttribute(DataServiceProperties.XML_ATT_DEFAULTVALUE)))
                  {
                     item.setDefault(attribElement.getAttribute(DataServiceProperties.XML_ATT_DEFAULTVALUE).equals("true") ||
                                     attribElement.getAttribute(DataServiceProperties.XML_ATT_DEFAULTVALUE).equals("1"));
                  }

                  sList.addListItem(item);
               }
            }

            lists.put(sList.getId(), sList);
         }
      }

      // Carga las listas din�micas SQL
      listDefs = doc.getElementsByTagName(DataServiceProperties.XML_TAG_DYNAMICLIST);
      for (int pidx = 0; pidx < listDefs.getLength(); pidx++)
      {
         listNode = listDefs.item(pidx);
         if (listNode.getNodeType() == Node.ELEMENT_NODE)
         {
            listElement = (Element) listNode;

            dList = new DynamicList(listElement.getAttribute(DataServiceProperties.XML_ATT_ID));
            dList.setConnection(listElement.getAttribute(DataServiceProperties.XML_ATT_CONNECTION));
            dList.setValueFieldName(listElement.getAttribute(DataServiceProperties.XML_ATT_VALUE));
            dList.setTitleFieldName(listElement.getAttribute(DataServiceProperties.XML_ATT_TITLE));

            attribList = listElement.getElementsByTagName(DataServiceProperties.XML_TAG_SQLSTATEMENT);
            if (attribList.getLength() > 0)
            {
               attribNode = attribList.item(0);
               dList.setSqlStatement(attribNode.getFirstChild().getNodeValue());

               lists.put(dList.getId(), dList);
            }
         }
      }

      return lists;

Examples of com.datasift.client.dynamiclist.DynamicList

        DataSiftConfig config = new DataSiftConfig("username", "api-key");

        DataSiftClient datasift = new DataSiftClient(config);
        DataSiftDynamicList dynamiclist = new DataSiftDynamicList(config);

        DynamicList list = dynamiclist.create(DataSiftDynamicList.ListType.STRING, "example list").sync();
        if (list.isSuccessful()) {
            // create a stream that references the dynamic list, using the list_any operator
            Stream stream = datasift
                    .compile(String.format("interaction.content list_any \"%s\"", list.getId())).sync();

            // even after the stream was created, we can manipulate the list, even if the stream is running
            List<String> items = new ArrayList<>();
            items.add("keyword1");
            dynamiclist.add(list, items);

Examples of edu.pitt.dbmi.nlp.noble.ui.widgets.DynamicList

    JPanel panel = new JPanel();
    panel.setPreferredSize(new Dimension(350,300));
    panel.setLayout(new BorderLayout());
    JTextField search = new JTextField();
    search.setForeground(Color.lightGray);
    semanticTypeList = new DynamicList(search,getAllSemanticTypes());
    semanticTypeList.setMatchMode(DynamicList.CONTAINS_MATCH);
    panel.add(search,BorderLayout.NORTH);
    panel.add(new JScrollPane(semanticTypeList),BorderLayout.CENTER);
    return panel;
  }

Examples of edu.pitt.terminology.util.DynamicList

    JPanel panel = new JPanel();
    panel.setPreferredSize(new Dimension(350,300));
    panel.setLayout(new BorderLayout());
    JTextField search = new JTextField();
    search.setForeground(Color.lightGray);
    semanticTypeList = new DynamicList(search,getAllSemanticTypes());
    semanticTypeList.setMatchMode(DynamicList.CONTAINS_MATCH);
    panel.add(search,BorderLayout.NORTH);
    panel.add(new JScrollPane(semanticTypeList),BorderLayout.CENTER);
    return panel;
  }

Examples of org.springframework.osgi.service.importer.support.internal.collection.DynamicList

  private ListIterator iter;


  protected void setUp() throws Exception {
    dynamicList = new DynamicList();
    iter = dynamicList.listIterator();
  }
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.