Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.PushButton


        lb.setTabIndex(-1);
        return lb;
    }

    private PushButton createPushButton(ImageResource img, String tip) {
        final PushButton pb = new PushButton(new Image(img));
        pb.addClickHandler(handler);
        pb.setTitle(tip);
        pb.setTabIndex(-1);
        return pb;
    }
View Full Code Here


public class PushButtonExample implements EntryPoint {

  public void onModuleLoad() {
    // Make a new button that does something when you click it.
    PushButton b = new PushButton("Jump", "Jump?", new ClickHandler() {
      public void onClick(ClickEvent event) {
        Window.alert("Crash...");
        Window.alert("Uh Oh...");
      }
    });
View Full Code Here

   
    // Not strictly necessary, but keeps the empty outer div
    // from effecting layout before it is of any use
    lazy.setVisible(false);

    PushButton b = new PushButton("Click me");   
    b.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        lazy.setVisible(true);
      }
    });
   
View Full Code Here

  @Override
  public Widget createIssue() {
    SimpleLayout l = new SimpleLayout();
    Tree t = new Tree();
    PushButton a = new PushButton("Simple-dum");
    t.add(a);
    PushButton a2 = new PushButton("Simple-dee");
    t.add(a2);
    PushButton aUp = new PushButton("A-up");
    aUp.getDownFace().setHTML("A-down");
    t.add(aUp);

    ToggleButton b = new ToggleButton("B");
    t.add(b);
    l.add(t);
View Full Code Here

        lb.addItem(strings.xxlarge());
        return lb;
    }

    private PushButton createPushButton(AbstractImagePrototype img, String tip) {
        final PushButton pb = new PushButton(img.createImage());
        pb.addClickHandler(listener);
        pb.setTitle(tip);
        return pb;
    }
View Full Code Here

    mPauseButton.setEnabled(false);
    mPlayButton.setEnabled(true);
    add(mPlayButton);
    add(mPauseButton);

    PushButton returnButton = new PushButton(
        new Image("images/view-refresh-8.png"),
        new ClickHandler() {
      public void onClick(ClickEvent e) {
        mon.openGatewayView();
      }
    });

    returnButton.setStylePrimaryName("returnButton");
    add(returnButton);

    setKeyShortcuts();
  }
View Full Code Here

    }

    @Override
    protected void setup() {
        // Set up backwards.
        backwards = new PushButton();
        backwards.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                addMonths(-1);
            }
        });
        backwards.getUpFace().setHTML("‹");
        backwards.setStyleName(BASE_NAME + "PreviousButton");
        forwards = new PushButton();
        forwards.getUpFace().setHTML("›");
        forwards.setStyleName(BASE_NAME + "NextButton");
        forwards.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                addMonths(+1);
            }
        });
        // Set up backwards year
        backwardsYear = new PushButton();
        backwardsYear.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                addMonths(-12);
            }
        });
        backwardsYear.getUpFace().setHTML("«");
        backwardsYear.setStyleName(BASE_NAME + "PreviousButton");
        forwardsYear = new PushButton();
        forwardsYear.getUpFace().setHTML("»");
        forwardsYear.setStyleName(BASE_NAME + "NextButton");
        forwardsYear.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
View Full Code Here

public class PTPushButton extends PTCustomButton<PushButton> {

    @Override
    public void create(final PTInstruction create, final UIService uiService) {
        final PTImage image = (PTImage) uiService.getPTObject(create.getLong(PROPERTY.IMAGE));
        init(create, uiService, new PushButton(image.cast()));
    }
View Full Code Here

        lb.addItem(strings.xxlarge());
        return lb;
    }

    private PushButton createPushButton(final ImageResource img, final String tip) {
        final PushButton pb = new PushButton(new Image(img));
        pb.addClickHandler(handler);
        pb.setTitle(tip);
        return pb;
    }
View Full Code Here

        lb.addItem(strings.xxlarge());
        return lb;
    }

    private PushButton createPushButton(ImageResource img, String tip) {
        final PushButton pb = new PushButton(new Image(img));
        pb.addClickHandler(handler);
        pb.setTitle(tip);
        return pb;
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.PushButton

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.