org.wicketstuff.egrid.column.RequiredEditableTextFieldColumn 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
package org.wicketstuff.egrid.column;
import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.model.IModel;
/**
*
* @author Nadeem Mohammad
*
*/
public class RequiredEditableTextFieldColumn extends EditableTextFieldPropertyColumn
{
private static final long serialVersionUID = 1L;
public RequiredEditableTextFieldColumn(final IModel displayModel, final String propertyExpression)
{
super(displayModel, propertyExpression);
}
public RequiredEditableTextFieldColumn(final IModel displayModel, final String propertyExpression, final boolean isEditable)
{
super(displayModel, propertyExpression, isEditable);
}
@Override
protected void addBehaviors(final FormComponent editorComponent)
{
editorComponent.setRequired(true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy