org.wicketstuff.egrid.column.EditableTextFieldCellPanel Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of wicketstuff-editable-grid Show documentation
                Show all versions of wicketstuff-editable-grid Show documentation
Add/Edit/Delete functionality all at once
                
             The 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