Package org.apache.myfaces.custom.schedule.model

Examples of org.apache.myfaces.custom.schedule.model.SimpleScheduleModel.refresh()


        appointment.setSubtitle(appointmentLocation == null ? ""
                : appointmentLocation);
        appointment.setDescription(appointmentComments == null ? ""
                : appointmentComments);
        model.addEntry(appointment);
        model.refresh();
        appointmentStart = new Date();
        appointmentEnd = new Date();
        appointmentTitle = "";
        appointmentLocation = "";
        appointmentComments = "";
View Full Code Here


            return;
        SimpleScheduleModel model = (SimpleScheduleModel) scheduleBean
                .getModel();
        model.removeEntry(model.getSelectedEntry());
        model.setSelectedEntry(null);
        model.refresh();
    }

    /**
     * This method is called when the 'add holiday' button is pressed.
     *
 
View Full Code Here

        SimpleScheduleModel model = (SimpleScheduleModel) scheduleBean
                .getModel();
        if (holidayName != null && holidayName.length() < 1)
            holidayName = null;
        model.setHoliday(holidayDate, holidayName);
        model.refresh();
        holidayDate = new Date();
        holidayName = "";
    }
}
View Full Code Here

            SimpleScheduleModel ssm = (SimpleScheduleModel) model;
            Calendar calendar = GregorianCalendar.getInstance();
            calendar.setTime(ssm.getSelectedDate());
            calendar.set(Calendar.DAY_OF_WEEK, Calendar.THURSDAY);
            ssm.setHoliday(calendar.getTime(), "Poeperkesdag");
            ssm.refresh();
        }
    }

    public void addSampleEntries(ActionEvent event)
    {
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.