Package com.wiquery.plugins.demo.watermark

Source Code of com.wiquery.plugins.demo.watermark.WatermarkPanel

package com.wiquery.plugins.demo.watermark;

import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.Panel;

import com.wiquery.plugin.watermark.TextFieldWatermarkBehaviour;

/**
*
* @author Ernesto Reinaldo Barreiro (reiern70@gmail.com)
*
*/
public class WatermarkPanel extends Panel {

  private static final long serialVersionUID = 1L;
    
    /**
   * Constructor that is invoked when page is invoked without a session.
   *
   * @param parameters
   *            Page parameters
   */
    public WatermarkPanel(String id) {
      super(id);
     
      Form<WatermarkPanel> demo1 = new Form<WatermarkPanel>("demo1");
      add(demo1);
     
      demo1.add(new TextField<String>("country").add(
          new TextFieldWatermarkBehaviour("Leave blank for USA")
          .setUseNative(false)));
      
    }
    
}
TOP

Related Classes of com.wiquery.plugins.demo.watermark.WatermarkPanel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.