Package com.vaadin.event.LayoutEvents

Examples of com.vaadin.event.LayoutEvents.LayoutClickListener


    }

    @Override
    protected void setup() {
        VerticalLayout layout = new VerticalLayout();
        layout.addListener(new LayoutClickListener() {
            @Override
            public void layoutClick(LayoutClickEvent event) {
                WindowClickEvents.this.click("Sub window layout", event);
            }
        });

        ((VerticalLayout) getMainWindow().getContent())
                .addListener(new LayoutClickListener() {
                    @Override
                    public void layoutClick(LayoutClickEvent event) {
                        WindowClickEvents.this.click("Main window layout",
                                event);
                    }
View Full Code Here


            Resource icon2 = file.getIcon();
            String name = file.getName();
            l.addComponent(new Embedded(null, icon2));
            l.addComponent(new Label(name));

            l.addListener(new LayoutClickListener() {
                @Override
                @SuppressWarnings("static-access")
                public void layoutClick(LayoutClickEvent event) {
                    if (event.isDoubleClick()) {
                        if (file instanceof Folder) {
View Full Code Here

                        log("Button " + event.getButton().getCaption()
                                + " was clicked");

                    }
                }));
        al.addLayoutClickListener(new LayoutClickListener() {

            @Override
            public void layoutClick(LayoutClickEvent event) {
                logLayoutClick("AbsoluteLayout", event);
            }
View Full Code Here

                        log("Button " + event.getButton().getCaption()
                                + " was clicked");

                    }
                }));
        cl.addLayoutClickListener(new LayoutClickListener() {

            @Override
            public void layoutClick(LayoutClickEvent event) {
                logLayoutClick("CSSLayout", event);
            }
View Full Code Here

        TextArea largeTextarea = new TextArea("Large textarea");
        largeTextarea.setWidth("100%");
        largeTextarea.setHeight("99%");
        gl.addComponent(largeTextarea, 0, 3, 3, 3);

        gl.addLayoutClickListener(new LayoutClickListener() {

            @Override
            public void layoutClick(LayoutClickEvent event) {
                logLayoutClick("GridLayout", event);
            }
View Full Code Here

    private Layout createClickableVerticalLayout() {

        VerticalLayout gl = new VerticalLayout();
        addContent(gl, 5);

        gl.addLayoutClickListener(new LayoutClickListener() {

            @Override
            public void layoutClick(LayoutClickEvent event) {
                logLayoutClick("VerticalLayout", event);
View Full Code Here

        nestedLayout.addComponent(nestedLayout2);

        layout.addComponent(nestedLayout);

        // Listen for layout click events
        layout.addListener(new LayoutClickListener() {
            @Override
            public void layoutClick(LayoutClickEvent event) {

                // Get the deepest nested component which was clicked
                Component clickedComponent = event.getClickedComponent();
View Full Code Here

        Label label = new Label("Component 1");
        l.addComponent(label);
        l.addComponent(new Button("Component 2"));

        l.addListener(new LayoutClickListener() {
            @Override
            public void layoutClick(LayoutClickEvent event) {
                if (event.getChildComponent() == null
                        || target == event.getChildComponent()) {
                    if (target != null) {
View Full Code Here

                    Object columnId) {

                VerticalLayout layout = new VerticalLayout();
                layout.addComponent(new TextField());

                layout.addListener(new LayoutClickListener() {

                    @Override
                    public void layoutClick(LayoutClickEvent event) {
                        getMainWindow().showNotification("HELLO");
View Full Code Here

            t.addItem(i);
            final VerticalLayout l = new VerticalLayout();
            l.setId("row-" + i);
            l.setHeight(20, Unit.PIXELS);
            l.setData(i);
            l.addLayoutClickListener(new LayoutClickListener() {
                @Override
                public void layoutClick(LayoutClickEvent event) {
                    if (t.isMultiSelect()) {
                        Set<Object> values = new HashSet<Object>(
                                (Set<Object>) t.getValue());
View Full Code Here

TOP

Related Classes of com.vaadin.event.LayoutEvents.LayoutClickListener

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.