/**
 * Funções para esconder/mostrar um ExtField totalmente, pois a função hide/show 
 * do próprio Field escondia apenas a área do texto.
 * Retirado do forum da Ext. link: http://extjs.com/forum/showthread.php?t=22551&highlight=label+hide
 * @author: JEAN/ROSE
 * @date: 10/09/2008
 * @OS: 6428-016
 * @Inspeção: 
 */
Ext.override(Ext.form.Field, {
    showContainer: function() {
        this.enable();
        this.show();
        this.getEl().up('.x-form-item').setDisplayed(true); // show entire container and children (including label if applicable)
    },
    
    hideContainer: function() {
        this.disable(); // for validation
        this.hide();
        this.getEl().up('.x-form-item').setDisplayed(false); // hide container and children (including label if applicable)
    },
    
    setContainerVisible: function(visible) {
        if (visible) {
            this.showContainer();
        } else {
            this.hideContainer();
        }
        return this;
    }
});