Package com.vaadin.ui

Examples of com.vaadin.ui.Panel


@SuppressWarnings("serial")
public class WebkitScrollbarTest extends AbstractTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        Panel panel = new Panel();

        VerticalLayout content = new VerticalLayout();
        panel.setContent(content);

        GridLayout gridLayout = new GridLayout();
        gridLayout.setHeight(null);
        gridLayout.setWidth(100, Unit.PERCENTAGE);
        content.addComponent(gridLayout);
View Full Code Here


    private Button enableDisableComponentsButton;

    @Override
    protected void setup() {

        outerPanel = new Panel("Outer panel, enabled");
        innerTabsheet = new TabSheet();
        innerTabsheet.setCaption("Inner Tabsheet, enabled");

        button = new Button("Button, enabled");
        nativeButton = new NativeButton("NativeButton, enabled");
View Full Code Here

    @Override
    protected void setup() {
        VerticalLayout panelLayout = new VerticalLayout();
        panelLayout.setMargin(true);
        Panel panel = new Panel("Panel's caption", panelLayout);
        panel.addListener(new ClickListener() {

            @Override
            public void click(ClickEvent event) {
                getMainWindow()
                        .showNotification(
View Full Code Here

        grid.addComponent(combo);
        grid.addComponent(check);

        grid.setSizeUndefined();

        Panel panel = new Panel();
        panel.setContent(grid);

        panel.setSizeUndefined();

        layout.addComponent(panel);
    }
View Full Code Here

    private Button addMore;

    @Override
    protected void setup() {
        final CssLayout pl = new CssLayout();
        final Panel p = new Panel(pl);
        p.setSizeFull();
        p.setHeight("600px");
        pl.addComponent(foo());
        addMore = new Button("Add");
        addMore.addListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
View Full Code Here

    }

    private Component foo() {
        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Panel panel = new Panel(layout);
        layout.addComponent(new Label(
                "fooooooooo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>"
                        + "foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>foo<br/>",
                ContentMode.HTML));
        return panel;
View Full Code Here

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        Panel defPanel = createPanelWith("A default panel", null);
        addComponent(defPanel);

        Panel light = createPanelWith("A light panel", Reindeer.PANEL_LIGHT);
        addComponent(light);

        Panel borderless = createPanelWith("A borderless panel",
                ChameleonTheme.PANEL_BORDERLESS);
        addComponent(borderless);

        Panel bubbling = createPanelWith("A Bubbling panel",
                ChameleonTheme.PANEL_BUBBLE);
        addComponent(bubbling);
    }
View Full Code Here

     * Helper to create panels for different theme variants...
     */
    private Panel createPanelWith(String caption, String styleName) {
        VerticalLayout panelLayout = new VerticalLayout();
        panelLayout.setMargin(true);
        Panel panel = new Panel(caption, panelLayout);
        panelLayout.addComponent(new Label("Some content"));
        panel.setIcon(new ThemeResource(parent.ICON_URL));
        panel.setComponentError(new UserError("A error message..."));
        panel.setId("layout" + debugIdCounter++);

        if (styleName != null) {
            panel.addStyleName(styleName);
        }

        return panel;
    }
View Full Code Here

    @Override
    protected void setup() {
        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        panel = new Panel("A panel", layout);
        layout.addComponent(new TextField());
        Button add = new Button("Add an action handler",
                new Button.ClickListener() {

                    @Override
View Full Code Here

        return p;
    }

    @SuppressWarnings("unused")
    private Panel createGLPanel() {
        Panel p = new Panel("" + DIM1 + "x" + DIM2 + " GridLayout");
        p.setWidth("" + DIM1 + "px");
        p.setHeight("" + DIM2 + "px");

        GridLayout layout = new GridLayout(COMPONENTS, 1);
        p.setContent(layout);
        layout.setSizeFull();

        for (int i = 0; i < COMPONENTS; i++) {
            TextField tf = new TextField();
            tf.setImmediate(true);
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Panel

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.