Examples of GadgetType


Examples of org.encuestame.utils.enums.GadgetType

    /**
     * Test gadget type options enum.
     */
    @Test
    public void testGadgetTypeOptions(){
        final GadgetType activityStreamOpt = GadgetType.getGadgetType("STREAM");
        assertEquals("Should be equals", "stream", activityStreamOpt.toString());

        final GadgetType commentsOpt = GadgetType.getGadgetType("COMMENTS");
        assertEquals("Should be equals", "comments", commentsOpt.toString());

        final GadgetType tweetPollVotesOpt = GadgetType.getGadgetType("TWEETPOLLSVOTES");
        assertEquals("Should be equals", "tweetpollsvotes", tweetPollVotesOpt.toString());
    }
View Full Code Here

Examples of org.encuestame.utils.enums.GadgetType

    private Gadget createNewGadget(final Properties gProperties, final Dashboard dashboard) {
        final Gadget gadget = new Gadget();
        gadget.setGadgetColumn(1);
        gadget.setGadgetName(gProperties.getProperty("name"));
        log.debug("widget "+gProperties.getProperty("name"));
        GadgetType d = GadgetType.getGadgetType(gProperties.getProperty("name"));
        log.debug("gadget type: " + d);
        gadget.setGadgetType(d);
        gadget.setGadgetColor(PictureUtils.getRandomHexColor());
        gadget.setStatus(Boolean.TRUE);
        gadget.setGadgetPosition(1);
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.