7b441894ce8baff9986e6509bfb156d3c3f0bd06.svn-base 971 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Ext JS Library 2.0 Copyright(c) 2006-2007, Ext JS, LLC. licensing@extjs.com
  3. *
  4. * http://extjs.com/license
  5. */
  6. /**
  7. * @class Ext.form.Hidden
  8. * @extends Ext.form.Field A basic hidden field for storing hidden values in
  9. * forms that need to be passed in the form submit.
  10. * @constructor Create a new Hidden field.
  11. * @param {Object}
  12. * config Configuration options
  13. */
  14. Ext.form.Hidden = Ext.extend(Ext.form.Field, {
  15. // private
  16. inputType : 'hidden',
  17. // private
  18. onRender : function() {
  19. Ext.form.Hidden.superclass.onRender.apply(this, arguments);
  20. },
  21. // private
  22. initEvents : function() {
  23. this.originalValue = this.getValue();
  24. },
  25. // These are all private overrides
  26. setSize : Ext.emptyFn,
  27. setWidth : Ext.emptyFn,
  28. setHeight : Ext.emptyFn,
  29. setPosition : Ext.emptyFn,
  30. setPagePosition : Ext.emptyFn,
  31. markInvalid : Ext.emptyFn,
  32. clearInvalid : Ext.emptyFn
  33. });
  34. Ext.reg('hidden', Ext.form.Hidden);