Examples of TodoForm


Examples of net.sf.pmr.struts.todo.form.ToDoForm

                .getParameter("persistanceId"))) {

            ToDo toDo = toDoService.findByPersistanceId(Integer.parseInt((String) request.getParameter("persistanceId")));

            // populate the form
            ToDoForm toDoForm = (ToDoForm) form;

            toDoForm.setDate(toDo.getDate());
            toDoForm.setDone(toDo.isDone());
            toDoForm.setDescription(toDo.getDescription());
            toDoForm.setPersistanceId(toDo.getPersistanceId());
            toDoForm.setPersistanceVersion(toDo.getPersistanceVersion());

        }

        // populate summary
        populateListForProjectSummary(request);
View Full Code Here

Examples of net.sf.pmr.struts.todo.form.ToDoForm

        // get the service
        ToDoService toDoService = ToDoObjectFactory.getToDoService();

        // get the form
        ToDoForm toDoForm = (ToDoForm) form;

        // save the todo
        if (toDoForm.getPersistanceId() == 0) {
            // add
            // get the current basicProject from the session
            Integer basicProjectPersistanceId = (Integer) request.getSession()
                    .getAttribute("basicProject.persistanceId");

            User user = (User) request.getSession().getAttribute("user");
          
            toDoService.add(toDoForm.getDescription(), toDoForm.getDate(), toDoForm.getDone() ,user.getPersistanceId(), basicProjectPersistanceId);
           
        } else {
            // update
          toDoService.update(toDoForm.getPersistanceId(), toDoForm.getPersistanceVersion(), toDoForm.getDescription(), toDoForm.getDate(), toDoForm.getDone());
           
        }

        // populate the summary
        populateListForProjectSummary(request);
View Full Code Here

Examples of net.sf.pmr.struts.todo.form.ToDoForm

        // get the service
        ToDoService toDoService = ToDoObjectFactory.getToDoService();

        // get the form
        ToDoForm toDoForm = (ToDoForm) form;
       
        // delete the story
        toDoService.delete(toDoForm.getPersistanceId(), toDoForm.getPersistanceVersion());

        // populate the summary
        populateListForProjectSummary(request);
       
        return this.list(mapping, form, request, response);
View Full Code Here

Examples of org.springframework.richclient.samples.simple.ui.TodoForm

    }

    @Override
    protected AbstractForm createAddEditForm()
    {
        return new TodoForm();
    }
View Full Code Here

Examples of org.springframework.richclient.samples.simple.ui.TodoForm

    }
   
    @Override
    protected AbstractForm createDetailForm()
    {
        AbstractForm f = new TodoForm();
        f.getFormModel().setReadOnly(true);
        return f;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.