Package org.gwtoolbox.widget.client.button

Examples of org.gwtoolbox.widget.client.button.ToolButton$Face


    public ToolButtonSample() {

        HorizontalPanel buttons = new HorizontalPanel();

        ToolButton button = new ToolButton(WidgetImages.Instance.get().icon_Printer().createImage());
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showMessage("Print...");
            }
        });
        buttons.add(button);

        addGap(buttons, "10px");

        button = new ToolButton(WidgetImages.Instance.get().icon_Printer().createImage());
        button.setTitle("Disabled");
        button.setEnabled(false);
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                showMessage("Should not show this message");  
            }
        });
        buttons.add(button);
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.button.ToolButton$Face

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.