19 package org.turro.skills;
21 import org.turro.elephant.db.ElephantPU;
22 import org.turro.elephant.entities.db.Skill;
23 import org.turro.elephant.entities.db.SkillType;
24 import org.turro.entities.EntityRootCombobox;
25 import org.turro.i18n.I_;
26 import org.turro.jpa.grid.JpaGrid;
27 import org.turro.zkoss.grid.EditableCell;
28 import org.zkoss.zk.ui.HtmlBasedComponent;
29 import org.zkoss.zul.Row;
38 super(
new ElephantPU(),
"select s from Skill s where s.entityPath not like '/%'",
true);
44 if(value ==
null) value =
new Skill();
63 stl.setMold(
"select");
67 return super.createEditor(editableCell);
70 private void addColumns() {
71 addColumn(
I_.
get(
"Skill"), String.class,
"skill",
null, 0,
false,
false).setHflex(
"3");
72 addColumn(
I_.
get(
"Root"), String.class,
"entityPath",
null, 0,
false,
false).setHflex(
"1");
static String get(String msg)
void initiateRow(Row row, Skill value)
HtmlBasedComponent createEditor(EditableCell editableCell)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
Object getCellValue(EditableCell editableCell)