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

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


    title.setCellVerticalAlignment(titleLabel, DockPanel.ALIGN_MIDDLE);
    title.setCellWidth(titleLabel, "100%");
    title.add(toolbar, DockPanel.EAST);
    title.setWidth("100%");
   
        grid = new Grid(2, 1);
        grid.setBorderWidth(0);
        grid.setCellPadding(0);
        grid.setCellSpacing(0);
        grid.setWidget(TITLE_ROW, 0, title);
        grid.getCellFormatter().setWidth(TITLE_ROW, 0, "100%");
View Full Code Here


        initWidget(verticalPanel);
       
        HorizontalAlignmentConstant hal = HasHorizontalAlignment.ALIGN_LEFT;
        HorizontalAlignmentConstant har = HasHorizontalAlignment.ALIGN_RIGHT;
       
        grid = new Grid(1, 2);
        verticalPanel.add(grid);
       
        DecoratorPanel dp = new DecoratorPanel();
       
        String labelStyle = css.loginWithLabelStyle();
View Full Code Here

    btnSubmit = new Button("Login", this);

    lnkTgl = new SimpleHyperLink("Forgot Password", this);
    lnkTgl.setTitle("Forgot Password");

    final Grid grid = new Grid(3, 2);
    grid.setWidth("100%");
    grid.setCellSpacing(2);
    grid.setWidget(0, 0, new Label("Email Address:"));
    grid.setWidget(0, 1, tbEmail);
    grid.setWidget(1, 0, lblPswd);
    grid.setWidget(1, 1, tbPswd);
    grid.setWidget(2, 0, btnSubmit);
    grid.setWidget(2, 1, lnkTgl);
    vert.add(grid);

    form.addSubmitHandler(this);
    form.addSubmitCompleteHandler(this);
View Full Code Here

      return hp;
    }

    // grid
    final int numRows = (int) Math.ceil((double) wclc.size() / (double) numCols);
    final Grid grid = new Grid(numRows, numCols);
    if(panelStyle != null) grid.setStyleName(panelStyle);
    int row, col;
    row = col = 0;
    for(final Widget rb : wclc) {
      if(col == numCols) {
        // new row
        row++;
        col = 0;
      }
      grid.setWidget(row, col++, rb);
    }
    return grid;
  }
View Full Code Here

     * Constructor
     * @param throbImage The throbbing image
     */
    public ThrobbingPanel(Image throbImage) {
      super();
      final Grid g = new Grid(1, 1);
      g.getCellFormatter().setAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
      g.setWidth("100%");
      g.setHeight("100%");
      g.setWidget(0, 0, throbImage);
      setWidget(g);
    }
View Full Code Here

      return hp;
    }

    // grid
    final int numRows = (int) Math.ceil((double) wclc.size() / (double) numCols);
    final Grid grid = new Grid(numRows, numCols);
    if(panelStyle != null) grid.setStyleName(panelStyle);
    int row, col;
    row = col = 0;
    for(final Widget rb : wclc) {
      if(col == numCols) {
        // new row
        row++;
        col = 0;
      }
      grid.setWidget(row, col++, rb);
    }
    return grid;
  }
