![JAR search and dependency download from the Maven repository](/logo.png)
com.extjs.gxt.ui.client.widget.form.HiddenField Maven / Gradle / Ivy
/*
* Sencha GXT 2.3.1a - Sencha for GWT
* Copyright(c) 2007-2013, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.extjs.gxt.ui.client.widget.form;
import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.Element;
/**
* A basic hidden field for storing hidden values in forms that need to be
* passed in the form submit.
*
* @param the data type
*/
public class HiddenField extends Field {
@Override
public void clearInvalid() {
}
@Override
public void markInvalid(String msg) {
}
@Override
public boolean validate(boolean silent) {
return true;
}
@Override
protected void onRender(Element parent, int index) {
if (el() == null) {
setElement((Element) Document.get().createHiddenInputElement().cast(), parent, index);
}
super.onRender(parent, index);
}
@Override
protected boolean validateValue(String value) {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy