All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.egrid.column.EditableTextFieldCellPanel Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
package org.wicketstuff.egrid.column;

import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.markup.html.form.TextField;
/**
 * 
 * @author Nadeem Mohammad
 *
 */
public class EditableTextFieldCellPanel extends EditableCellPanel
{

	private static final long serialVersionUID = 1L;

	public EditableTextFieldCellPanel(String id, PropertyColumn column)
	{
		super(id);
		
		TextField field = new TextField("textfield");
		field.setOutputMarkupId(true);
		field.setLabel(column.getDisplayModel());
		addBehaviors(field);
		add(field);	
	}

	@SuppressWarnings("unchecked")
	public FormComponent getEditableComponent()
	{
		return (FormComponent) get("textfield");
	}

	protected void addBehaviors(FormComponent formComponent)
	{
		
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy