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

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


{
   public ProfilerEditingTargetWidget(Commands commands)
   {
      VerticalPanel panel = new VerticalPanel();
      panel.add(new Label("PropA"));
      txtPropA_ = new IntegerBox();
      panel.add(txtPropA_);
      panel.add(new Label("PropB"));
      chkPropB_ = new CheckBox();
      panel.add(chkPropB_);
      panel.setSize("100%", "100%");
View Full Code Here


  static class Box extends RangeBox {
    private final IntegerBox box;

    Box() {
      box = new IntegerBox();
      box.setVisibleLength(10);
      box.setAlignment(TextAlignment.RIGHT);
      initWidget(box);
    }
View Full Code Here

              EmailAddressTextBox.setText(result);

              Label lblNewLabel_3 = new Label("Age");
              flexTable.setWidget(3, 0, lblNewLabel_3);

              integerBox = new IntegerBox();
              flexTable.setWidget(3, 1, integerBox);
              integerBox.setHeight("25px");

              Label lblNewLabel_4 = new Label("Gender");
              flexTable.setWidget(4, 0, lblNewLabel_4);
View Full Code Here

        articleTable.setText(0, 2, "Order Amount");
        articleTable.setText(0, 3, "Order");

        Label nameLabel;
        Label amountLabel;
        IntegerBox amountTB;
        Button orderBt;

        Iterator<Article> it = result.iterator();
        Article currentArticle;

        // construct a new Grid with correct size (we can t add a row
        // dynamically...

        for (int i = 0; it.hasNext(); i++) {

          currentArticle = it.next();
          nameLabel = new Label(currentArticle.getName());
          amountLabel = new Label(String.valueOf(currentArticle
              .getAmount()));

          amountTB = new IntegerBox();
          amountTB.setValue(0);

          orderBt = new Button("Order");

          articleTable.setWidget(i, 0, nameLabel);
          articleTable.setWidget(i, 1, amountLabel);
View Full Code Here

    this.nameTB.setSize("200px", "18px");
   
    this.amountLabel = new Label("Amount :");
    this.grid.setWidget(1, 0, this.amountLabel);
   
    this.amoutnTB = new IntegerBox();
    this.grid.setWidget(1, 1, this.amoutnTB);
    this.amoutnTB.setSize("200px", "18px");
   
    this.okButton = new Button("OK");
    this.grid.setWidget(2, 1, this.okButton);
View Full Code Here

    this.newNameTB.setSize("109px", "18px");

    this.newAmountLabel = new Label("Amount in stock :");
    this.horizontalPanel.add(this.newAmountLabel);

    this.newAmountTB = new IntegerBox();
    this.horizontalPanel.add(this.newAmountTB);
    this.newAmountTB.setSize("30px", "18px");

    this.addBt = new Button("Add");
View Full Code Here

        articleTable.setWidget(0, 2, new Label("Ordering Amount"));
        articleTable.setWidget(0, 3, new Label("Remove "));

        // Label nameLabel;
        Label amountLabel;
        IntegerBox amountTB;
        Button removeBT;
        Button editBT;

        Iterator<Article> it = result.iterator();

        for (int i = 1; it.hasNext(); i++) {

          final Article currentArticle = it.next();
          final Label nameLabel = new Label(currentArticle.getName());
          amountLabel = new Label(String.valueOf(currentArticle.getAmount()));

          amountTB = new IntegerBox();
          amountTB.setValue(0);
          amountTB.setWidth("20px");
          removeBT = new Button("Remove");
          editBT=new Button("Edit");
          editBT.addClickHandler(new ClickHandler() {
           
            @Override
            public void onClick(ClickEvent event) {
             
              Popup pop = new Popup();
              ArticleEditor articleEditor = new ArticleEditor(currentArticle.getId(), pop);
              pop.setContent(articleEditor);
              pop.center();
             
            }
          });
         
          removeBT.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event) {
              removeArticle(currentArticle.getId());

            }

          });

          articleTable.setWidget(i, 0, nameLabel);
          articleTable.setWidget(i, 1, amountLabel);
          articleTable.setWidget(i, 2, amountTB);
          articleTable.setWidget(i, 3, removeBT);
          articleTable.setWidget(i, 4, editBT);
          articleTable.setCellSpacing(4);
        }
      }
    });

    mainPanel.add(articleTable);
    initWidget(mainPanel);
    mainPanel.setSize("558px", "126px");

    this.newArticleCptPanel = new CaptionPanel("Add a new article");
    mainPanel.add(this.newArticleCptPanel);

    this.horizontalPanel = new HorizontalPanel();
    this.newArticleCptPanel.setContentWidget(this.horizontalPanel);
    this.horizontalPanel.setSize("506px", "55px");

    this.newNameLabel = new Label("Article Name :");
    this.horizontalPanel.add(this.newNameLabel);
    this.newNameLabel.setWidth("90px");

    this.newNameTB = new TextBox();
    this.horizontalPanel.add(this.newNameTB);
    this.newNameTB.setSize("109px", "18px");

    this.newAmountLabel = new Label("Amount in stock :");
    this.horizontalPanel.add(this.newAmountLabel);

    this.newAmountTB = new IntegerBox();
    this.horizontalPanel.add(this.newAmountTB);
    this.newAmountTB.setSize("30px", "18px");

    this.addBt = new Button("Add");
View Full Code Here

TOP

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

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.