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

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


                        final ListStore<GWTJahiaWorkflowType> types = new ListStore<GWTJahiaWorkflowType>();
                        types.add(new ArrayList<GWTJahiaWorkflowType>(workflowRules.keySet()));
                        types.sort("displayName", Style.SortDir.ASC);

                        ColumnModel header = new ColumnModel(Arrays.asList(new ColumnConfig("displayName", "displayName", 300)));

                        final Grid<GWTJahiaWorkflowType> grid = new Grid<GWTJahiaWorkflowType>(types, header);
                        grid.setWidth(250);
                        grid.setHideHeaders(true);
                        grid.setHeight(150);
View Full Code Here


        ListStore<WCAGViolation> store = new ListStore<WCAGViolation>();
        store.add(wcagResult.getErrors());
        store.add(wcagResult.getWarnings());
        store.add(wcagResult.getInfos());

        final Grid<WCAGViolation> grid = new Grid<WCAGViolation>(store, new ColumnModel(configs));
        grid.setHeight(store.getCount() > 3 ? 100 : (35 + 20 * store.getCount()));
        grid.setStyleAttribute("borderTop", "none");
        grid.setAutoExpandColumn("message");
        grid.setAutoExpandMax(900);
        grid.setBorders(false);
View Full Code Here

    configs.add(clmncnfgQuantity);
   
    ColumnConfig clmncnfgPrice = new ColumnConfig("price", "Price", 150);
    configs.add(clmncnfgPrice);

    Grid grid = new Grid(holdings, new ColumnModel(configs));
    add(grid, new FormData("100%"));
    grid.setBorders(true);
   
  }
View Full Code Here

        column.setHeader("Equations");
        column.setRenderer(buttonRenderer);
        column.setWidth(150);
        configs.add(column);
       
        columnModel = new ColumnModel(configs);
       
        grid = new Grid<UserTableModel>(store, columnModel);
        grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
        grid.getSelectionModel().addListener(Events.SelectionChange,
                new Listener<SelectionChangedEvent<UserTableModel>>()
View Full Code Here

    configs.add(clmncnfgQuantity);
   
    ColumnConfig clmncnfgType = new ColumnConfig("type", "Type", 60);
    configs.add(clmncnfgType);

    ColumnModel cm = new ColumnModel(configs);

    ordersGrid = new Grid<Order>(orders, cm);
    ordersGrid.setSize("445px", "235px");
    ordersGrid.setBorders(true);
    add(ordersGrid);
View Full Code Here

    configs.add(clmncnfgQuantity);
   
    ColumnConfig clmncnfgPrice = new ColumnConfig("price", "Price", 60);
    configs.add(clmncnfgPrice);

    ColumnModel cm = new ColumnModel(configs);
   
    grid = new Grid<Holding>(holdings, cm);
    add(grid, new FormData("-5 -10"));
    grid.setSize("", "");
    grid.setBorders(true);
View Full Code Here

        column.setHeader("Equations");
        column.setRenderer(buttonRenderer);
        column.setWidth(150);
        configs.add(column);
       
        columnModel = new ColumnModel(configs);
       
        grid = new Grid<SystemTableModel>(store, columnModel);
        grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
        grid.getSelectionModel().addListener(Events.SelectionChange,
                new Listener<SelectionChangedEvent<SystemTableModel>>()
View Full Code Here

    };
   
    column.setEditor(editor);
    configs.add(column);
   
    ColumnModel cm = new ColumnModel(configs)
          
    grid = new EditorGrid <VariableMatch>(store, cm)
    //grid.setAutoExpandColumn("variablefromstructure"); 
    grid.setBorders(true)
    //panel.add(grid);     
View Full Code Here

        columnConfigDate.setDateTimeFormat(DateTimeFormat.getFormat(textMessages.displayDateFormat()));
        configs.add(columnConfigDate);
        ColumnConfig columnConfigUser = new ColumnConfig(Constants.USER, textMessages.userAccessed(), 160);
        configs.add(columnConfigUser);
       
        Grid<PasswordAccessAuditData> grid = new Grid<PasswordAccessAuditData>(gridStore, new ColumnModel(configs));
        grid.setStripeRows(true);
        add(grid);
        grid.setSize("320px", "390px");
        grid.setBorders(true);
       
View Full Code Here

        column.setId(Constants.ACCESSLEVEL);
        column.setHeader(textMessages.accessLevel());
        column.setWidth(113);
        column.setEditor(accessLevelEditor);
        config.add(column);
        ColumnModel cm = new ColumnModel(config);
        permissionGrid = new EditorGrid<TemplateData>(permissionStore, cm);
        permissionGrid.setBorders(true);
        permissionGrid.setStripeRows(true);
        GridSelectionModel<TemplateData> gsm = permissionGrid.getSelectionModel();
        gsm.setSelectionMode(SelectionMode.SINGLE);
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.