01: /*
02: * Created on Jun 2, 2004
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package org.xdev.base.core.compiler.type;
08:
09: import java.util.HashMap;
10:
11: import org.xdev.base.core.IPage;
12: import org.xdev.base.core.compiler.AXCompiler;
13: import org.xdev.base.xssl.XLogger;
14: import org.xdev.base.xssl.XSSLAction;
15: import org.xdev.base.xssl.XSSLComponent;
16: import org.xdev.base.xssl.XText;
17:
18: /**
19: * @author AYegorov
20: *
21: * TODO To change the template for this generated type comment go to
22: * Window - Preferences - Java - Code Style - Code Templates
23: */
24: public class CommentType extends TextType {
25:
26: /**
27: * @param type
28: * @param typeName
29: */
30: public CommentType(Class type, String typeName) {
31: super (type, typeName);
32: // TODO Auto-generated constructor stub
33: }
34:
35: /**
36: * @param type
37: * @param typeName
38: * @param validators
39: */
40: public CommentType(Class type, String typeName, Class[] validators) {
41: super (type, typeName, validators);
42: // TODO Auto-generated constructor stub
43: }
44:
45: public CommentType(AbstractType type, Class[] validators) {
46: super (type, validators);
47: }
48:
49: public XSSLComponent loadComponent(String id, HashMap properties,
50: Object elm, IPage page, XSSLAction template,
51: XSSLComponent parent, String path) throws Exception {
52: XLogger component = new XLogger(AXCompiler.COMMENT, properties);
53:
54: component.setProperty(XLogger.MESSAGE, "Comment:");
55:
56: XText txt = (XText) super.loadComponent(id, properties, elm,
57: page, template, parent, path);
58:
59: component.addElement(txt);
60:
61: return component;
62: }
63: }
|