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

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


    imgPageFirst = new Image();
    imgPagePrev = new Image();
    imgPageNext = new Image();
    imgPageLast = new Image();

    btnPageFirst = new PushButton(imgPageFirst, this);
    btnPagePrev = new PushButton(imgPagePrev, this);
    btnPageNext = new PushButton(imgPageNext, this);
    btnPageLast = new PushButton(imgPageLast, this);

    // prev buttons (divs)
    addButton(btnPageFirst, "First Page");
    addButton(btnPagePrev, "Previous Page");

    // separator
    split = new Image(ListingNavStyles.resources().split());
    split.setStyleName(ToolbarStyles.css().separator());
    add(split);

    // Page x of y
    tbPage.addKeyUpHandler(this);
    tbPage.addChangeHandler(this);
    tbPage.setMaxLength(4);
    tbPage.setStyleName(ListingNavStyles.css().tbPage());
    pageXofY = new FlowPanel();
    pageXofY.setStyleName(ListingNavStyles.css().page());
    pageXofY.add(lblPagePre);
    pageXofY.add(tbPage);
    pageXofY.add(lblPagePost);
    add(pageXofY);

    // separator
    split = new Image(ListingNavStyles.resources().split());
    split.setStyleName(ToolbarStyles.css().separator());
    add(split);

    // next buttons (divs)
    addButton(btnPageNext, "Next Page");
    addButton(btnPageLast, "Last Page");

    // show refresh button?
    if(showRefreshBtn) {
      imgRefresh = new Image(ListingNavStyles.resources().refresh());
      btnRefresh = new PushButton(imgRefresh, this);
      // separator
      split = new Image(ListingNavStyles.resources().split());
      split.setStyleName(ToolbarStyles.css().separator());
      add(split);
      addButton(btnRefresh, "Refresh");
    }

    // show add button?
    if(addRowHandler != null) {
      // imgAdd = imageBundle.add().createImage();
      final String title = "Add " + listingElementName;
      btnAdd = new PushButton(title, this);
      if(showRefreshBtn) {
        // separator
        split = new Image(ListingNavStyles.resources().split());
        split.setStyleName(ToolbarStyles.css().separator());
        add(split);
View Full Code Here


          Window.alert("Click");
        }
      });

      // add some view option buttons
      vt.addViewOpButton(new PushButton("Option 1"), "Option 1");
      vt.addViewOpButton(new PushButton("Option 2"), "Option 2");
    }
View Full Code Here

    btnPop =
        viewOptions.isPopable() ? new ToggleButton(AbstractImagePrototype.create(resources.external()).createImage(),
            AbstractImagePrototype.create(resources.permalink()).createImage(), clickHandler) : null;

    btnClose =
        viewOptions.isClosable() ? new PushButton(AbstractImagePrototype.create(resources.close()).createImage(),
            clickHandler) : null;
    btnRefresh =
        viewOptions.isRefreshable() ? new PushButton(AbstractImagePrototype.create(resources.refresh()).createImage(),
            clickHandler) : null;

    addStyleName(Styles.VIEW_TOOLBAR);
    viewTitle.setStyleName(Styles.VIEW_TITLE);
View Full Code Here

        scrollPanel.setWidget(htmlDialogBox);
        htmlDialogBox.setSize("100%", "100%");
       
        // handler for x icon in caption
        ButtonCaption ref = (ButtonCaption) this.getCaption();
        PushButton closeIcon = ref.getCloseButton();
        closeIcon.addClickHandler(new ClickHandler()
        {
            @Override
            public void onClick(ClickEvent event)
            {
                hide();
View Full Code Here

        super();
        setWidth("100%");
        setStyleName("Caption");
        closeImage = new Image(images.closeIconImageData().getSafeUri());
        closeImage.setSize("16px","16px");
        closeDialog = new PushButton(closeImage);
       
        closeDialog.setStyleName(css.closeIconStyle());
       
        add(text = new InlineLabel(label));
        add(closeDialog);
View Full Code Here

  }

  @Override
  public HasClickHandlers getFacebookButton() {
    // return facebookButton;
    return new PushButton();
  }
View Full Code Here

  }

  @Override
  public HasClickHandlers getGoogleButton() {
    // return googleButton;
    return new PushButton();
  }
View Full Code Here

  }

  @Override
  public HasClickHandlers getTwitterButton() {
    // return twitterButton;
    return new PushButton();
  }
View Full Code Here

//    accessKeyLabelValue.setVisibleLength(accessKeyLength+1); // depending on font the last char sometimes doesn't show.

//    final Label az096Label = new Label("[a-Z0-9]{6}");
//    horizontalPanel.add(az096Label);

    final PushButton regeneratePushButton = new PushButton("Up text", "Down text");
    regeneratePushButton.getDownFace().setHTML(c.Randomizing());
    regeneratePushButton.getUpFace().setHTML(c.Regenerate());
//    flexTable.setWidget(optionAccessIdx, 2, regeneratePushButton);
    regeneratePushButton.addClickListener(new ClickListener() {
      public void onClick(final Widget sender) {
        generateAccessKey();
      }
    });
    regeneratePushButton.setHTML(c.Randomizing());
    regeneratePushButton.setText(c.Regenerate());
    regeneratePushButton.setEnabled(false);
//    generateAccessKey();
       
        final HorizontalPanel horizontalPanelBackNext = new HorizontalPanel();
        horizontalPanelBackNext.setSpacing(iCing.margin);
        verticalPanel.add(horizontalPanelBackNext);
View Full Code Here

  }
 
 
  private void createLoadButton() {
    loadButton = new PushButton("Load ontology", new ClickListener() {
      public void onClick(Widget sender) {
        String filename = upload.getFilename();
        if ( rb0.isChecked() ) {
          if ( filename != null && filename.length() > 0 ) {
            enable(false);
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.