use of main.logic.Task in project Eidolons by IDemiurge.
the class ReportGenerator method getTaskDetails.
private static String getTaskDetails(Session arg) {
List<Task> tasks = arg.getTasks();
AT_SortMaster.sortTasks(tasks);
String s = "Task Details: ";
for (Task a : tasks) {
s += a.getTaskString() + "\n";
}
return s;
}
use of main.logic.Task in project Eidolons by IDemiurge.
the class GoalPanel method addTaskComps.
private void addTaskComps(List<Task> list) {
int i = 0;
for (Task task : list) {
TaskComp comp = new TaskComp(task);
String pos = "";
if (i % 2 == 0) {
pos = "wrap";
}
add(comp, pos);
}
}
use of main.logic.Task in project Eidolons by IDemiurge.
the class TaskComponent method handleClick.
@Override
public void handleClick(TASK_COMMAND command, boolean alt) {
if (!(ArcaneTower.getSelectedEntity() instanceof Task)) {
return;
}
Task task = (Task) ArcaneTower.getSelectedEntity();
switch(command) {
case TOGGLE:
task.toggle();
break;
case BLOCK:
task.block();
break;
case DONE:
task.done();
break;
case REMOVE:
task.remove();
break;
}
ArcaneTower.getSessionWindow().refresh();
}
use of main.logic.Task in project Eidolons by IDemiurge.
the class ReportView method init.
public void init() {
PROPERTY prop = AT_PROPS.COMPLETED_TASKS;
OBJ_TYPE TYPE = AT_OBJ_TYPE.TASK;
List<ObjType> workedTasks = getTypeList(prop, TYPE);
List<Task> completedTasks = new ArrayList<>();
List<Task> failedTasks = new ArrayList<>();
// new ListMaster<>().toList(string)
// task comps? group by goals
// time spent,
// new G_ScrolledPanel<E>() {
// @Override
// protected G_Panel createComponent(E d) {
// // TODO Auto-generated method stub
// return null;
// }
// };
// state
// style
}