blob: 02fbe3dbda48b9cae414c550a620f69693fcd579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
//
// System.Web.UI.TemplateBuilder
//
// Authors:
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// (C) 2003 Ximian, Inc. (http://www.ximian.com)
//
using System;
using System.Collections;
namespace System.Web.UI
{
public class TemplateBuilder : ControlBuilder, ITemplate
{
string text;
public TemplateBuilder ()
{
}
public virtual string Text {
get { return text; }
set { text = value; }
}
public override void Init (TemplateParser parser,
ControlBuilder parentBuilder,
Type type,
string tagName,
string ID,
IDictionary attribs)
{
// enough?
base.Init (parser, parentBuilder, type, tagName, ID, attribs);
}
public virtual void InstantiateIn (Control container)
{
CreateChildren (container);
}
public override bool NeedsTagInnerText ()
{
return false;
}
public override void SetTagInnerText (string text)
{
this.text = text;
}
}
}
|