Package com.extjs.gxt.ui.client.widget.layout

Examples of com.extjs.gxt.ui.client.widget.layout.RowData


    setLayout(new RowLayout(Orientation.HORIZONTAL));
    startBox = new StartBox();
    startBox.startBtn.setText(startButtonText);
    tbPanel = new TasksButtonsPanel();

    add(startBox, new RowData(90, 1));
    add(tbPanel, new RowData(1, 1));
  }
View Full Code Here


    tbtmDetalles.setHeight(DETAILS_HEIGTH.toString());

    panel.add(getPanelFields());
    panel.add(getPermissions());

    add(tabPanel, new RowData(WINDOW_WIDTH, Style.DEFAULT, new Margins()));
   
    addGrid();

  }
View Full Code Here

    grid.defaultContextMenu();
    grid.setSize(GRID_WIDTH, GRID_HEIGTH);
    grid.setBorders(true);
    grid.defaultActionOnSelectItem();
    this.setBottomComponent(grid.getToolBar());
    add(grid, new RowData(GRID_WIDTH, Style.DEFAULT, new Margins()));
  }
View Full Code Here

    ColumnModel cm = new ColumnModel(configs);

    ListStore<CautionFournieDto> data = new ListStore<CautionFournieDto>();
    cautionFournieGrid = new CustomEditorGrid<CautionFournieDto>(data, cm);
    cautionFieldset.add(cautionFournieGrid, new RowData(Style.DEFAULT, 145.0, new Margins()));
   
    cautionFournieGrid.addListener(Events.BeforeEdit, new Listener<GridEvent<CautionFournieDto>>() {
      public void handleEvent(final GridEvent<CautionFournieDto> be) {
        if((user.getBadmin() != null && user.getBadmin()) ||
            (role !=null && role.getBcontributeur()!=null && role.getBcontributeur())){
View Full Code Here

      }
  });
  cbbChantier.enableEvents(true);
  layoutContainer_1.add(cbbChantier, new com.extjs.gxt.ui.client.widget.layout.ColumnData(0.80));
  cbbChantier.setFieldLabel("New ComboBox");
  fieldSet.add(layoutContainer_1, new RowData(RootPanel.get().getOffsetWidth() / 2 - 50, 30.0, new Margins()));
  fieldSet.add(gridUserInChantier);
  fieldSet.add(new Html("&nbsp;"));
  fieldSet.add(layoutContainer);

  layoutChantier.add(fieldSet);
View Full Code Here

  // linksPanel.add(version);
  rightPanel.add(linksPanel);
  LayoutContainer layoutBanner = new LayoutContainer();
  LayoutContainer layoutVersion = new LayoutContainer();
  layoutVersion.setLayout(new RowLayout(Orientation.HORIZONTAL));
  layoutVersion.add(version, new RowData());
  layoutVersion.setHeight(20);
  layoutVersion.setWidth(50);
  layoutVersion.setStyleAttribute("padding-bottom", "25px");
  layoutBanner.setLayout(new TableLayout(2));
  banner = new HTML("<img src='./images/banner-first.png'/>");
View Full Code Here

    Grid<Stock> grid = new Grid<Stock>(store, createColumnModel());
    grid.setBorders(false);
    grid.setAutoExpandColumn("name");
    grid.setBorders(true);
   
    RowData data = new RowData(.5, 1);
    data.setMargins(new Margins(6));
    cp.add(grid, data);

    store = new ListStore<Stock>();

    Grid<Stock> grid2 = new Grid<Stock>(store, createColumnModel());
    grid2.setBorders(false);
    grid2.setAutoExpandColumn("name");
    grid2.setBorders(true);
   
    data = new RowData(.5, 1);
    data.setMargins(new Margins(6, 6, 6, 0));
    cp.add(grid2, data);

    new GridDragSource(grid);
    new GridDragSource(grid2);
View Full Code Here

    Text label3 = new Text("Test Label 3");
    label3.addStyleName("pad-text");
    label3.setStyleAttribute("backgroundColor", "white");
    label3.setBorders(true);

    panel.add(label1, new RowData(1, -1, new Margins(4)));
    panel.add(label2, new RowData(1, 1, new Margins(0, 4, 0, 4)));
    panel.add(label3, new RowData(1, -1, new Margins(4)));

    add(panel, new FlowData(10));

    panel = new ContentPanel();
    panel.setHeading("RowLayout: Orientation set to horizontal");
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    panel.setSize(400, 300);
    panel.setFrame(true);
    panel.setCollapsible(true);

    label1 = new Text("Test Label 1");
    label1.addStyleName("pad-text");
    label1.setStyleAttribute("backgroundColor", "white");
    label1.setBorders(true);

    label2 = new Text("Test Label 2");
    label2.addStyleName("pad-text");
    label2.setStyleAttribute("backgroundColor", "white");
    label2.setBorders(true);

    label3 = new Text("Test Label 3");
    label3.addStyleName("pad-text");
    label3.setStyleAttribute("backgroundColor", "white");
    label3.setBorders(true);

    panel.add(label1, new RowData(-1, 1, new Margins(4)));
    panel.add(label2, new RowData(1, 1, new Margins(4, 0, 4, 0)));
    panel.add(label3, new RowData(-1, 1, new Margins(4)));

    add(panel, new FlowData(10));
  }
View Full Code Here

    new ListViewDragSource(list2);

    new ListViewDropTarget(list1);
    new ListViewDropTarget(list2);

    RowData data = new RowData(.5, 1);
    data.setMargins(new Margins(5));
  
    cp.add(list1, data);
    cp.add(list2, data);
    add(cp);
   
View Full Code Here

        } else {
          formBindings.unbind();
        }
      }
    });
    cp.add(grid, new RowData(.6, 1));

    FormPanel panel = createForm();
    formBindings = new FormBinding(panel, true);

    cp.add(panel, new RowData(.4, 1));

    add(cp);
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.layout.RowData

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.