Package org.encuestame.utils.enums

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


    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

Related Classes of org.encuestame.utils.enums.GadgetType

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.