com.extjs.gxt.ui.client.widget.grid.Grid.setAutoExpandColumn()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中com.extjs.gxt.ui.client.widget.grid.Grid.setAutoExpandColumn()方法的一些代码示例,展示了Grid.setAutoExpandColumn()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.setAutoExpandColumn()方法的具体详情如下:
包路径:com.extjs.gxt.ui.client.widget.grid.Grid
类名称:Grid
方法名:setAutoExpandColumn

Grid.setAutoExpandColumn介绍

[英]The id of a column in this grid that should expand to fill unused space (pre-render). This id can not be 0.
[中]此网格中应展开以填充未使用空间(预渲染)的列的id。此id不能为0。

代码示例

代码示例来源:origin: geoserver/geofence

  1. @Override
  2. public void setGridProperties()
  3. {
  4. grid.setAutoExpandColumn(BeanKeyValue.USER_NAME.getValue());
  5. grid.setWidth(350);
  6. grid.setHeight("100%");
  7. }

代码示例来源:origin: bedatadriven/activityinfo

  1. @Override
  2. protected Grid<ProjectDTO> createGridAndAddToContainer(Store store) {
  3. grid = new Grid<ProjectDTO>((ListStore) store, createColumnModel());
  4. grid.setAutoExpandColumn("description");
  5. grid.setLoadMask(true);
  6. setLayout(new FitLayout());
  7. add(grid);
  8. return grid;
  9. }

代码示例来源:origin: bedatadriven/activityinfo

  1. @Override
  2. protected Grid<TargetDTO> createGridAndAddToContainer(Store store) {
  3. this.store = (ListStore<TargetDTO>) store;
  4. grid = new Grid<TargetDTO>((ListStore) store, createColumnModel());
  5. grid.setAutoExpandColumn("name");
  6. grid.setLoadMask(true);
  7. setLayout(new BorderLayout());
  8. add(grid, new BorderLayoutData(Style.LayoutRegion.CENTER));
  9. return grid;
  10. }

代码示例来源:origin: bedatadriven/activityinfo

  1. private void createGrid() {
  2. grid = new Grid<UserDatabaseDTO>(presenter.getStore(), createColumnModel());
  3. grid.setAutoExpandColumn("fullName");
  4. grid.setLoadMask(true);
  5. grid.addListener(Events.RowDoubleClick, new Listener<GridEvent>() {
  6. @Override
  7. public void handleEvent(GridEvent be) {
  8. presenter.onUIAction(UIActions.EDIT);
  9. }
  10. });
  11. grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<UserDatabaseDTO>() {
  12. @Override
  13. public void selectionChanged(SelectionChangedEvent<UserDatabaseDTO> se) {
  14. presenter.onSelectionChanged(se.getSelectedItem());
  15. }
  16. });
  17. add(grid);
  18. }

代码示例来源:origin: bedatadriven/activityinfo

  1. grid.setAutoExpandColumn("header");
  2. grid.setAutoExpandMin(150);
  3. grid.setView(new PivotGridView());

代码示例来源:origin: pl.touk.top/file-upload-gwtclient-lib

  1. this.attachmentsGrid.setAutoExpandColumn("fileName");

代码示例来源:origin: pl.touk.tola/tola

  1. grid.setAutoExpandColumn(FileDescriptorGxt.FILE_NAME);
  2. grid.setBorders(true);

代码示例来源:origin: bedatadriven/activityinfo

  1. public IndicatorGridPanel(Dispatcher dispatcher) {
  2. this.dispatcher = dispatcher;
  3. store = new ListStore<ModelData>(loader);
  4. grid = new Grid<ModelData>(store, createColumnModel());
  5. grid.setView(new HighlightingGridView() {
  6. @Override
  7. protected boolean isHighlightable(ModelData model) {
  8. return model instanceof IndicatorDTO;
  9. }
  10. });
  11. setEmptyText();
  12. grid.setAutoExpandColumn("name");
  13. grid.setHideHeaders(true);
  14. grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
  15. grid.getSelectionModel().addListener(Events.BeforeSelect, new Listener<SelectionEvent<ModelData>>() {
  16. @Override
  17. public void handleEvent(SelectionEvent<ModelData> event) {
  18. if (!(event.getModel() instanceof IndicatorDTO)) {
  19. event.setCancelled(true);
  20. }
  21. }
  22. });
  23. setLayout(new FitLayout());
  24. add(grid);
  25. }

代码示例来源:origin: bedatadriven/activityinfo

  1. public DatabaseGridPanel(Dispatcher dispatcher) {
  2. this.dispatcher = dispatcher;
  3. ListLoader<ListLoadResult<UserDatabaseDTO>> loader = new BaseListLoader<ListLoadResult<UserDatabaseDTO>>(new
  4. DatabaseProxy());
  5. ListStore<UserDatabaseDTO> store = new ListStore<UserDatabaseDTO>(loader);
  6. grid = new Grid(store, createColumnModel());
  7. grid.setView(new HighlightingGridView());
  8. grid.setAutoExpandColumn("name");
  9. grid.setHideHeaders(true);
  10. grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
  11. setLayout(new FitLayout());
  12. add(grid);
  13. loader.load();
  14. IndicatorLinkResources.INSTANCE.style().ensureInjected();
  15. }

代码示例来源:origin: bedatadriven/activityinfo

  1. @Inject
  2. public DbPartnerEditor(EventBus eventBus, Dispatcher dispatcher) {
  3. this.eventBus = eventBus;
  4. this.dispatcher = dispatcher;
  5. toolBar = new ActionToolBar(this);
  6. toolBar.addButton(UIActions.ADD, I18N.CONSTANTS.addPartner(), IconImageBundle.ICONS.add());
  7. toolBar.addButton(UIActions.EDIT, I18N.CONSTANTS.edit(), IconImageBundle.ICONS.edit());
  8. toolBar.addButton(UIActions.DELETE, I18N.CONSTANTS.delete(), IconImageBundle.ICONS.delete());
  9. toolBar.setDirty(false);
  10. store = new ListStore<>();
  11. store.setSortField("name");
  12. store.setSortDir(Style.SortDir.ASC);
  13. store.setModelComparer((a, b) -> a.getId() == b.getId());
  14. grid = new Grid<>(store, createColumnModel());
  15. grid.setAutoExpandColumn("fullName");
  16. grid.setLoadMask(true);
  17. grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<PartnerDTO>() {
  18. @Override
  19. public void selectionChanged(SelectionChangedEvent<PartnerDTO> event) {
  20. onSelectionChanged(Optional.ofNullable(event.getSelectedItem()));
  21. }
  22. });
  23. this.contentPanel = new ContentPanel();
  24. this.contentPanel.setTopComponent(toolBar);
  25. this.contentPanel.setLayout(new FitLayout());
  26. this.contentPanel.add(grid);
  27. }

代码示例来源:origin: pl.touk/wonderful-security-lib

  1. grid.setBorders(true);
  2. grid.setAutoExpandMax(800);
  3. grid.setAutoExpandColumn(expandedColumnId);

相关文章