View Full Code Here

      lblUserDateCreated = new Label();
      vlUserAccount = new ViewLink();

      btnLogoff = new Button("logout", this);

      Grid g = new Grid(4, 2);
      lbl = new Label("user");
      lbl.setStyleName("lbl");
      g.setWidget(0, 0, lbl);
      g.setWidget(0, 1, vlUsername);
      lbl = new Label("created");
      lbl.setStyleName("lbl");
      g.setWidget(1, 0, lbl);
      g.setWidget(1, 1, lblUserDateCreated);
      lbl = new Label("account");
      lbl.setStyleName("lbl");
      g.setWidget(2, 0, lbl);
      g.setWidget(2, 1, vlUserAccount);
      g.setWidget(3, 0, btnLogoff);

      frmLogout = new FormPanel();
      frmLogout.setMethod(FormPanel.METHOD_POST);
      frmLogout.setAction(GWT.getModuleBaseURL() + "adminLogout");
      frmLogout.add(g);
      frmLogout.addSubmitHandler(this);
      frmLogout.addSubmitCompleteHandler(this);

      SimplePanel simplePanel = new SimplePanel();
      DOM.setElementAttribute(simplePanel.getElement(), "id", "currentUser");
      simplePanel.add(frmLogout);
      add(simplePanel);

      // current account
      vlCrntAcnt = new ViewLink();
      lblCrntAcntType = new Label();
      lblCrntAcntDateCreated = new Label();

      g = new Grid(3, 2);
      lbl = new Label("name");
      lbl.setStyleName("lbl");
      g.setWidget(0, 0, lbl);
      g.setWidget(0, 1, vlCrntAcnt);
      lbl = new Label("type");
      lbl.setStyleName("lbl");
      g.setWidget(1, 0, lbl);
      g.setWidget(1, 1, lblCrntAcntType);
      lbl = new Label("created");
      lbl.setStyleName("lbl");
      g.setWidget(2, 0, lbl);
      g.setWidget(2, 1, lblCrntAcntDateCreated);

      simplePanel = new SimplePanel();
      DOM.setElementAttribute(simplePanel.getElement(), "id", "currentAccount");
      simplePanel.add(g);
View Full Code Here

  @Override
  public void setCanvas(final Panel canvas) {
    if(this.canvas != null && this.canvas == canvas) return;
    super.setCanvas(canvas);
    grid = new Grid(0, 2);
    grid.addStyleName(Styles.FIELD_GRID);
    rowIndex = -1;
    canvas.add(grid);
  }
View Full Code Here

    {
        setStyleName("busy-PopupPanel");
       setGlassEnabled(true);
       SafeUri imageUri = images.busyIconImageData().getSafeUri();
       final Image busyImage = new Image(imageUri);
       grid = new Grid(1,2);
       grid.setWidget(0,0,busyImage);
       this.container.add(grid);
       add(this.container);
    }
View Full Code Here

   
    VerticalPanel verticalPanel = new VerticalPanel();
    verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    initWidget(verticalPanel);
   
    Grid grid = new Grid(4, 2);
    verticalPanel.add(grid);
   
    Label lblName = new Label("Name");
    grid.setWidget(0, 0, lblName);
   
    customerNameField = new TextBox();
    this.customerNameField.setEnabled(false);
    this.customerNameField.setReadOnly(true);
    grid.setWidget(0, 1, customerNameField);
    customerNameField.setHeight("100%");
   
    Label lblAddress = new Label("Address");
    grid.setWidget(1, 0, lblAddress);
   
    addressField = new TextArea();
    this.addressField.setEnabled(false);
    this.addressField.setReadOnly(true);
    grid.setWidget(1, 1, addressField);
    addressField.setSize("170px", "60px");
   
    Label lblPhone = new Label("Phone");
    grid.setWidget(2, 0, lblPhone);
   
    phoneField = new TextBox();
    this.phoneField.setEnabled(false);
    this.phoneField.setReadOnly(true);
    grid.setWidget(2, 1, phoneField);
   
    Label lblCashBalance = new Label("Cash Balance");
    grid.setWidget(3, 0, lblCashBalance);
   
    cashBalanceField = new DoubleBox();
    this.cashBalanceField.setEnabled(false);
    this.cashBalanceField.setReadOnly(true);
    this.cashBalanceField.setAlignment(TextAlignment.RIGHT);
    grid.setWidget(3, 1, cashBalanceField);
    grid.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP);
    grid.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT);
    grid.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_RIGHT);
    grid.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
    grid.getCellFormatter().setHorizontalAlignment(2, 0, HasHorizontalAlignment.ALIGN_RIGHT);
    grid.getCellFormatter().setVerticalAlignment(2, 0, HasVerticalAlignment.ALIGN_TOP);
    grid.getCellFormatter().setHorizontalAlignment(3, 0, HasHorizontalAlignment.ALIGN_RIGHT);
    grid.getCellFormatter().setVerticalAlignment(3, 0, HasVerticalAlignment.ALIGN_TOP);

    holdingListField = new CellTable<Holding>();
    holdingListField.setPageSize(5);
    verticalPanel.add(holdingListField);
   
View Full Code Here

TOP

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

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.