Package com.arcbees.gquery.tooltip.client.contactcell.ContactDatabase

Examples of com.arcbees.gquery.tooltip.client.contactcell.ContactDatabase.ContactInfo


        //provide dynamic content
        options.withContent(new TooltipContentProvider() {
            @Override
            public String getContent(Element element) {
                Integer id = Integer.parseInt(element.getAttribute("data-contact-id"));
                ContactInfo contact = ContactDatabase.get().queryContactById(id);

                return ContactTemplates.INSTANCE.contactCellTooltip(contactImage, contact.getFullName(),
                        contact.getAddress()).asString();
            }
        });

        options.withResources(ContactTooltipResources.INSTANCE);
        options.withPlacement(TooltipPlacement.RIGHT);
View Full Code Here


        //provide dynamic content
        options.withContent(new TooltipContentProvider() {
            @Override
            public String getContent(Element element) {
                Integer id = Integer.parseInt(element.getAttribute("data-contact-id"));
                ContactInfo contact = ContactDatabase.get().queryContactById(id);

                return ContactTemplates.INSTANCE.contactCellTooltip(contactImage, contact.getFullName(),
                        contact.getAddress()).asString();
            }
        });

        options.withResources(ContactTooltipResources.INSTANCE);
        options.withPlacement(TooltipPlacement.RIGHT);
View Full Code Here

TOP

Related Classes of com.arcbees.gquery.tooltip.client.contactcell.ContactDatabase.ContactInfo

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.