X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FUniValidator.js;fp=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FUniValidator.js;h=18aa5166163197b3c7f36fe20ea2d4b2682914a7;hb=4231d40261fef32ce4570a6bbad0d35df44e8baf;hp=0000000000000000000000000000000000000000;hpb=c07eb2c5794833bd0241000d6844d783fe10cb82;p=jalview.git diff --git a/site/j2s/com/stevesoft/pat/UniValidator.js b/site/j2s/com/stevesoft/pat/UniValidator.js new file mode 100644 index 0000000..18aa516 --- /dev/null +++ b/site/j2s/com/stevesoft/pat/UniValidator.js @@ -0,0 +1,12 @@ +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Validator"], "com.stevesoft.pat.UniValidator", ["com.stevesoft.pat.patInt"], function () { +c$ = Clazz.declareType (com.stevesoft.pat, "UniValidator", com.stevesoft.pat.Validator); +Clazz.overrideMethod (c$, "minChars", +function () { +return new com.stevesoft.pat.patInt (1); +}); +Clazz.overrideMethod (c$, "maxChars", +function () { +return new com.stevesoft.pat.patInt (1); +}); +});