/** * Returns the id of the column at the specified index. * * @param colIndex the column index * @return the id */ public String getColumnId(int colIndex) { ColumnConfig c = getColumn(colIndex); return c != null ? c.getId() : null; }
public CujoModel(CujoProperty... properties) { super(createPropertyList(properties)); this.propertyList = Arrays.asList(properties); for (CujoProperty property : properties) { String propertyName = property.getName(); for (ColumnConfig config : super.getColumns()) { if (config.getId().equals(propertyName)) { map.put(property.getName(), config); break; } } } }
public Head(ColumnConfig column) { this.config = column; this.column = cm.indexOf(column); baseStyle = "x-grid3-hd-inner x-grid3-hd-" + column.getId(); if (column.getColumnStyleName() != null) { baseStyle += " " + column.getColumnStyleName(); } heads.add(this); render(DOM.createDiv()); getElement().setAttribute("x-col", column.getId()); }
@Override protected void applyState(Map<String, Object> state) { super.applyState(state); if (isStateful()) { for (ColumnConfig c : cm.getColumns()) { String id = c.getId(); if (state.containsKey("hidden" + id)) { c.setHidden((Boolean) state.get("hidden" + id)); } if (state.containsKey("width" + id)) { c.setWidth((Integer) state.get("width" + id)); } } doApplyStoreState(state); } }
if (grid.getSelectionModel() instanceof CheckBoxSelectionModel<?>) { CheckBoxSelectionModel<?> sm = (CheckBoxSelectionModel<?>) grid.getSelectionModel(); if (cm.getColumnById(sm.getColumn().getId()) != null) { rowBodyColSpanCount--;
if (grid.getSelectionModel() instanceof CheckBoxSelectionModel<?>) { CheckBoxSelectionModel<?> sm = (CheckBoxSelectionModel<?>) grid.getSelectionModel(); if (cm.getColumnById(sm.getColumn().getId()) != null) { rowBodyColSpanCount--;