19 package org.turro.zul.groupit;
21 import org.turro.contacts.GroupIt;
22 import org.turro.contacts.Grouped;
23 import org.turro.contacts.db.ContactsPU;
24 import org.turro.entities.Entities;
25 import org.turro.i18n.I_;
26 import org.turro.zkoss.grid.CollectionGrid;
27 import org.turro.zkoss.grid.EditableCell;
28 import org.zkoss.zk.ui.HtmlBasedComponent;
29 import org.zkoss.zul.Row;
37 private String entityPath;
48 this.entityPath = entityPath;
102 return super.createEditor(editableCell);
114 return super.getEditorValue(editableCell);
121 return ((
GroupIt) value).getPathName();
124 return super.formatCell(editableCell, value);
127 private void addColumns() {
129 "category",
null, 0,
false,
false).setWidth(
"30%");
131 "parent",
null, 0,
false,
false).setWidth(
"70%");
static IElephantEntity getController(String path)
static String get(String msg)
void deleteObject(Object obj)
void setCollection(Collection< V > collection)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
void setCategory(String category)
void setObjectValue(GroupIt v)
void setEntity(Object entity)
boolean isValid(Grouped v)
void initiateRow(Row row, Grouped value)
boolean deleteRow(Row row)
String formatCell(EditableCell editableCell, Object value)
Object getEditorValue(EditableCell editableCell)
void setEntityPath(String entityPath)
HtmlBasedComponent createEditor(EditableCell editableCell)