public static Button.ClickListener createClickListener(final Runnable action) {

        return new Button.ClickListener() {

            /** Serial version id. */
            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                action.run();
            }
        };
    }
public static Button . ClickListener createClickListener ( final Runnable action ) { return new Button . ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { action . run ( ) ; } } ; }
Creates a click listener which calls a Runnable when activated.<p>

@param action the Runnable to execute on a click

@return the click listener