Package com.apress.progwt.client.domain

Examples of com.apress.progwt.client.domain.ProcessValue


        String NAME = "Mailed";
        ProcessType processType = new ProcessType(NAME);
        currentUser.getProcessTypes().add(processType);

        ProcessValue processValue = new ProcessValue();
        sap.getProcess().put(processType, processValue);

        schoolDAO.save(currentUser);

        User savedUser = userDAO.getUserByUsername(currentUser
                .getUsername());
        assertEquals(1, savedUser.getSchoolRankings().size());

        assertEquals(9, savedUser.getProcessTypes().size());

        ProcessType savedPT = null;
        // iterate to the last one
        Iterator i = currentUser.getProcessTypes().iterator();
        while (i.hasNext()) {
            savedPT = (ProcessType) i.next();
        }
        assertEquals(NAME, savedPT.getName());

        Application savedSAP = savedUser.getSchoolRankings().get(0);

        ProcessValue savedPValue = savedSAP.getProcess().get(savedPT);

        assertNotNull(savedPValue);
        assertEquals(0.0, savedPValue.getPctComplete());

    }
View Full Code Here


        assertEquals(dart, dartApplication.getSchool());

        ProcessType considering = getUser().getProcessTypes().get(0);

        ProcessValue processValue = new ProcessValue();
        Calendar d = Calendar.getInstance();
        d.set(2005, 3, 10);
        processValue.setDueDate(d.getTime());
        processValue.setPctComplete(.34);

        // re-order to Harvard,Dart,Yale
        SaveProcessCommand processComm = new SaveProcessCommand(
                dartApplication, considering, processValue);
        executeWithToken(processComm, false);

        User savedUser2 = getUser();

        Application savedDart = savedUser2.getSchoolRankings().get(0);
        ProcessValue savedValue = savedDart.getProcess().get(considering);

        assertEquals(.34, savedValue.getPctComplete());
        assertEquals(2005, savedValue.getDueDate().getYear() + 1900);

    }
View Full Code Here

                col++;

                for (ProcessType processType : user
                        .getNonStatusProcessTypes()) {

                    ProcessValue value = application.getProcess().get(
                            processType);
                    if (value == null) {
                        value = new ProcessValue();
                    }

                    ProcessValueEditWidget checkW = new ProcessCheckboxWidget(
                            null, processType, value);
View Full Code Here

        menu.show();
    }

    public void addProcess(ProcessType processType, Date date) {
        Log.debug("AddProcess " + processType + " " + date);
        ProcessValue value = new ProcessValue();
        value.setDueDate(date);

        if (getCurrentApplication() != null) {
            ProcessValue existing = getCurrentApplication().getProcess()
                    .get(processType);

            if (existing != null) {
                AlertDialog
                        .alert("Sorry, that already exists for this application.");
View Full Code Here

            List<TimeLineObj<ProcessTimeLineEntry>> tlos = new ArrayList<TimeLineObj<ProcessTimeLineEntry>>();

            for (ProcessType processType : application.getProcess()
                    .keySet()) {

                ProcessValue value = application.getProcess().get(
                        processType);

                // value == null simply means that the user isn't using
                // that value yet.
                if (value != null) {
View Full Code Here

        super();
        this.processType = processType;
        this.application = application;

        if (processValue == null) {
            this.processValue = new ProcessValue();
        } else {
            this.processValue = processValue;
        }
    }
View Full Code Here

TOP

Related Classes of com.apress.progwt.client.domain.ProcessValue

Copyright © 2018 www.massapicom. 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.