Examples of RegularMaintain


Examples of net.caece.fmII.hibernate.RegularMaintain

            item.setParent(buildingCB);
        }
    }

    public void add() {
        RegularMaintain obj = (RegularMaintain) viewToObj(null);
        RegularMaintainDao dao = new RegularMaintainDao();
        add(dao, obj);
    }
View Full Code Here

Examples of net.caece.fmII.hibernate.RegularMaintain

        RegularMaintainDao dao = new RegularMaintainDao();
        add(dao, obj);
    }

    public void delete() {
        RegularMaintain obj = (RegularMaintain) objListbox.getSelectedItem().getValue();
        RegularMaintainDao dao = new RegularMaintainDao();
        delete(dao, obj);

        // resetting view data
       RegularMaintainForm form = new RegularMaintainForm();
View Full Code Here

Examples of net.caece.fmII.hibernate.RegularMaintain

    public void refreshObjEntities() {
        refreshObjEntities("RegularMaintain.getAll", objListRenderer);
    }

    public void update() {
        RegularMaintain obj = (RegularMaintain) objListbox.getSelectedItem().getValue();
        RegularMaintainDao dao = new RegularMaintainDao();
        update(dao, obj);
    }
View Full Code Here

Examples of net.caece.fmII.hibernate.RegularMaintain

    public boolean validate() {
        return true;
    }

    public Object viewToObj(Object obj) {
        RegularMaintain var = new RegularMaintain();
        if (obj != null) {
            try {
                BeanUtils.copyProperties(var, obj);
            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }

        Combobox buildingCB = (Combobox) getFellow("building");
        if (buildingCB.getSelectedItem() != null) {
            var.setBuilding((Building) buildingCB.getSelectedItem().getValue());
        }

        Combobox maintainEventTypeCB = (Combobox) getFellow("maintainEventType");
        if (maintainEventTypeCB.getSelectedItem() != null) {
            var.setEventType((MaintainEventType) maintainEventTypeCB.getSelectedItem().getValue());
        }

        Textbox maintainEventNameTB = (Textbox) getFellow("maintainEventName");
        var.setMaintainEventName(maintainEventNameTB.getText());

        Textbox regularSettingTB = (Textbox) getFellow("regularSetting");
        var.setRegularSetting(regularSettingTB.getText());

        Textbox noteTB = (Textbox) getFellow("note");
        var.setNote(noteTB.getText());

        Combobox importantLevelCB = (Combobox) getFellow("importantLevel");
        if (importantLevelCB.getSelectedItem() != null) {
            var.setImportantLevel(importantLevelCB.getSelectedItem().getValue().toString());
        }

        return var;
    }
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.