Package com.vaadin.ui

Examples of com.vaadin.ui.GridLayout.addListener()


        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


    Component processInfoLayout = getTaskItemProcessInfo(params);

    GridLayout mainLayout = new GridLayout(3, 2);
    mainLayout.setWidth("100%");
    mainLayout.setSpacing(true);
    mainLayout.addListener(new LayoutEvents.LayoutClickListener() {
      @Override
      public void layoutClick(LayoutEvents.LayoutClickEvent event) {
        if (event.getButton() == MouseEvents.ClickEvent.BUTTON_LEFT) {
          params.onClick();
        }
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.