48
48
* or {@link javax.lang.model.element.Element "language model elements"}.
49
49
* The usage is made explicit when it is not clear from the surrounding context.
50
50
*
51
+ * @apiNote
52
+ * The stylized use of {@code editor-fold} comments and line comments (beginning {@code //})
53
+ * is to support extracting details of declarations with external tools. Edit with care!
54
+ *
51
55
* @see <a href="https://html.spec.whatwg.org/#classes">WhatWG: {@code class} attribute</a>
52
56
*/
53
57
public enum HtmlStyle {
54
58
55
- /**
56
- * The class of the {@code div} element containing a snippet element.
57
- */
58
- snippetContainer ,
59
-
60
- /**
61
- * The class of the {@code a} element to copy snippet content to the clipboard.
62
- */
63
- snippetCopy ,
64
-
65
59
//<editor-fold desc="navigation bar">
66
60
//
67
61
// The following constants are used for the main navigation bar that appears in the
@@ -324,17 +318,6 @@ public enum HtmlStyle {
324
318
*/
325
319
propertyDetails ,
326
320
327
- /**
328
- * The class for the list containing the {@code @see} tags of an element.
329
- */
330
- seeList ,
331
-
332
- /**
333
- * The class for the list containing the {@code @see} tags of an element
334
- * when some of the tags have longer labels.
335
- */
336
- seeListLong ,
337
-
338
321
/**
339
322
* The class for a {@code section} element containing details of the
340
323
* serialized form of an element, on the "Serialized Form" page.
@@ -391,6 +374,17 @@ public enum HtmlStyle {
391
374
*/
392
375
previewLabel ,
393
376
377
+ /**
378
+ * The class for the list containing the {@code @see} tags of an element.
379
+ */
380
+ seeList ,
381
+
382
+ /**
383
+ * The class for the list containing the {@code @see} tags of an element
384
+ * when some of the tags have longer labels.
385
+ */
386
+ seeListLong ,
387
+
394
388
//</editor-fold>
395
389
396
390
//<editor-fold desc="tables">
@@ -844,6 +838,44 @@ public enum HtmlStyle {
844
838
845
839
//</editor-fold>
846
840
841
+ //<editor-fold desc="snippets">
842
+ //
843
+ // The following constants are used for the contents of snippets.
844
+ // In addition, the translation of a snippet may use the class
845
+ // {@code language-LANG} where LANG is either specified explicitly
846
+ // by the "lang" attribute in a snippet tag, or can be inferred
847
+ // from the kind of an external snippet.
848
+
849
+ /**
850
+ * The class of the {@code pre} element presenting a snippet.
851
+ */
852
+ snippet ,
853
+
854
+ /**
855
+ * The class of the {@code div} element containing a snippet element.
856
+ */
857
+ snippetContainer ,
858
+
859
+ /**
860
+ * The class of the UI element to copy snippet content to the clipboard.
861
+ */
862
+ snippetCopy ,
863
+
864
+ /**
865
+ * The class of text highlighted with the type {@code bold}.
866
+ */
867
+ bold ,
868
+
869
+ /**
870
+ * The class of text highlighted with the type {@code italic}.
871
+ */
872
+ italic ,
873
+
874
+ /**
875
+ * The class of text highlighted with the type {@code highlighted}.
876
+ */
877
+ highlighted ,
878
+
847
879
//<editor-fold desc="miscellaneous">
848
880
//
849
881
// The following constants are used in various places across a variety of pages.
@@ -908,7 +940,8 @@ public enum HtmlStyle {
908
940
inheritedList ,
909
941
910
942
/**
911
- * The class of an element that acts as a notification for an invalid tag.
943
+ * The class of an element that acts as a notification for an invalid tag
944
+ * or other invalid items.
912
945
*/
913
946
invalidTag ,
914
947
@@ -923,7 +956,7 @@ public enum HtmlStyle {
923
956
memberNameLink ,
924
957
925
958
/**
926
- * The class for a {@code dl} element containing serial UID information in
959
+ * The class of a {@code dl} element containing serial UID information in
927
960
* the serialized form page.
928
961
*/
929
962
nameValue ,
@@ -964,11 +997,6 @@ public enum HtmlStyle {
964
997
*/
965
998
sourceLineNo ,
966
999
967
- /**
968
- * The class of the {@code pre} element presenting a snippet.
969
- */
970
- snippet ,
971
-
972
1000
/**
973
1001
* The class of an {@code a} element for a link to a class or interface.
974
1002
*/
1 commit comments
openjdk-notifier[bot] commentedon Jan 31, 2022
Review
Issues