Package net.caece.pri.hibernate.vo

Examples of net.caece.pri.hibernate.vo.DutyForm


         */
        return isValid;
    }

    private void objToSubview(DutyForm form) {
        DutyForm obj = form;

        Label userNameLB = (Label) getFellow("userName");
        userNameLB.setValue(user.getUserName());

        Listbox authListbox = (Listbox) getFellow("auth");
        Iterator authItr = authListbox.getItems().iterator();
        while (authItr.hasNext()) {
            Listitem item = (Listitem) authItr.next();
            AuthForm authForm = (AuthForm) item.getValue();
            if (authForm.getAuthId().toString().equals(obj.getAuthId().toString())) {
                authListbox.setSelectedItem(item);
            }
        }

        Datebox validAfterDate = (Datebox) getFellow("validAfterDate");
        Timebox validAfterTime = (Timebox) getFellow("validAfterTime");
        if (obj.getValidAfter() != null) {
            validAfterDate.setValue(obj.getValidAfter());
            validAfterTime.setValue(obj.getValidAfter());
        }

        Datebox validBeforeDate = (Datebox) getFellow("validBeforeDate");
        Timebox validBeforeTime = (Timebox) getFellow("validBeforeTime");
        if (obj.getValidBefore() != null) {
            validBeforeDate.setValue(obj.getValidBefore());
            validBeforeTime.setValue(obj.getValidBefore());
        }

    }
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.vo.DutyForm

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.