Package org.ribax.utils.types

Examples of org.ribax.utils.types.NameValuePair


     
        if (params.size() == 0)
            return null;
        ArrayList<NameValuePair> list = new ArrayList<NameValuePair>();
        NameValuePair nvp;
       
        Iterator<Parameter> it = params.iterator();
        while (it.hasNext()) {
            Parameter p = it.next();
           
View Full Code Here


        add(box);
    }
   
    public NameValuePair getNameValuePair() {
      Object o;
      NameValuePair p;
     
        if (menu.getSelectedIndex() >= 0) {
            o = menu.getSelectedItem();
       
            if (o instanceof NameValuePair) {
              p = (NameValuePair)o;
              value = p.getValue();
            } else {
              String text = (String)o;
       
              if (text.length() > 0)
                value = text;
View Full Code Here

   
    public NameValuePair getNameValuePair() {
        if (fieldname == null || value == null)
            return null;
       
        return new NameValuePair(fieldname,value);
    }
View Full Code Here

    public NameValuePair getNameValuePair() {
        if (field.getText().length() == 0)
            return null;
       
        // return the fieldname and the file path
        return new NameValuePair(fieldname,field.getText());
    }
View Full Code Here

                // make the parameter name from the column name + the offset
          name = data.getColumnName(i) + "_" + offset; //$NON-NLS-1$
         
          value = data.getValueAt(row,i).toString();
         
          list.add(new NameValuePair(name,value));
        }
      }
    return list;
  }
View Full Code Here

        // add the input params
        if (params != null)
            list.addAll(params);
       
        // add the button type name
        list.add(new NameValuePair("ButtonType",TabButton.buttonTypeToName(TabButton.REFRESH))); //$NON-NLS-1$
       
        if (source != null) {
            // replace the contents of this DataItem with the description from the source
            readDescriptionFromURL(url,list,action);
           
View Full Code Here

     */
    private void readFolderFromURL(String url, DefaultMutableTreeNode treenode) {
        ArrayList<NameValuePair> list = new ArrayList<NameValuePair>();
     
       // add the LoadDescription action
        list.add(new NameValuePair("Action","LoadDescription")); //$NON-NLS-1$ //$NON-NLS-2$

        try {
            // get an input stream from the URL
            InputStream fin = getInputStream(url,list);
           
View Full Code Here

    for(int i = 0; i < array.length; i++) {
        if (LOG.isDebugEnabled())
          LOG.debug(Messages.getString("ListDataItem.21")+array[i].toString()); //$NON-NLS-1$
   
            // the parameter name is the fieldname + an index
        list.add(new NameValuePair(fieldname+"_"+i,array[i].toString())); //$NON-NLS-1$
    }
   
    // if this ListDataItem is searchable then add the contents of the search field
    // if the list is empty, this allows the user to add new values
    if (list.size() == 0 && searchable) {
      list.add(new NameValuePair(fieldname+"_0",searchfield.getText())); //$NON-NLS-1$
    }
    return list;
  }
View Full Code Here

          LOG.debug(Messages.getString("ListDataItem.25")); //$NON-NLS-1$
       
        // the parameter name is the fieldname + an index unless the list element
            // is selected in which case it is "Selected_" + fieldname + an index     
        if (table.isSelectedIndex(i))
          list.add(new NameValuePair("Selected_"+fieldname+"_"+i,data.getElementAt(i).toString())); //$NON-NLS-1$ //$NON-NLS-2$
        else
          list.add(new NameValuePair(fieldname+"_"+i,data.getElementAt(i).toString()));     //$NON-NLS-1$
    }
    return list;
  }
View Full Code Here

      List<Element> optlist = root.getChildren();
      Iterator<Element> optit = optlist.iterator();
      while(optit.hasNext()) {
        Element opt = optit.next();
        if (opt.getChild("name") != null) { //$NON-NLS-1$
          table.add(new NameValuePair(opt.getChild("name").getText(), //$NON-NLS-1$
              opt.getChild("value").getText())); //$NON-NLS-1$
        } else
          table.add(opt.getText());
      }
       
View Full Code Here

TOP

Related Classes of org.ribax.utils.types.NameValuePair

Copyright © 2018 www.massapicom. 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.