Package com.vaadin.ui

Examples of com.vaadin.ui.Window.addComponent()


        StreamResource resource = new StreamResource(this, "/home/matrix/Desktop/pv.pdf", __app);
       
        // Set the right MIME type
        resource.setMIMEType(resource.getMIMEType());
        e.setSource(new ClassResource(resource.getFilename(), __app));
        window.addComponent(e);
        __app.getMainWindow().addWindow(window);
    }
   
   
    public void savePDF()
View Full Code Here


        mainWindow.getContent().setHeight("100%");

        Label info = new Label(
                "<h1>Sparklines for GWT and Vaadin</h1><h2>\"small, intense, simple datawords\"</h2><a href=\"http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR\">Refer to Edward Tufte for more information about sparklines</a> (must read)");
        info.setContentMode(Label.CONTENT_XHTML);
        mainWindow.addComponent(info);

        List<Integer> data1 = Arrays.asList(60, 62, 55, 62, 63, 64, 63, 65, 68,
                65, 69, 70, 75, 74, 75, 74, 78, 76, 74, 85, 70, 65, 63, 64, 69,
                74, 65);
        Integer[] data2 = new Integer[30];
View Full Code Here

        s.setValue(data1);
        s.setValueDotVisible(false);
        s.setValueLabelVisible(false);
        s.setMinmaxLabelsVisible(false);
        s.setMinmaxDotsVisible(false);
        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Shows current value, visually connected to graph with color");
        s.setValue(data1);
        s.setMinmaxLabelsVisible(false);
View Full Code Here

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Shows current value, visually connected to graph with color");
        s.setValue(data1);
        s.setMinmaxLabelsVisible(false);
        s.setMinmaxDotsVisible(false);
        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Current, minimum and maximum values are shown");
        s.setValue(data1);
        mainWindow.addComponent(s);
View Full Code Here

        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Current, minimum and maximum values are shown");
        s.setValue(data1);
        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Adds line indicating average");
        s.setValue(data1);
        s.setAverageVisible(true);
View Full Code Here

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Adds line indicating average");
        s.setValue(data1);
        s.setAverageVisible(true);
        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Shaded area indicates 'normal' range");
        s.setValue(data1);
        s.setAverageVisible(true);
View Full Code Here

        s.setAverageVisible(true);
        s.setNormalRangeColor("#444"); // default works better on white
        s.setNormalRangeMax(80);
        s.setNormalRangeMin(60);
        s.setNormalRangeVisible(true);
        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Everything turned on");
        s.setValue(data1);
        s.setAverageVisible(true);
View Full Code Here

        s.setNormalRangeMax(80);
        s.setNormalRangeMin(60);
        s.setNormalRangeVisible(true);
        s.setMaxColor("#f69");
        s.setMinColor("#6f9");
        mainWindow.addComponent(s);

        s = new Sparklines("Stuff", 0, 0, 50, 100);
        s.setDescription("Color indicates if min/max is the current value");
        s.setValue(data3);
        s.setAverageVisible(true);
View Full Code Here

        s.setNormalRangeMax(80);
        s.setNormalRangeMin(60);
        s.setNormalRangeVisible(true);
        s.setMaxColor("#f69");
        s.setMinColor("#6f9");
        mainWindow.addComponent(s);

        for (int i = 0; i < data2.length; i++) {
            data2[i] = Integer.valueOf((int) (Math.random() * 140 + 60));
        }
        s = new Sparklines("Pulse", 0, 0, 0, 200);
View Full Code Here

        s = new Sparklines("Pulse", 0, 0, 0, 200);
        s.setDescription("Minimum and maximum can be color-connected as well");
        s.setMaxColor("#f69");
        s.setMinColor("#6f9");
        s.setValue(Arrays.asList(data2));
        mainWindow.addComponent(s);

        data2 = new Integer[30];
        for (int i = 0; i < data2.length; i++) {
            data2[i] = Integer.valueOf((int) (Math.random() * 140 + 60));
        }
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.