◆ addGoal()
void org.turro.web.funnel.model.FunnelGoalsVM.addGoal |
( |
| ) |
|
Definition at line 57 of file FunnelGoalsVM.java.
58 Dialogs.title(I_.get(
"Add"))
61 .addField(DialogField.field(
"GoalAction"))
63 String goalAction = dialogs.<Textbox>getEditor(
"GoalAction").getValue();
64 if(notInModel(goalAction)) {
65 WebGoal wi =
new WebGoal();
66 wi.setGoalAction(goalAction);
70 BindUtils.postNotifyChange(
null,
null, FunnelGoalsVM.this,
71 "model",
"selected",
"showForm");
73 Toasts.message(
"GoalActions should not include spaces or punctuation characters.").show();
76 Toasts.message(
"GoalAction already in the model.").show();
◆ delete()
void org.turro.web.funnel.model.FunnelGoalsVM.delete |
( |
| ) |
|
Definition at line 93 of file FunnelGoalsVM.java.
94 Messages.confirmDeletion().add(selected.
getItemLabel()).show(() -> {
95 dao.get().deleteObject(selected);
96 Executions.getCurrent().sendRedirect(
"");
◆ getModel()
List<WebGoal> org.turro.web.funnel.model.FunnelGoalsVM.getModel |
( |
| ) |
|
Definition at line 112 of file FunnelGoalsVM.java.
114 model = SqlClause.select(
"wg").from(
"WebGoal wg")
115 .orderBy(
"ordering, goalAction")
117 .resultList(WebGoal.class);
◆ getSelected()
WebGoal org.turro.web.funnel.model.FunnelGoalsVM.getSelected |
( |
| ) |
|
◆ isShowForm()
boolean org.turro.web.funnel.model.FunnelGoalsVM.isShowForm |
( |
| ) |
|
◆ save()
void org.turro.web.funnel.model.FunnelGoalsVM.save |
( |
| ) |
|
Definition at line 84 of file FunnelGoalsVM.java.
85 model.stream().filter(wi -> wi.isEmpty() && !wi.isNew())
86 .forEach(wi -> dao.get().deleteEntity(wi));
87 model.removeIf(wi -> wi.isEmpty());
88 model.forEach(wi -> wi.compose());
89 dao.get().saveEntities(model);
90 Executions.getCurrent().sendRedirect(
"");
◆ setSelected()
void org.turro.web.funnel.model.FunnelGoalsVM.setSelected |
( |
WebGoal |
selected | ) |
|
Definition at line 47 of file FunnelGoalsVM.java.
48 this.selected = selected;
49 BindUtils.postNotifyChange(
null,
null, FunnelGoalsVM.this,
50 "selected",
"showForm",
"nextsModel");
The documentation for this class was generated from the following file: