protected Element getWidgetCell(int row, int cell) { Element cellEl = getCell(row, cell); if (cellEl != null) { return cellEl.getFirstChildElement(); } return null; }
protected void onCellDeselect(int row, int col) { Element cell = getCell(row, col); if (cell != null) { fly(cell).removeStyleName("x-grid3-cell-selected"); if (GXT.isAriaEnabled()) { cell.setAttribute("aria-selected", "false"); } } }
protected void onCellSelect(int row, int col) { Element cell = getCell(row, col); if (cell != null) { fly(cell).addStyleName("x-grid3-cell-selected"); if (GXT.isAriaEnabled()) { cell.setAttribute("aria-selected", "true"); grid.setAriaState("aria-activedescendant", cell.getId()); } } }
public void handleEvent(BaseEvent be) { int columnIndex = grid.getColumnModel().getIndexById(RowNumberer.this.getId()); ColumnData columnData = grid.getView().getColumnData().get(columnIndex); ListStore<ModelData> store = (ListStore<ModelData>) grid.getStore(); String property = RowNumberer.this.getDataIndex(); for (int i = 0; i < grid.getStore().getCount(); i++) { Element cell = grid.getView().getCell(i, columnIndex); if (cell != null) { cell.getFirstChildElement().setInnerHTML( RowNumberer.this.getRenderer().render((ModelData) grid.getStore().getAt(i), property, columnData, i, columnIndex, store, (Grid<ModelData>) grid).toString()); } } } });
ed.startEdit((Element) grid.getView().getCell(row, col), m.get(field)); DeferredCommand.addCommand(new Command() { public void execute() {
col++; cellEl = getCell(row, col);