Package org.spw.model

Examples of org.spw.model.Event


    protected SessionBean1 getSessionBean1() {
        return (SessionBean1)getBean("SessionBean1");
    }
   
    public String buttonAdd_action() {
        getSessionBean1().setEvent(new Event());
       
        return "edit";
    }
View Full Code Here


    }
   
    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Event event = (Event)list.getObject(rk);
            getSessionBean1().setEvent(event);
        }
       
        return "edit";
    }
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

        return null;
    }
   
    public String buttonAttended_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        Event event = null;
        if (rk != null) {
            event = (Event)list.getObject(rk);
            getSessionBean1().setEvent(event);
        }
        getSessionBean1().setAttendedDataProvider(
View Full Code Here

    private void removeOrganizedBy(final Contact contactToRemove) {
        eventCtl.removeOrganizer(contactToRemove, getEvent());
    }
   
    private Event getEvent() {
        Event event = getSessionBean1().getEvent();
        return event;
    }
View Full Code Here

     * Creates a new instance of EventDataProvider
     */
    public EventDataProvider() {
        aList = new ArrayList<Event>();
        // Put in dummy data for design time
        aList.add(new Event());
       
        // Wrap the list
        setList(aList);
    }
View Full Code Here

    public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value == null) return null;
        if (!(value instanceof Event)) {
            throw new ConverterException("Error converting Event, got a " + value.getClass().getName());
        }
        Event obj = (Event) value;
        return Long.toString(obj.getIdEvent());
    }
View Full Code Here

       
        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        if (getSessionBean1().getEvent() == null) {
            getSessionBean1().setEvent(new Event());
        }
    }
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();
       
View Full Code Here

    }
   
    public String buttonEditReminder_action() {
        RowKey rk = tableRowGroup2.getRowKey();
        if (rk != null) {
            Event event = (Event)remindersList.getObject(rk);
            getSessionBean1().setEvent(event);
        }
       
        return "eventEdit";
    }
View Full Code Here

TOP

Related Classes of org.spw.model.Event

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.