固定宽度在gxt网格中

时间:2016-07-20 10:38:04

标签: java gwt gxt

伙计们我想修复某些列宽...我想使用setFixed(true)...这里我是如何创建列的

  private ColumnConfig<ContentAttribute, ContentAttribute> createActionsColumn(int actionsColumnWidth) {
final BackofficeButtonCompositeCell<ContentAttribute> buttonsCell = new BackofficeButtonCompositeCell<ContentAttribute>(
    createActionsGridCellRenderer().getButtonsCells());
final DtoValueProvider<ContentAttribute> valueProvider = new DtoValueProvider<ContentAttribute>(ACTIONS_COLUMN_ID);
return SenchaGridUtils.createDefaultColumnConfig(valueProvider, actionsColumnWidth, MessagesFactory.bo().actions(),
    buttonsCell);

}

然后如何修复它的宽度?

1 个答案:

答案 0 :(得分:0)

为什么不:

ColumnConfig columnConfig = SenchaGridUtils.createDefaultColumnConfig(valueProvider, actionsColumnWidth, MessagesFactory.bo().actions(), buttonsCell);
columnConfig.setFixed(true);
return columnConfig;