Package org.jabusuite.address

Examples of org.jabusuite.address.Address


        public Object getValueAt(int column, int row) {
            if ((getJbsObjects().size() > 0) && (row < getJbsObjects().size())) {
                try {
                    Letter letter = (Letter) this.getJbsObjects().get(row);
                   
                    Address address = null;
                    if (letter.getContact()!=null) {
                        if (letter.getContact() instanceof Address)
                            address = (Address)letter.getContact();
                        else
                            address=letter.getContact().getAddress();
                    }
                       
                   
                    switch (column) {
                        case 0:
                            String sDate = "";
                            if (letter.getLetterDate()!=null)
                                sDate = ClientGlobals.getDateFormat().format(letter.getLetterDate().getTime());
                            return sDate;
                        case 1:
                            if (letter.getLetterSubject()!=null)
                                return letter.getLetterSubject();
                            else
                                return null;
                        case 2:
                            String sName = "";
                            if (address!=null) {
                                sName=address.getName1();
                                if ((address.getFirstName()!=null) && (!address.getFirstName().equals("")))
                                    sName+=", "+address.getFirstName();
                            }
                            return sName;
                        case 3:
                            String sCity = "";
                            if (address!=null) {
                                if ((address.getCity()!=null) && (!address.getCity().equals("")))
                                    sCity+=address.getCity();
                                if ((address.getZip()!=null) && (!address.getZip().equals(""))) {
                                    if (!sCity.equals(""))
                                        sCity = " "+sCity;
                                    sCity=address.getZip()+sCity;
                                }
                            }
                            return sCity;
                        default:
                            return "";
View Full Code Here


    protected PnAddressContacts pnAddressContacts;
    protected JbsLabel lblLastAction;

    public PnAddressEdit() {
        super(DlgState.dsInsert);
        this.setAddress(new Address());
    }
View Full Code Here

    protected TblAddressLetters tblAddressLetters;
   
    @Override
    protected void assignToParent(JbsBaseObject newObject) {
        Letter letter = (Letter)newObject;
        Address address = (Address)this.getParentObject();
        letter.setContact(address);
        letter.copyPermissionsFrom(address);
    }
View Full Code Here

        List<Address> addresses = this.getDataFromServer();
        ArrayList<HashMap> addrLines = new ArrayList<HashMap>();
        if (addresses != null) {
            HashMap addrLine;
            for (int i = 0; i < addresses.size(); i++) {
                Address address = addresses.get(i);
                addrLine = new HashMap();
                addrLine.put("fName", address.getFirstName());
                addrLine.put("name1", address.getName1());
                addrLine.put("name2", address.getName2());
                addrLine.put("name3", address.getName3());
                addrLine.put("street", address.getStreet());
                addrLine.put("city", address.getCity());
                addrLines.add(addrLine);
            }
        }
        JRMapCollectionDataSource ds = new JRMapCollectionDataSource(addrLines);
        return ds;
View Full Code Here

TOP

Related Classes of org.jabusuite.address.Address

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.