myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yogesh Chaudhari" <its...@gmail.com>
Subject Schedule Component
Date Thu, 10 May 2007 11:05:02 GMT
How to get the event entry that was clicked in onMouseClickAction?

   public void onMouseClickAction(ScheduleMouseEvent event)
     {
         StringBuffer buffer = new StringBuffer();
         switch (event.getEventType())
        {
       case ScheduleMouseEvent.SCHEDULE_BODY_CLICKED:
           buffer.append("schedule body was clicked: ");
             buffer.append(event.getClickedTime());
             break;
         case ScheduleMouseEvent.SCHEDULE_HEADER_CLICKED:
             buffer.append("schedule header was clicked: ");
             buffer.append(event.getClickedDate());
            break;
         case ScheduleMouseEvent.SCHEDULE_ENTRY_CLICKED:
            buffer.append("schedule entry was clicked.");
             break;
         default:
             buffer.append("no schedule mouse events registered");
         }
         mouseActionText = buffer.toString();
     }


Thanks,
Yogesh

Mime
View raw message