
org.wicketstuff.jquery.ui.calendar6.CalendarModel Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wicketstuff.jquery.ui.calendar6;
import java.time.LocalDate;
import java.util.List;
import org.apache.wicket.model.LoadableDetachableModel;
/**
* Base class for implementing the list model of {@link CalendarEvent} to be retrieved.
* {@link Calendar} widget takes those model in constructor; the inheriting class should be able to {@link #load()} events depending on {@link #getStart()} and {@link #getEnd()} dates.
*
* @author Sebastien Briquet - sebfz1
*
*/
public abstract class CalendarModel extends LoadableDetachableModel>
{
private static final long serialVersionUID = 1L;
private LocalDate start;
private LocalDate end;
/**
* Gets the start date, used to {@link #load()} {@link CalendarEvent}{@code s}
* @return the start date
*/
public LocalDate getStart()
{
return this.start;
}
/**
* Sets the start date.
* @param date the start date
*/
public void setStart(LocalDate date)
{
this.start = date;
}
/**
* Gets the end date, used to {@link #load()} {@link CalendarEvent}{@code s}
* @return the start date
*/
public LocalDate getEnd()
{
return this.end;
}
/**
* Gets the end date.
* @param date the start date
*/
public void setEnd(LocalDate date)
{
this.end = date;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy