⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testpage.java

📁 Wicket一个开发Java Web应用程序框架。它使得开发web应用程序变得容易而轻松。 Wicket利用一个POJO data beans组件使得它可以与任何持久层技术相结合。
💻 JAVA
字号:
/* * 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.apache.wicket.properties;import org.apache.wicket.markup.html.WebPage;import org.apache.wicket.markup.html.basic.Label;import org.apache.wicket.markup.html.form.Form;import org.apache.wicket.markup.html.form.TextField;import org.apache.wicket.markup.html.panel.Panel;/** *  * @author Juergen Donnerstag */public class TestPage extends WebPage{	private static final long serialVersionUID = 1L;	/**	 * 	 * Construct.	 */	public TestPage()	{		add(new Label("label"));		Form form1 = new Form("form1");		add(form1);		form1.add(new MyTextField("text1", "input-1"));		form1.add(new MyTextField("text2", "input-2"));		form1.add(new MyTextField("text7", "input-3"));		Form form2 = new TestForm("form2");		add(form2);		Panel panel1 = new Panel("panel1");		form2.add(panel1);		panel1.add(new MyTextField("text3", "input-3"));		panel1.add(new MyTextField("text4", "input-4"));		Panel panel2 = new TestPanel("panel2");		form2.add(panel2);		panel2.add(new MyTextField("text5", "input-5"));		panel2.add(new MyTextField("text6", "input-6"));		panel2.add(new MyTextField("text8", "input-8"));		panel2.add(new MyTextField("text9", "input-9"));		panel2.add(new MyTextField("text10", "input-10"));		panel2.add(new MyTextField("text11", "input-11"));		panel2.add(new MyTextField("text12", "input-12"));	}	/**	 * 	 * @return xxx	 */	public MyTextField getText1()	{		return (MyTextField)get("form1:text1");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText2()	{		return (MyTextField)get("form1:text2");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText3()	{		return (MyTextField)get("form2:panel1:text3");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText4()	{		return (MyTextField)get("form2:panel1:text4");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText5()	{		return (MyTextField)get("form2:panel2:text5");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText6()	{		return (MyTextField)get("form2:panel2:text6");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText7()	{		return (MyTextField)get("form1:text7");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText8()	{		return (MyTextField)get("form2:panel2:text8");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText9()	{		return (MyTextField)get("form2:panel2:text9");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText10()	{		return (MyTextField)get("form2:panel2:text10");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText11()	{		return (MyTextField)get("form2:panel2:text11");	}	/**	 * 	 * @return xxx	 */	public MyTextField getText12()	{		return (MyTextField)get("form2:panel2:text12");	}	/**	 * 	 */	public static class MyTextField extends TextField	{		private static final long serialVersionUID = 1L;		private String input;		/**		 * Construct.		 * 		 * @param id		 * @param input		 */		public MyTextField(final String id, final String input)		{			super(id);			this.input = input;			setRequired(true);		}		/**		 * @see org.apache.wicket.markup.html.form.FormComponent#getInput()		 */		public String getInput()		{			return input;		}		/**		 * @param input		 */		public void setInput(String input)		{			this.input = input;		}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -