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

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


      }

      });
    columnConfigs.add(column);
   
      ColumnModel cm = new ColumnModel(columnConfigs);
     
      store = new ListStore<Buddy>();
     
      Grid<Buddy> buddyGrid = new Grid<Buddy>(store, cm)
      buddyGrid.setStyleName("roster_list");
View Full Code Here


      List<ColumnConfig> config = new ArrayList<ColumnConfig>();
      config.add(statusImgColumnConfig);
      config.add(aliasColumnConfig);
      config.add(avatarColumnConfig);
      config.add(groupColumnConfig);
      final ColumnModel columnModel = new ColumnModel(config);
        
      view = new GroupingView();
      // i18n
      view.setForceFit(true)
      view.setGroupRenderer(new GridGroupRenderer()
View Full Code Here

    resultPanel.setHeaderVisible(false);
    resultPanel.setButtonAlign(HorizontalAlignment.CENTER)
    resultPanel.setLayout(new FitLayout())
   
      columnConfigs = new ArrayList<ColumnConfig>();
      ColumnModel cm = new ColumnModel(columnConfigs);
     
      ColumnConfig column = new ColumnConfig()
      column.setId("nickname")
      column.setHeader("Nickname")
      column.setWidth(80)
View Full Code Here

          value = valueEl.getFirstChild().getNodeValue();
        user.set(id, value);
      }
      store.add(user);
    }
    ColumnModel cm = new ColumnModel(columnConfigs);
    try
    {
      resultGrid.reconfigure(store, cm);
    }
    catch(Exception ce)
View Full Code Here

    });
    roomField.setValue(rooms.getAt(0));
   
    //create the grid to show the room list
    columnConfigs = new ArrayList<ColumnConfig>();
      ColumnModel cm = new ColumnModel(columnConfigs);
     
      ColumnConfig column = new ColumnConfig()
      column.setId("name")
      column.setHeader("Room Name")
      columnConfigs.add(column);
View Full Code Here

      public void componentSelected(MenuEvent ce) {
        Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte");
        Map params = new HashMap();
        params.put(ParamsConst.TITLE, "Listado de tareas");
        params.put(ServiceNameConst.SERVICIO + "2", ServiceNameConst.LIST_TASK_WITH_VISIBLE_FILTER);
        ColumnModel cm = Context.getInstance().getTaskGrid().getColumnModel();
        if (cm!=null){
          Collection<ColumnConfig> configs = cm.getColumns();
          if (configs!=null){
            Collection definiciones = new ArrayList();
            Iterator itConfigs = configs.iterator();
            while (itConfigs.hasNext()) {
              ColumnConfig config = (ColumnConfig) itConfigs.next();
View Full Code Here

        Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte");
        Map params = new HashMap();
        params.put(ParamsConst.TITLE, "Listado de Objetivos");
        params.put(ServiceNameConst.SERVICIO + "2", ServiceNameConst.LIST_OBJECTIVE_WITH_VISIBLE_FILTER);
        Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte 1");
        ColumnModel cm = Context.getInstance().getObjectiveGrid().getColumnModel();
        Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte 2");
        if (cm!=null){
          Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte 3");
          Collection<ColumnConfig> configs = cm.getColumns();
          if (configs!=null){
            Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte 4");
            Collection definiciones = new ArrayList();
            Iterator itConfigs = configs.iterator();
            Context.getInstance().addDetailExecution("Seteando atributos previos para el reporte 5");
View Full Code Here

  }

  public Grid(Seleccionable seleccionable, String serviceName, List<ColumnConfig> configs, final Integer pageSize, Map params) {
    // Se invoca al constructor padre para que se inicialice todo
    // convenientemente
    super(new ListStore(new Loader(serviceName, null, params)), new ColumnModel(configs));
    initialize(seleccionable, pageSize);
   
  }
View Full Code Here

  }

  public Grid(Seleccionable seleccionable, String serviceName, List<ColumnConfig> configs, final Integer pageSize) {
    // Se invoca al constructor padre para que se inicialice todo
    // convenientemente
    super(new ListStore(new Loader(serviceName, null)), new ColumnModel(configs));
    initialize(seleccionable, pageSize);

  }
View Full Code Here

  private ArrayList getAllListLoadResult(Object data) {
    ArrayList list = new ArrayList();
    Iterator itList = ((ListLoadResult) data).getData().iterator();
    while (itList.hasNext()) {
      Map actual = (Map) itList.next();
      ColumnModel model = ((Proxy)((Loader)this.getLoader()).getProxy()).getCallback().getGrid().getColumnModel();
      BaseModel baseModel = new BaseModel();
      List columns = model.getColumns();
      Iterator it = columns.iterator();
      while (it.hasNext()) {
        ColumnConfig columnConfig = (ColumnConfig) it.next();
        baseModel.set(columnConfig.getId(), actual.get(columnConfig.getId()));
      }
View Full Code Here

TOP

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

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.