19 package org.turro.skills;
21 import java.util.Collection;
23 import org.turro.elephant.entities.db.SkillType;
24 import org.zkoss.zk.ui.ext.AfterCompose;
25 import org.zkoss.zkmax.zul.Chosenbox;
26 import org.zkoss.zul.ListModelList;
34 private String rootFilter, entityPath;
36 private boolean populated;
37 private Collection<SkillRoot> internalValues;
40 this.rootFilter = rootFilter;
44 this.entityPath = entityPath;
54 for(
int i = 0; i < types.length; i++) {
55 this.types[0] =
SkillType.valueOf(types[0]);
72 return getSelectedObjects();
76 if(internalValues !=
null) setSelectedObjects(internalValues);
80 ((ListModelList) getModel()).add(value);
81 Set
set = getSelectedObjects();
83 setSelectedObjects(
set);
91 if (internalValues !=
null) {
93 internalValues =
null;
100 private void populateList() {
void setRootFilter(String rootFilter)
void addToModel(SkillRoot value)
void setTypes(SkillType[] types)
void setTypes(String types)
Set< SkillRoot > getObjectValues()
void setTypes(String[] types)
void setEntityPath(String entityPath)
void setObjectValues(Collection< SkillRoot > internalValues)
static List< SkillRoot > getSkillsAsRootFrom(String entityPath, SkillType... types)
static List< SkillRoot > getAvailables(String rootFilter, SkillType... types)