Package org.primefaces.event

Examples of org.primefaces.event.DateSelectEvent


      SimpleDateFormat format = new SimpleDateFormat(calendar.getPattern(), locale);
      format.setTimeZone(calendar.calculateTimeZone());
     
      convertedValue = format.parse(submittedValue);
     
      calendar.queueEvent(new DateSelectEvent(calendar, convertedValue));    //Queue a date select event for any listeners
     
      return convertedValue;

    } catch (ParseException e) {
      throw new ConverterException(e);
View Full Code Here


        super.validate(context);
      
        if(isValid()) {
            for(Iterator<String> customEventIter = customEvents.keySet().iterator(); customEventIter.hasNext();) {
                AjaxBehaviorEvent behaviorEvent = customEvents.get(customEventIter.next());
                DateSelectEvent dateSelectEvent = new DateSelectEvent(this, behaviorEvent.getBehavior(), (Date) getValue());

                if(behaviorEvent.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES)) {
                    dateSelectEvent.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
                }

                super.queueEvent(dateSelectEvent);
            }
        }
View Full Code Here

        schedule.queueEvent(new ScheduleEntrySelectEvent(schedule, selectedEvent));
      }
      //Date Select
      else if(params.containsKey(selectedDateParam)) {
        String dateAsString = params.get(selectedDateParam);
        schedule.queueEvent(new DateSelectEvent(component, new Date(Long.valueOf(dateAsString))));
      }
      //Event dragdrop or resize
      else if(params.containsKey(changedEventParam)) {
        String eventId = params.get(changedEventParam);
        ScheduleEvent changedEvent = model.getEvent(eventId);
View Full Code Here

            AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event;
            FacesEvent wrapperEvent = null;

            if(eventName.equals("dateSelect")) {
                Date selectedDate = new Date(Long.valueOf(params.get(clientId + "_selectedDate")));
                DateSelectEvent dateSelectEvent = new DateSelectEvent(this, behaviorEvent.getBehavior(), selectedDate);
                dateSelectEvent.setPhaseId(behaviorEvent.getPhaseId());

                wrapperEvent = dateSelectEvent;
            }
            else if(eventName.equals("eventSelect")) {
                String selectedEventId = params.get(clientId + "_selectedEventId");
View Full Code Here

        schedule.queueEvent(new ScheduleEntrySelectEvent(schedule, selectedEvent));
      }
      //Date Select
      else if(params.containsKey(selectedDateParam)) {
        String dateAsString = params.get(selectedDateParam);
        schedule.queueEvent(new DateSelectEvent(component, new Date(Long.valueOf(dateAsString))));
      }
      //Event dragdrop or resize
      else if(params.containsKey(changedEventParam)) {
        String eventId = params.get(changedEventParam);
        ScheduleEvent changedEvent = model.getEvent(eventId);
View Full Code Here

      if(calendar.getSelection().equalsIgnoreCase("single")) {
        Date convertedValue;
       
        convertedValue = format.parse(submittedValue);
       
        calendar.queueEvent(new DateSelectEvent(calendar, convertedValue));    //Queue a date select event for any listeners
       
        return convertedValue;
      }
      else if(calendar.getSelection().equalsIgnoreCase("multiple")) {
        String[] datesAsString = (submittedValue).split(",");
View Full Code Here

TOP

Related Classes of org.primefaces.event.DateSelectEvent

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.