◆ add()
void org.turro.alliance.model.TalentCategoriesVM.add |
( |
| ) |
|
Definition at line 51 of file TalentCategoriesVM.java.
52 Dialogs.title(I_.get(
"Add category"))
55 .addField(DialogField.field(
"Name"))
57 String domain = dialogs.<Textbox>getEditor(
"Name").getValue();
58 AxTalentCategory category =
new AxTalentCategory();
59 category.setName(domain);
62 BindUtils.postNotifyChange(
null,
null, TalentCategoriesVM.this,
"model");
◆ getModel()
Definition at line 84 of file TalentCategoriesVM.java.
86 model = SqlClause.select(
"c").from(
"AxTalentCategory c")
87 .orderBy(
"c.categoryId")
89 .resultList(AxTalentCategory.class);
◆ isNeedsSave()
boolean org.turro.alliance.model.TalentCategoriesVM.isNeedsSave |
( |
| ) |
|
◆ save()
void org.turro.alliance.model.TalentCategoriesVM.save |
( |
| ) |
|
Definition at line 70 of file TalentCategoriesVM.java.
71 model.stream().filter(category -> category.isEmpty() && !category.isNew())
72 .forEach(category -> dao.get().deleteEntity(category));
73 model.removeIf(category -> category.isEmpty());
74 dao.get().saveEntities(model);
◆ setNeedsSave()
void org.turro.alliance.model.TalentCategoriesVM.setNeedsSave |
( |
boolean |
needsSave | ) |
|
The documentation for this class was generated from the following file: