// Path: core/src/main/java/com/premiumminds/webapp/wicket/bootstrap/SpecialDate.java
// public final class SpecialDate implements Serializable {
// 	private static final long serialVersionUID = 1L;
// 	
// 	private Date dt;
// 	private String cssClass, tooltip;
// 
// 	public SpecialDate(Date dt, String cssClass, String tooltip) {
// 		this.dt = dt;
// 		this.cssClass = cssClass;
// 		this.tooltip = tooltip;
// 	}
// 	public Date getDt() {
// 		return dt;
// 	}
// 	public String getCssClass() {
// 		return cssClass;
// 	}
// 	public String getTooltip() {
// 		return tooltip;
// 	}
// }


import org.apache.wicket.request.resource.ResourceReference;
import com.premiumminds.webapp.wicket.bootstrap.SpecialDate;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Collection;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.head.CssReferenceHeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.markup.head.OnDomReadyHeaderItem;
import org.apache.wicket.request.resource.CssResourceReference;
import org.apache.wicket.request.resource.JavaScriptResourceReference;
/**
 * Copyright (C) 2016 Premium Minds.
 *
 * This file is part of pm-wicket-utils.
 *
 * pm-wicket-utils is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any
 * later version.
 *
 * pm-wicket-utils is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with pm-wicket-utils. If not, see <http://www.gnu.org/licenses/>.
 */
package com.premiumminds.webapp.wicket.bootstrap.datepicker;


public class BootstrapDatePickerBehaviour extends Behavior {
	private static final long serialVersionUID = 6150624915791893034L;

	private static final ResourceReference DATE_PICKER_CSS = new CssResourceReference(BootstrapDatePickerBehaviour.class, "bootstrap-datepicker.css");
	
	private static final ResourceReference DATE_PICKER_JAVASCRIPT = new JavaScriptResourceReference(BootstrapDatePickerBehaviour.class, "bootstrap-datepicker.js");
	private static final ResourceReference DATE_PICKER_EXTENSION_JAVASCRIPT = new JavaScriptResourceReference(BootstrapDatePickerBehaviour.class, "bootstrap-datepicker-extension.js");
	
	@Override
	public void onConfigure(Component component) {
		super.onConfigure(component);
		
		component.setOutputMarkupId(true);
	}
	
	@Override
	public void renderHead(Component component, IHeaderResponse response) {
		super.renderHead(component, response);
// Path: core/src/main/java/com/premiumminds/webapp/wicket/bootstrap/SpecialDate.java
// public final class SpecialDate implements Serializable {
// 	private static final long serialVersionUID = 1L;
// 	
// 	private Date dt;
// 	private String cssClass, tooltip;
// 
// 	public SpecialDate(Date dt, String cssClass, String tooltip) {
// 		this.dt = dt;
// 		this.cssClass = cssClass;
// 		this.tooltip = tooltip;
// 	}
// 	public Date getDt() {
// 		return dt;
// 	}
// 	public String getCssClass() {
// 		return cssClass;
// 	}
// 	public String getTooltip() {
// 		return tooltip;
// 	}
// }


// Path: core/src/main/java/com/premiumminds/webapp/wicket/bootstrap/datepicker/BootstrapDatePickerBehaviour.java
import org.apache.wicket.request.resource.ResourceReference;
import com.premiumminds.webapp.wicket.bootstrap.SpecialDate;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Collection;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.head.CssReferenceHeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.markup.head.OnDomReadyHeaderItem;
import org.apache.wicket.request.resource.CssResourceReference;
import org.apache.wicket.request.resource.JavaScriptResourceReference;

/**
 * Copyright (C) 2016 Premium Minds.
 *
 * This file is part of pm-wicket-utils.
 *
 * pm-wicket-utils is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any
 * later version.
 *
 * pm-wicket-utils is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with pm-wicket-utils. If not, see <http://www.gnu.org/licenses/>.
 */
package com.premiumminds.webapp.wicket.bootstrap.datepicker;


public class BootstrapDatePickerBehaviour extends Behavior {
	private static final long serialVersionUID = 6150624915791893034L;

	private static final ResourceReference DATE_PICKER_CSS = new CssResourceReference(BootstrapDatePickerBehaviour.class, "bootstrap-datepicker.css");
	
	private static final ResourceReference DATE_PICKER_JAVASCRIPT = new JavaScriptResourceReference(BootstrapDatePickerBehaviour.class, "bootstrap-datepicker.js");
	private static final ResourceReference DATE_PICKER_EXTENSION_JAVASCRIPT = new JavaScriptResourceReference(BootstrapDatePickerBehaviour.class, "bootstrap-datepicker-extension.js");
	
	@Override
	public void onConfigure(Component component) {
		super.onConfigure(component);
		
		component.setOutputMarkupId(true);
	}
	
	@Override
	public void renderHead(Component component, IHeaderResponse response) {
		super.renderHead(component, response);
		Collection<SpecialDate> specialDates = getSpecialDates();