Examples of RolodexCard


Examples of com.yesmail.gwt.rolodex.client.RolodexCard

    }
   
    @Override
    public void add(Widget w) {
        if (w instanceof RolodexCard) {
            RolodexCard card = (RolodexCard) w;
            super.add(card);
        }
        // doesn't allow anything else
    }
View Full Code Here

Examples of com.yesmail.gwt.rolodex.client.RolodexCard

    }

    @Override
    public boolean remove(Widget w) {
        if (w instanceof RolodexCard) {
            RolodexCard card = (RolodexCard) w;
            cards.remove(card);
        }
        return panel.remove(w);
    }
View Full Code Here

Examples of com.yesmail.gwt.rolodex.client.RolodexCard

            RolodexCard[] cards = new RolodexCard[3];
            for (int index = 0; index < 3; index++) {
                ClippedImagePrototype expanded = new ClippedImagePrototype(defaultImage.getURL(), 0, 0, 300, 200);
                ClippedImagePrototype collapseLeft = new ClippedImagePrototype(defaultImage.getURL(), 0, 0, 100, 100);
                ClippedImagePrototype collapseRight = new ClippedImagePrototype(defaultImage.getURL(), 0, 0, 100, 100);
                cards[index] = new RolodexCard(expanded, collapseLeft, collapseRight, 300, 100, 0);
            }
            return cards;
        }
View Full Code Here

Examples of com.yesmail.gwt.rolodex.client.RolodexCard

   
    private void populate(ImageRolodexPanel panel) {
        panel.setSize(getWidth(), getHeight());
        if (urls != null) {
            for (String url : urls) {
                RolodexCard card = createCard(url);
                panel.add(card);
            }
        }
        panel.setSelectedCard(panel.get(this.selectedIndex));
        panel.setAnimated(this.animated);
View Full Code Here

Examples of com.yesmail.gwt.rolodex.client.RolodexCard

        ClippedImagePrototype collapseLeft = new ClippedImagePrototype(url, 0, 0, getOffsetWidth() / 4, getOffsetHeight() / 2);
        ClippedImagePrototype collapseRight = new ClippedImagePrototype(url, 0, 0, getOffsetWidth() / 4, getOffsetHeight() / 2);
        int expandedWidth = getOffsetWidth() / 2;
        int collapsedWidth = getOffsetWidth() / 4;
        int heightOffset = getOffsetHeight() / 4;
        RolodexCard card = new RolodexCard(expanded, collapseLeft, collapseRight, expandedWidth, collapsedWidth, heightOffset);
        return card;
    }
View Full Code Here

Examples of com.yesmail.gwt.rolodex.client.RolodexCard

    @Override
    public void deleteItem(String index) {
        urls.remove(index);
        if (index != null && !"".equals(index)) {
            Integer i = Integer.valueOf(index);
            RolodexCard card = panel.get(i - 1);
            panel.remove(card);
        }
    }
View Full Code Here

Examples of com.yesmail.gwt.rolodex.client.RolodexCard

    @Override
    public Map<String, String> getItems() {
        Map<String, String> map = new HashMap<String, String>();
        for (int i = 0; i < panel.size(); i++) {
            RolodexCard card = panel.get(i);
            map.put(String.valueOf(i), card.getExpandedImagePrototype().createImage().getUrl());
        }
        return map;
    }
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.