- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file TasksVM.java.
◆ add()
void org.turro.scheduler.model.TasksVM.add |
( |
@BindingParam("task") AbstractTask |
task | ) |
|
Definition at line 63 of file TasksVM.java.
64 Motor.getInstance().getTasks().add(task);
66 BindUtils.postNotifyChange(
null,
null, TasksVM.this,
"model",
"selected");
◆ delete()
void org.turro.scheduler.model.TasksVM.delete |
( |
| ) |
|
Definition at line 51 of file TasksVM.java.
52 if(selected !=
null && !selected.
isSystem()) {
55 Motor.getInstance().getTasks().
remove(selected);
57 BindUtils.postNotifyChange(
null,
null, TasksVM.this,
"model",
"selected");
abstract boolean isSystem()
◆ getAvailable()
List<AbstractTask> org.turro.scheduler.model.TasksVM.getAvailable |
( |
| ) |
|
Definition at line 71 of file TasksVM.java.
72 return Instances.fresh().bySuper(AbstractTask.class, AbstractTask.class)
73 .stream().filter(t -> !t.isSystem()).toList();
◆ getModel()
Set org.turro.scheduler.model.TasksVM.getModel |
( |
| ) |
|
Definition at line 90 of file TasksVM.java.
91 return Motor.getInstance().getTasks();
◆ getSelected()
AbstractTask org.turro.scheduler.model.TasksVM.getSelected |
( |
| ) |
|
◆ runSelected()
void org.turro.scheduler.model.TasksVM.runSelected |
( |
| ) |
|
Definition at line 39 of file TasksVM.java.
40 if(selected !=
null && selected.
isDone()) {
41 selected.
doRun(Motor.getInstance());
◆ save()
void org.turro.scheduler.model.TasksVM.save |
( |
| ) |
|
Definition at line 46 of file TasksVM.java.
47 TaskSet.save(Motor.getInstance().getTasks());
◆ setSelected()
void org.turro.scheduler.model.TasksVM.setSelected |
( |
AbstractTask |
selected | ) |
|
Definition at line 84 of file TasksVM.java.
85 this.selected = selected;
The documentation for this class was generated from the following file: