Package org.jitterbit.integration.data.entity.schedule

Examples of org.jitterbit.integration.data.entity.schedule.ScheduleDuration


    /*
     * TODO: This method is used instead of getDuration(Calendar, Calendar) until we have the
     * timezone functinality up and running properly.
     */
    public ScheduleDuration getDuration() {
        ScheduleDuration duration = new ScheduleDuration();
        Date start = getDateFromInputField(startDateField);
        Date end = endDateActivator.isSelected() ? getDateFromInputField(endDateField) : null;
        duration.setDuration(start, end);
        return duration;
    }
View Full Code Here


     * @return a <code>ScheduleDuration</code> object, the properties of which are determined by
     *         the current values of the input fields in this panel; or <code>null</code> if the
     *         current input fields has invalid values.
     */
    public ScheduleDuration getDuration(Calendar startTimeOfDay, Calendar endTimeOfDay) {
        ScheduleDuration duration = new ScheduleDuration();
        Date start = getPointInTime(startDateField, startTimeOfDay).getTime();
        Date end = null;
        if (endDateActivator.isSelected()) {
            end = getPointInTime(endDateField, endTimeOfDay).getTime();
        }
        duration.setDuration(start, end);
        return duration;
    }
View Full Code Here

     * Gets the <tt>ScheduleDuration</tt> object associated with this schedule.
     *
     * @return a <tt>ScheduleDuration</tt> object.
     */
    public ScheduleDuration getDuration() {
        return new ScheduleDuration(getData());
    }
View Full Code Here

     *            a <tt>ScheduleDuration</tt> object; cannot be null.
     * @throws NullPointerException
     *             if <tt>duration</tt> is null.
     */
    public void setDuration(ScheduleDuration duration) {
        ScheduleDuration old = getDuration();
        // Always append the data, even if the new duration is identical
        // to the old one. This is to make sure that the key-value pairs
        // get created in the case where this is the first time this method
        // is called and duration is the default duration.
        duration.appendToData(getData());
        if (!old.equals(duration)) {
            firePropertyChange(DURATION_PROPERTY, old, duration);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.schedule.ScheduleDuration

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.