code: function() {
             
              var hex = this.get(this.OPT.HEX),
                  l   = hex.length,
                  c,i,rgb;
  
              // support #369 -> #336699 shorthand
              if (l === 3) {
                  c = hex.split("");
                  for (i=0; i<l; i=i+1) {
                      c[i] = c[i] + c[i];
                  }
  
                  hex = c.join("");
              }
  
              if (hex.length !== 6) {
                  this.logger.log(this.get(this.TXT.ILLEGAL_HEX), "error");
                  return false;
              }
  
              rgb = Color.hex2rgb(hex);
  
              this.logger.log(sub("Hex value set to {hex} ({rgb})", {
                      hex: hex, rgb: rgb
                  }));
  
              this.setValue(rgb);
          }
docs: Parses the hex string to normalize shorthand values, converts
  the hex value to rgb and updates the rgb attribute (which
  updates the state for all of the other values)
  method _updateHex
  @protected