/** * Copyright 2011 the original author or authors. * * Licensed 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.bricket.plugin.galleriffic.web; import org.apache.wicket.markup.html.form.CheckBox; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.model.CompoundPropertyModel; import org.apache.wicket.model.IModel; /** * @author Ingo Renner * @author Henning Teek * */ public class GallerifficConfigFormfields extends Panel { /** * @param id * @param model */ public GallerifficConfigFormfields(String id, IModel<GallerifficConfig> model) { super(id, new CompoundPropertyModel<GallerifficConfig>(model.getObject())); } @Override protected void onInitialize() { super.onInitialize(); add(new CheckBox("defaultCss")); add(new CheckBox("enableTopPager")); add(new CheckBox("enableBottomPager")); add(new CheckBox("renderSSControls")); add(new CheckBox("renderNavControls")); add(new CheckBox("enableHistory")); add(new CheckBox("autoStart")); add(new CheckBox("syncTransitions")); add(new TextField<Integer>("delay").setRequired(true)); add(new TextField<Integer>("numThumbs").setRequired(true)); add(new TextField<Integer>("preloadAhead").setRequired(true)); add(new TextField<Integer>("maxPagesToShow").setRequired(true)); add(new TextField<Integer>("defaultTransitionDuration").setRequired(true)); } }