code: function(f, isValid) {
          var me = this,
              msg;
  
          if (!me.monitor) {
              return false;
          }
          msg = f.getErrors()[0];
          if (msg) {
              me.errors.add(f.id, {field:f, msg:msg});
          } else {
              me.errors.removeAtKey(f.id);
          }
          this.updateErrorList();
          if (me.errors.getCount() > 0) {
              if (me.statusBar.getText() !== me.showText) {
                  me.statusBar.setStatus({
                      text: me.showText,
                      iconCls: me.errorIconCls
                  });
              }
          } else {
              me.statusBar.clearStatus().setIcon(me.validIconCls);
          }
      }
docs: private