+ LAST_CLICKED_DATE);
String lastClickedY = (String) parameters.get((String) schedule
.getClientId(context)
+ LAST_CLICKED_Y);
ScheduleMouseEvent mouseEvent = null;
if ((selectedEntryId != null) && (selectedEntryId.length() > 0))
{
ScheduleEntry entry = schedule.findEntry(selectedEntryId);
schedule.setSubmittedEntry(entry);
mouseEvent = new ScheduleMouseEvent(schedule,
ScheduleMouseEvent.SCHEDULE_ENTRY_CLICKED);
queueAction = true;
}
if (schedule.isSubmitOnClick())
{
schedule.resetMouseEvents();
if ((lastClickedY != null) && (lastClickedY.length() > 0))
{
//the body of the schedule was clicked
schedule
.setLastClickedDateAndTime(determineLastClickedDate(
schedule, lastClickedDateId, lastClickedY));
mouseEvent = new ScheduleMouseEvent(schedule,
ScheduleMouseEvent.SCHEDULE_BODY_CLICKED);
queueAction = true;
}
else if ((lastClickedDateId != null)
&& (lastClickedDateId.length() > 0))
{
//the header of the schedule was clicked
schedule
.setLastClickedDateAndTime(determineLastClickedDate(
schedule, lastClickedDateId, "0"));
mouseEvent = new ScheduleMouseEvent(schedule,
ScheduleMouseEvent.SCHEDULE_HEADER_CLICKED);
queueAction = true;
}
else if (mouseEvent == null)
{
//the form was posted without mouse events on the schedule
mouseEvent = new ScheduleMouseEvent(schedule,
ScheduleMouseEvent.SCHEDULE_NOTHING_CLICKED);
}
}
if (mouseEvent != null)