equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
58 public static String endPre() { |
58 public static String endPre() { |
59 return endTag("pre"); |
59 return endTag("pre"); |
60 } |
60 } |
61 |
61 |
62 public static String startTable() { |
62 public static String startTable() { |
63 return startTag("table " + STYLE); |
63 return startTag("table border=\"1\" padding=\"1\" cellspacing=\"0\" " + STYLE); |
64 } |
64 } |
65 |
65 |
66 public static String endTable() { |
66 public static String endTable() { |
67 return endTag("table"); |
67 return endTag("table"); |
68 } |
68 } |
69 |
69 |
70 public static String startTr() { |
70 public static String startTr() { |
71 return startTag("tr"); |
71 return "\t" + startTag("tr") + "\n"; |
72 } |
72 } |
73 |
73 |
74 public static String endTr() { |
74 public static String endTr() { |
75 return endTag("tr"); |
75 return "\t" + endTag("tr") + "\n"; |
76 } |
76 } |
77 |
77 |
78 public static String startTd() { |
78 public static String startTd() { |
79 return startTag("td"); |
79 return "\t\t" + startTag("td"); |
80 } |
80 } |
81 |
81 |
82 public static String endTd() { |
82 public static String endTd() { |
83 return endTag("td"); |
83 return endTag("td") + "\n"; |
84 } |
84 } |
85 |
85 |
86 public static String startTag(String tag) { |
86 public static String startTag(String tag) { |
87 return "<" + tag + ">"; |
87 return "<" + tag + ">"; |
88 } |
88 } |
90 public static String endTag(String tag) { |
90 public static String endTag(String tag) { |
91 return "</" + tag + ">"; |
91 return "</" + tag + ">"; |
92 } |
92 } |
93 |
93 |
94 public static String anchorName(String name, String text) { |
94 public static String anchorName(String name, String text) { |
95 return "<a name=" + name + ">" + text + "</a>"; |
95 return "<a name=" + name + "><hr/>" + text + "</a>"; |
96 } |
96 } |
97 |
97 |
98 public static String anchorLink(String file, String anchorName, |
98 public static String anchorLink(String file, String anchorName, |
99 String text) { |
99 String text) { |
100 return "<a href=" + file + "#" + anchorName + ">" + text + "</a>"; |
100 return "<a href=" + file + "#" + anchorName + ">" + text + "</a>"; |