NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Render.BootstrapPageRender Class Referenceabstract
Inheritance diagram for Ntp.Analyzer.Render.BootstrapPageRender:
Collaboration diagram for Ntp.Analyzer.Render.BootstrapPageRender:

Public Member Functions

override string Render ()
 
override string RenderFooter ()
 
override string RenderHead ()
 
- Public Member Functions inherited from Ntp.Analyzer.Render.HtmlObjectRender
void Add (IHtmlObject child)
 

Protected Member Functions

 BootstrapPageRender (Uri webPath, string title)
 
abstract string RenderPageBody ()
 
abstract string RenderPageFooter ()
 
abstract string RenderPageHead ()
 
- Protected Member Functions inherited from Ntp.Analyzer.Render.HtmlObjectRender
 HtmlObjectRender (Uri webPath)
 

Properties

virtual string Title [get]
 
- Properties inherited from Ntp.Analyzer.Render.HtmlObjectRender
Uri WebPath [get]
 
- Properties inherited from Ntp.Analyzer.Render.IHtmlObject
IEnumerable< IHtmlObjectChildren [get]
 
Uri WebPath [get]
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Render.HtmlObjectRender
IEnumerable< IHtmlObjectChildren => children.ToArray()
 

Detailed Description

Definition at line 27 of file BootstrapPageRender.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Render.BootstrapPageRender.BootstrapPageRender ( Uri  webPath,
string  title 
)
inlineprotected

Definition at line 29 of file BootstrapPageRender.cs.

30  : base(webPath)
31  {
32  Title = title;
33  }

Member Function Documentation

override string Ntp.Analyzer.Render.BootstrapPageRender.Render ( )
inline

Implements Ntp.Analyzer.Render.IHtmlObject.

Definition at line 37 of file BootstrapPageRender.cs.

38  {
39  var builder = new StringBuilder();
40 
41  builder.AppendLine("<body>");
42  builder.Append(RenderPageBody());
43 
44  return builder.ToString();
45  }
override string Ntp.Analyzer.Render.BootstrapPageRender.RenderFooter ( )
inlinevirtual

Implements Ntp.Analyzer.Render.HtmlObjectRender.

Definition at line 47 of file BootstrapPageRender.cs.

48  {
49  var builder = new StringBuilder();
50 
51  builder.Append(RenderPageFooter());
52 
53  builder.AppendLine(this.AppendWithWebpath(
54  @" <script src=""{0}{1}""></script>",
55  "js/jquery.js"));
56 
57  builder.AppendLine(this.AppendWithWebpath(
58  @" <script src=""{0}{1}""></script>",
59  "js/bootstrap.min.js"));
60 
61  builder.AppendLine("</body>");
62  builder.AppendLine("</html>");
63 
64  return builder.ToString();
65  }
override string Ntp.Analyzer.Render.BootstrapPageRender.RenderHead ( )
inlinevirtual

Implements Ntp.Analyzer.Render.HtmlObjectRender.

Definition at line 67 of file BootstrapPageRender.cs.

68  {
69  var builder = new StringBuilder();
70 
71  builder.AppendLine("<!DOCTYPE html>");
72  builder.AppendLine(@"<html lang=""en""><head>");
73  builder.AppendLine(@" <meta charset=""UTF-8"">");
74  builder.AppendLine(@" <meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">");
75 
76  builder.Append(" <title>");
77  builder.Append(Title);
78  builder.AppendLine("</title>");
79 
80  builder.AppendLine(this.AppendWithWebpath(
81  @" <link href=""{0}{1}"" rel=""stylesheet"" media=""screen"">",
82  "css/bootstrap.min.css"));
83 
84  builder.Append(RenderPageHead());
85 
86  builder.AppendLine("</head>");
87 
88  return builder.ToString();
89  }

Property Documentation

virtual string Ntp.Analyzer.Render.BootstrapPageRender.Title
getprotected

Definition at line 35 of file BootstrapPageRender.cs.


The documentation for this class was generated from the following file: