Package org.gwtoolbox.widget.client.button

Examples of org.gwtoolbox.widget.client.button.SimpleLinkButton


    public SimpleLinkButtonSample() {

        HorizontalPanel buttons = new HorizontalPanel();

        SimpleLinkButton link = new SimpleLinkButton("Link");
        link.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showMessage("Link was clicked");
            }
        });
        buttons.add(link);

        addGap(buttons, "20px");

        link = new SimpleLinkButton("Disabled Link");
        link.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showMessage("Should not be shown");
            }
        });
        link.setEnabled(false);
        buttons.add(link);

        VerticalPanel main = new VerticalPanel();

        main.add(buttons);
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.button.SimpleLinkButton

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.