18 package org.turro.zkoss.grid;
20 import org.zkoss.zk.ui.Component;
21 import org.zkoss.zk.ui.HtmlBasedComponent;
22 import org.zkoss.zk.ui.ext.AfterCompose;
23 import org.zkoss.zul.Column;
24 import org.zkoss.zul.Row;
25 import org.zkoss.zul.impl.InputElement;
38 private int cellIndex;
43 this.renderer =
row.getChildren().size() > cellIndex ?
44 (Component)
row.getChildren().get(cellIndex) :
null;
45 this.cellIndex = cellIndex;
53 this.cellIndex =
row.getChildren().indexOf(
renderer);
119 row.getChildren().add(cellIndex,
editor);
120 if(
editor instanceof AfterCompose) {
121 ((AfterCompose)
editor).afterCompose();
126 ((InputElement)
editor).select();
HtmlBasedComponent editor
EditableCell(EditableGrid grid, Row row, int cellIndex)
EditableCell(EditableGrid grid, Row row, Component renderer)
HtmlBasedComponent getEditor(EditableCell editableCell)
Column getEditableColumn(int cellIndex)