Package net.sf.abproject.addressbook.ab.datamodel

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


        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

TOP

Related Classes of net.sf.abproject.addressbook.ab.datamodel.AddressBookEntry

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.