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

Examples of com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig


    column.setEditor(new CellEditor(createNumberField(null)));

    column = cm.getColumn(7);
    column.setNumberFormat(NumberFormat.getFormat(NUMBER_FORMAT));

    cm.addHeaderGroup(0, 4, new HeaderGroupConfig(messages.avancement(), 1, 2));
    cm.addHeaderGroup(0, 6, new HeaderGroupConfig(messages.retenues(), 1, 2));
   
    ListStore<ProgressDto> store = new ListStore<ProgressDto>();
    progressGrid = new CustomEditorGrid<ProgressDto>(store, cm);
    progressGrid.setAutoHeight(true);
    progressGrid.getView().setForceFit(true);
View Full Code Here


    ColumnModel cm = new ColumnModel(columns);
    cm.addAggregationRow(totalSummary);

    // Heading groups
    cm.addHeaderGroup(0, 1, new HeaderGroupConfig(messages.sousTraitant().toUpperCase(), 1, 3));
    cm.addHeaderGroup(0, 4, new HeaderGroupConfig(messages.budgetConforme().toUpperCase(), 1, 5));
    cm.addHeaderGroup(0, 9, new HeaderGroupConfig(messages.suiviTraite().toUpperCase(), 1, 6));
    cm.addHeaderGroup(0, 15, new HeaderGroupConfig("ECARTS", 1, 5));
    cm.addHeaderGroup(0, 20, new HeaderGroupConfig("AVANCEMENT / MARCHE", 1, 4));
    cm.addHeaderGroup(0, 24, new HeaderGroupConfig("RETENUES APPLIQUEES", 1, 11));
    cm.addHeaderGroup(0, 35, new HeaderGroupConfig("PRORATA / VARIATION", 1, 7));
    SummaryColumnConfig actionsColumn = (SummaryColumnConfig) cm.getColumnById(FicheStDto.ID);
    actionsColumn.setRenderer(createActionButtonsRenderer());

    String groupingColumnId = combineProps(FicheStDto.LOT_TYPE, LotTypeDto.NAME);
    SummaryColumnConfig<Number> groupingColumn = new SummaryColumnConfig<Number>(groupingColumnId, "Lot<br>type", 50);
View Full Code Here

    ColumnModel cm = new ColumnModel(columns);
    cm.addAggregationRow(totalSummary);

    // Heading groups
    cm.addHeaderGroup(0, 1, new HeaderGroupConfig("Objectif".toUpperCase(), 1, 1));
    cm.addHeaderGroup(0, 2, new HeaderGroupConfig(messages.budgetConforme().toUpperCase(), 1, 5));
    cm.addHeaderGroup(0, 7, new HeaderGroupConfig(messages.suiviTraite().toUpperCase(), 1, 6));
    cm.addHeaderGroup(0, 13, new HeaderGroupConfig("ECARTS", 1, 5));
    cm.addHeaderGroup(0, 18, new HeaderGroupConfig("AVANCEMENT / MARCHE", 1, 4));
    cm.addHeaderGroup(0, 22, new HeaderGroupConfig("RETENUES APPLIQUEES", 1, 11));
    cm.addHeaderGroup(0, 33, new HeaderGroupConfig("PRORATA / VARIATION", 1, 6));

    GroupingStore<FicheStDto> store = new GroupingStore<FicheStDto>();
    GroupSummaryView view = new GroupSummaryView();
    view.setShowGroupedColumn(false);
View Full Code Here

    ListStore<Stock> store = new ListStore<Stock>();
    store.add(TestData.getStocks());

    ColumnModel cm = new ColumnModel(configs);

    cm.addHeaderGroup(0, 0, new HeaderGroupConfig("Header Grouping Example", 1, 5));
    cm.addHeaderGroup(1, 2, new HeaderGroupConfig("Stock Performance", 1, 2));

    if (widget) {
      Slider s = new Slider();
      s.setWidth(100);

      // ugly, but centers slider
      FlexTable tbl = new FlexTable();
      tbl.setWidth("100%");
      tbl.setHTML(0, 0, "&nbsp;");
      tbl.setHTML(0, 1, "<span style='white-space: nowrap;font-size: 11px'>Slide Me: &nbsp;</span>");
      tbl.setWidget(0, 2, s);
      tbl.setHTML(0, 3, "&nbsp;");
      tbl.getCellFormatter().setWidth(0, 0, "50%");
      tbl.getCellFormatter().setWidth(0, 3, "50%");
      cm.addHeaderGroup(1, 0, new HeaderGroupConfig(tbl, 1, 2));
    } else {
      cm.addHeaderGroup(1, 0, new HeaderGroupConfig("Stock Information", 1, 2));
    }

    ContentPanel cp = new ContentPanel();
    cp.setBodyBorder(false);
    cp.setIcon(Resources.ICONS.table());
View Full Code Here

    // For Report
    txtTotalDeduction.setId("ACCOMPTES_PANEL_TOTALDEDUCTION_ID");
    txtTotalDeduction.setValue(totaldeduction);
    ColumnModel cm = new ColumnModel(columns);
    cm.addHeaderGroup(0, 2, new HeaderGroupConfig(messages.quantity().toUpperCase(), 1, 6));
    cm.addHeaderGroup(0, 8, new HeaderGroupConfig(messages.amount2().toUpperCase(), 1, 2));
    cm.addAggregationRow(totalSummary);

    ListStore<DeductionDto> store = new ListStore<DeductionDto>();
    deductionGrid = new CustomEditorGrid(store, cm);
    deductionGrid.setId("ACCOMPTES_PANEL_DEDUCTION_GRID_ID");
View Full Code Here

    final ListStore<Stock> store = new ListStore<Stock>();
    store.add(TestData.getStocks());

    ColumnModel cm = new ColumnModel(configs);
   
    cm.addHeaderGroup(0, 2, new HeaderGroupConfig("Stock Performance", 1, 2));
    cm.addHeaderGroup(0, 0, new HeaderGroupConfig("Stock Information", 1, 2));
    AggregationRowConfig<Stock> averages = new AggregationRowConfig<Stock>();
    averages.setHtml("name", "Average");
   
    // with summary type and format
View Full Code Here

  ComboBox<SimpleDto> combobox3 = new CustomComboBox<SimpleDto>();
  combobox3.setStore(store3);
  columns.get(15).setEditor(new CellEditor(combobox3));

  ColumnModel cm = new ColumnModel(columns);
  cm.addHeaderGroup(0, 7, new HeaderGroupConfig(messages.traite().toUpperCase(), 1, 2));
  cm.addHeaderGroup(0, 9, new HeaderGroupConfig(messages.traiter().toUpperCase(), 1, 2));
  cm.addHeaderGroup(0, 15, new HeaderGroupConfig(messages.budgetConforme().toUpperCase(), 1, 3));
  cm.addHeaderGroup(1, 7, new HeaderGroupConfig(messages.marcheAndAvenants(), 1, 2));
  cm.addAggregationRow(totalSummary);

  ColumnConfig label2Col = cm.getColumnById(GestionDto.LABEL2);
  label2Col.setEditor(new CellEditor(createTextField(MAX_LENGTH_1)));
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig

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.