Examples of AddressBookEntry


Examples of net.sf.abproject.addressbook.ab.datamodel.AddressBookEntry

    private void refresh() {
        aBEntryWrappers.clear();
        aBEntryWrappers.ensureCapacity(addressBook.getSize());
        Iterator<AddressBookEntry> it=addressBook.iterateEntries();
        while (it.hasNext()) {
          AddressBookEntry addressBookEntry=it.next();
            ABEntryWrapper e = new ABEntryWrapper();
            e.addressBookEntry=addressBookEntry;
            e.displayName=addressBookEntry instanceof Human?(((Human)addressBookEntry).getFirstNameNative()+" "+((Human)addressBookEntry).getLastNameNative()).trim():M.MERKABA;
            e.sortKey=addressBookEntry instanceof Human?((Human)addressBookEntry).getLastNameNative()+" "+((Human)addressBookEntry).getFirstNameNative():"";
            if(e.displayName.equals("")){
View Full Code Here

Examples of net.sf.abproject.addressbook.ab.datamodel.AddressBookEntry

        list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        list.addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                if(list.getSelectedIndices().length==0)return;
                buttonDelete.setEnabled(true);
                AddressBookEntry agent = listModel.getAgentAt(list.getSelectedIndex());
        HumanPane c = new HumanPane(nc, (Human) agent, null, null, list);
                setRightPane(c,agent);
            }
        });
        if(addressBook.getSize()>0)list.setSelectedIndex(0);
View Full Code Here

Examples of net.suberic.pooka.AddressBookEntry

   * Selects the next available address entry.
   */
  public void selectNextEntry() {
    Selection currentSelection = getCurrentSelection();
    net.suberic.pooka.AddressMatcher matcher = getNewMessageUI().getSelectedProfile().getAddressMatcher();
    AddressBookEntry newValue = matcher.getNextMatch(currentSelection.text);
    if (newValue != null) {
      replaceAddressText(currentSelection, newValue.getID());
    }

  }
View Full Code Here

Examples of net.suberic.pooka.AddressBookEntry

   */
  public void selectPreviousEntry() {
    Selection currentSelection = getCurrentSelection();
    net.suberic.pooka.AddressMatcher matcher = getNewMessageUI().getSelectedProfile().getAddressMatcher();
    if (matcher != null) {
      AddressBookEntry newValue = matcher.getPreviousMatch(currentSelection.text);
      if (newValue != null) {
  replaceAddressText(currentSelection, newValue.getID());
      }
    }
  }
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry

                QNAME_PORT, jbc, Mode.PAYLOAD);
               
        // Create the JAX-B object that will hold the data
        ObjectFactory factory = new ObjectFactory();
        AddEntry request = factory.createAddEntry();
        AddressBookEntry content = factory.createAddressBookEntry();
       
        content.setFirstName("Ron");
        content.setLastName("Testerson");
        content.setPhone("512-459-2222");
       
        // Since this is a doc/lit wrapped WSDL, we need to set the
        // data inside of a request wrapper element.
        request.setEntry(content);
       
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry

        AddressBook ab = service.getPort(QNAME_PORT, AddressBook.class);
        BindingProvider p1 = (BindingProvider) ab;
        p1.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, URL_ENDPOINT);
       
        ObjectFactory factory = new ObjectFactory();
        AddressBookEntry content = factory.createAddressBookEntry();
        content.setFirstName("Foo");
        content.setLastName("Bar");
        content.setPhone("512-459-2222");
       
        boolean added = ab.addEntry(content);
       
        // Validate the results
        assertNotNull(added);
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry

        BindingProvider p1 = (BindingProvider) ab;
        p1.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, URL_ENDPOINT);
       
        String fname = "Joe";
        String lname = "Test";
        AddressBookEntry result = ab.findEntryByName(fname, lname);
       
        // Validate the results
        assertNotNull(result);
        assertNotNull(result.getFirstName());
        assertNotNull(result.getLastName());
        assertTrue(result.getFirstName().equals(fname));
        assertTrue(result.getLastName().equals(lname));
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry

                QNAME_PORT, jbc, Mode.PAYLOAD);
               
        // Create the JAX-B object that will hold the data
        ObjectFactory factory = new ObjectFactory();
        AddEntry request = factory.createAddEntry();
        AddressBookEntry content = factory.createAddressBookEntry();
       
        content.setFirstName("Ron");
        content.setLastName("Testerson");
        content.setPhone("512-459-2222");
       
        // Since this is a doc/lit wrapped WSDL, we need to set the
        // data inside of a request wrapper element.
        request.setEntry(content);
       
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry

        AddressBook ab = service.getPort(QNAME_PORT, AddressBook.class);
        BindingProvider p1 = (BindingProvider) ab;
        p1.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, URL_ENDPOINT);
       
        ObjectFactory factory = new ObjectFactory();
        AddressBookEntry content = factory.createAddressBookEntry();
        content.setFirstName("Foo");
        content.setLastName("Bar");
        content.setPhone("512-459-2222");
       
        boolean added = ab.addEntry(content);
       
        // Validate the results
        assertNotNull(added);
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.addressbook.AddressBookEntry

        BindingProvider p1 = (BindingProvider) ab;
        p1.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, URL_ENDPOINT);
       
        String fname = "Joe";
        String lname = "Test";
        AddressBookEntry result = ab.findEntryByName(fname, lname);
       
        // Validate the results
        assertNotNull(result);
        assertNotNull(result.getFirstName());
        assertNotNull(result.getLastName());
        assertTrue(result.getFirstName().equals(fname));
        assertTrue(result.getLastName().equals(lname));
    }
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.