01: package com.salmonllc.jsp.tags;
02:
03: /////////////////////////
04: //$Archive: /SOFIA/SourceCode/com/salmonllc/jsp/tags/ValidatorRegExpTag.java $
05: //$Author: Dan $
06: //$Revision: 1 $
07: //$Modtime: 10/29/03 10:46a $
08: /////////////////////////
09:
10: import com.salmonllc.html.HtmlComponent;
11:
12: /**
13: * @author Administrator
14: *
15: * To change this generated comment edit the template variable "typecomment":
16: * Window>Preferences>Java>Templates.
17: * To enable and disable the creation of type comments go to
18: * Window>Preferences>Java>Code Generation.
19: */
20: public class ValidatorRegExpTag extends BaseEmptyTag {
21:
22: public class Attributes {
23: public String expression;
24: public String message;
25: public String focuscomp;
26: public String messagelocalekey;
27: }
28:
29: Attributes _att = new Attributes();
30:
31: /**
32: * @see com.salmonllc.jsp.tags.BaseEmptyTag#createComponent()
33: */
34: public HtmlComponent createComponent() {
35: getHelper().getValidatorTag().addRegExpRule(_att);
36: _att = new Attributes();
37: return null;
38: }
39:
40: /**
41: * This method is part of the JSP tag lib specification.
42: */
43:
44: public void release() {
45: super .release();
46: _att = new Attributes();
47: }
48:
49: /**
50: * Sets the expression.
51: * @param expression The expression to set
52: */
53: public void setExpression(String expression) {
54: _att.expression = expression;
55: }
56:
57: /**
58: * Sets the focuscomp.
59: * @param focuscomp The focuscomp to set
60: */
61: public void setFocuscomp(String focuscomp) {
62: _att.focuscomp = focuscomp;
63: }
64:
65: /**
66: * Sets the message.
67: * @param message The message to set
68: */
69: public void setMessage(String message) {
70: _att.message = message;
71: }
72:
73: /**
74: * Sets the messagelocalekey.
75: * @param messagelocalekey The messagelocalekey to set
76: */
77: public void setMessagelocalekey(String messagelocalekey) {
78: _att.messagelocalekey = messagelocalekey;
79: }
80: }
|