Package org.spw.controller

Examples of org.spw.controller.EventController


   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Event event = (Event)list.getObject(rk);
            new EventController().delete(event);
            list.refreshList();
        }
       
        return null;
    }
View Full Code Here


        aList.addAll(ctrl.getEvents());
    }
   
    public void refreshRemindersList() {
        aList.clear();
        EventController ctrl = new EventController();
        aList.addAll(ctrl.getReminders());
    }
View Full Code Here

        try {
            id = new Long(value);
        } catch (NumberFormatException ex) {
            throw new ConverterException("Incorrect id for Event[" + value +"]");
        }
        EventController ctrl = new EventController();
        return ctrl.read(id);
    }
View Full Code Here

    protected SessionBean1 getSessionBean1() {
        return (SessionBean1)getBean("SessionBean1");
    }

    public String buttonValidate_action() {
        new EventController().update(
                getSessionBean1().getEvent());
        return "success";
    }
View Full Code Here

    public String buttonClearReminder_action() {
        RowKey rk = tableRowGroup2.getRowKey();
        if (rk != null) {
            Event event = (Event)remindersList.getObject(rk);
            event.setReminderDate(null);
            new EventController().update(event);
        }
        // Refresh
        remindersList.refreshRemindersList();
       
        return null;
View Full Code Here

   
    public void refreshList() {
        aList.clear();
        if (event == null)
            return;
        EventController ctrl = new EventController();
        aList.addAll(ctrl.read(event.getIdEvent()).getContactsAttended());
    }
View Full Code Here

   
    public void refreshList() {
        aList.clear();
        if (event == null)
            return;
        EventController ctrl = new EventController();
        aList.addAll(ctrl.read(event.getIdEvent()).getOrganizedBy());
    }
View Full Code Here

   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Event event = (Event)list.getObject(rk);
            new EventController().delete(event);
            list.refreshList();
        }
       
        return null;
    }
View Full Code Here

    public String buttonClearReminder_action() {
        RowKey rk = tableRowGroup2.getRowKey();
        if (rk != null) {
            Event event = (Event)remindersList.getObject(rk);
            event.setReminderDate(null);
            new EventController().update(event);
        }
        // Refresh
        remindersList.refreshRemindersList();
       
        return null;
View Full Code Here

        aList.addAll(ctrl.getEvents());
    }
   
    public void refreshRemindersList() {
        aList.clear();
        EventController ctrl = new EventController();
        aList.addAll(ctrl.getReminders());
    }
View Full Code Here

TOP

Related Classes of org.spw.controller.EventController

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.