Examples of addAttribute()


Examples of org.springmodules.xt.ajax.component.InputField.addAttribute()

        row.addTableData(td1);
        row.addTableData(td2);
       
        // Add an onclick event to the remove button, which executes a client side javascript function for actually
        // removing the row:
        removeButton.addAttribute("onclick", new StringBuilder("removeRow('").append(rowId).append("');").toString());

        // Create an ajax action for appending the new row:
        AppendContentAction appendRowAction = new AppendContentAction("employees", row);

        // Create a concrete ajax response:

Examples of org.springmodules.xt.ajax.component.TableRow.addAttribute()

        Collection<IEmployee> employees = this.store.getEmployees();

        // Create the row, with a given rowId:
        TableRow row = new TableRow();
        String rowId = Long.toString(new Date().getTime());
        row.addAttribute("id", rowId);

        // Create the employee selection box (binding to employees) and add it to a column:
        BindStatusHelper helper = new BindStatusHelper("command.employees");
        Select selectionList = new Select(helper.getStatusExpression());
        for (IEmployee emp : employees) {

Examples of org.springmodules.xt.ajax.component.TaggedText.addAttribute()

        AjaxResponse response = new AjaxResponseImpl("UTF-8");
        if (!exists) {
            TaggedText msg = new TaggedText(
                    this.messageSource.getMessage("user.available.username", null, "Available", LocaleContextHolder.getLocale()),
                    TaggedText.Tag.SPAN);
            msg.addAttribute("class", "okMessage");
           
            ReplaceContentAction action = new ReplaceContentAction("username.validation", msg);
           
            response.addAction(action);
        } else {

Examples of org.teiid.query.mapping.xml.MappingElement.addAttribute()

        seq1_e2.setNillable(true);
               
        MappingElement n2 = root.addChildElement(new MappingElement("element2")); //$NON-NLS-1$
        n2.addCommentNode(new MappingCommentNode("this is comment")); //$NON-NLS-1$
        MappingAttribute attr1 = new MappingAttribute("element2_attribute1"); //$NON-NLS-1$
        n2.addAttribute(attr1);       
        attr1.setExclude(true);
       
        MappingAttribute attr2 = new MappingAttribute("element2_attribute2", "nis_element2_attribute2"); //$NON-NLS-1$ //$NON-NLS-2$       
        n2.addAttribute(attr2);
        return doc;

Examples of org.teiid.query.processor.xml.DocumentInProgress.addAttribute()

      doc.setDocumentFormat(true);
        NodeDescriptor descriptor = NodeDescriptor.createNodeDescriptor("Root", null, true, null, null, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
        doc.addElement(descriptor, (NodeDescriptor)null);     
        doc.moveToLastChild();
        descriptor = NodeDescriptor.createNodeDescriptor("a1", null, false, null, null, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$       
      doc.addAttribute(descriptor, "test1");//$NON-NLS-1$
        descriptor = NodeDescriptor.createNodeDescriptor("a1", null, false, null, null, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
      doc.addAttribute(descriptor, "test2");//$NON-NLS-1$
        descriptor = NodeDescriptor.createNodeDescriptor("Child", null, true, null, null, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
      for (int i = 0; i < 50; i++) {
        doc.addElement(descriptor, "test content");//$NON-NLS-1$

Examples of org.telluriumsource.trump.Element.addAttribute()

        tree.addElement(e3);

        Element e4 = new Element();
        e4.setUid("D");
        e4.setXpath("/html/body/table[@id='mt']/tbody/tr/th[3]/div/div[4]");
        e4.addAttribute(TAG, "div");
        tree.addElement(e4);

        Element e5 = new Element();
        e5.setUid("E");
        e5.setXpath("/html/body/table[@id='mt']/tbody/tr/th[3]/div/div[4]/a");

Examples of org.tinyradius.packet.AccessRequest.addAttribute()

  throws Exception {
    InputStream source = new FileInputStream("test.dictionary");
    Dictionary dictionary = DictionaryParser.parseDictionary(source);
    AccessRequest ar = new AccessRequest("UserName", "UserPassword");
    ar.setDictionary(dictionary);
    ar.addAttribute("WISPr-Location-ID", "LocationID");
    ar.addAttribute(new IpAttribute(8, 1234567));
    System.out.println(ar);
  }
 
}

Examples of org.tinyradius.packet.AccountingRequest.addAttribute()

    System.out.println("Packet after it was sent\n" + ar + "\n");
    System.out.println("Response\n" + response + "\n");

    // 2. Send Accounting-Request
    AccountingRequest acc = new AccountingRequest("mw", AccountingRequest.ACCT_STATUS_TYPE_START);
    acc.addAttribute("Acct-Session-Id", "1234567890");
    acc.addAttribute("NAS-Identifier", "this.is.my.nas-identifier.de");
    acc.addAttribute("NAS-Port", "0");
 
    System.out.println(acc + "\n")
    response = rc.account(acc);

Examples of org.tinyradius.packet.RadiusPacket.addAttribute()

      public RadiusPacket accessRequestReceived(AccessRequest accessRequest, InetSocketAddress client)
      throws RadiusException {
        System.out.println("Received Access-Request:\n" + accessRequest);
        RadiusPacket packet = super.accessRequestReceived(accessRequest, client);
        if (packet.getPacketType() == RadiusPacket.ACCESS_ACCEPT)
          packet.addAttribute("Reply-Message", "Welcome " + accessRequest.getUserName() + "!");
        if (packet == null)
          System.out.println("Ignore packet.");
        else
          System.out.println("Answer:\n" + packet);
        return packet;

Examples of org.tools.xml.Node.addAttribute()

     * @return xml object
     */
    @Override
    public Node toXML() {
        Node element = new Node(XML_NAME);
        element.addAttribute("id", Integer.toString(id));
        element.addAttribute("name", name);
        element.addAttribute("town-row", String.valueOf(town.row));
        element.addAttribute("town-column", String.valueOf(town.column));

        return element;
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.