com.cubeia.games.poker.admin.wicket.components.timepicker.TimePickerBehaviour.java Source code

Java tutorial

Introduction

Here is the source code for com.cubeia.games.poker.admin.wicket.components.timepicker.TimePickerBehaviour.java

Source

/**
 * Copyright (C) 2012 Cubeia Ltd <info@cubeia.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.cubeia.games.poker.admin.wicket.components.timepicker;

import org.apache.wicket.request.resource.CssResourceReference;
import org.apache.wicket.request.resource.JavaScriptResourceReference;

import com.googlecode.wicket.jquery.ui.JQueryBehavior;
import com.googlecode.wicket.jquery.ui.Options;

public class TimePickerBehaviour extends JQueryBehavior {

    private static final long serialVersionUID = 1L;

    public TimePickerBehaviour(String selector, Options options) {
        super(selector, "timepicker", options);
        this.add(new JavaScriptResourceReference(TimePickerBehaviour.class, "jquery.timepicker.js"));
        this.add(new CssResourceReference(TimePickerBehaviour.class, "jquery.timepicker.css"));
    }
}