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

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

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

Grid.setSelectionModel介绍

[英]Sets the grid selection model.
[中]设置栅格选择模型。

代码示例

代码示例来源:origin: com.extjs/gxt

/**
 * Sets the view's grid (pre-render).
 * 
 * @param view the view
 */
public void setView(GridView view) {
 this.view = view;
 // rebind the sm
 setSelectionModel(sm);
}

代码示例来源:origin: com.extjs/gxt

/**
 * Creates a new grid.
 * 
 * @param store the data store
 * @param cm the column model
 */
public Grid(ListStore<M> store, ColumnModel cm) {
 this.store = store;
 this.cm = cm;
 this.view = new GridView();
 disabledStyle = null;
 baseStyle = "x-grid-panel";
 setSelectionModel(new GridSelectionModel<M>());
 disableTextSelection(true);
}

代码示例来源:origin: com.extjs/gxt

/**
 * Reconfigures the grid to use a different Store and Column Model. The View
 * will be bound to the new objects and refreshed.
 * 
 * @param store the new store
 * @param cm the new column model
 */
public void reconfigure(ListStore<M> store, ColumnModel cm) {
 if (loadMask && rendered) {
  mask(GXT.MESSAGES.loadMask_msg());
 }
 if (rendered) {
  view.initData(store, cm);
 }
 this.store = store;
 this.cm = cm;
 // rebind the sm
 setSelectionModel(sm);
 if (isViewReady()) {
  view.refresh(true);
 }
 if (loadMask && rendered) {
  unmask();
 }
 fireEvent(Events.Reconfigure);
}

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

grid.setAutoExpandMin(150);
grid.setView(new PivotGridView());
grid.setSelectionModel(new CellSelectionModel<PivotGridPanel.PivotTableRow>());
grid.addListener(Events.CellDoubleClick, new Listener<GridEvent<PivotTableRow>>() {
  @Override

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

attachmentsGrid.setSelectionModel(new KeyAndMouseSelectionModel<FileDescriptor>(attachmentsGrid) {
  @Override
  public void fireEvent(BeanModel beanModelSelected, boolean doubleClick, boolean mouseEvent) {

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

grid.setSelectionModel(new GridSelectionModel<>());
grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<UserPermissionDTO>() {

相关文章