Class SBFReportEntry
java.lang.Object
megamek.common.strategicBattleSystems.SBFReportEntry
- All Implemented Interfaces:
Serializable,ReportEntry
- Direct Known Subclasses:
SBFFormationReportEntry,SBFInitiativeRollReportEntry,SBFPlayerNameReportEntry,SBFPublicReportEntry,SBFReportHeader,SBFRollReportEntry,SBFUnitReportEntry
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int data) Add the given int to the list of data that will be substituted for the <data> tags in the report.add(int data, boolean obscure) Add the given int to the list of data that will be substituted for the <data> tags in the report, and mark it as double-blind sensitive information ifobscureis true.Add the given String to the list of data that will be substituted for the <data> tags in the report.Add the given String to the list of data that will be substituted for the <data> tags in the report, and mark it as double-blind sensitive information ifobscureis true.addNL()Adds the result of the given roll to this ReportEntry.endSpace()Deprecated, for removal: This API element is subject to removal in a future version.indent()Indent the report.indent(int n) Indent the report n times.newLines(int count) noNL()protected Stringstatic voidsetupStylesheet(JTextPane pane) static voidsetupStylesheet(StyleSheet styleSheet) Deprecated, for removal: This API element is subject to removal in a future version.subject(int id) final Stringtext()Get the report in its final HTML form, with all the necessary substitutions made.
-
Field Details
-
CSS_HEADER
- See Also:
-
-
Constructor Details
-
SBFReportEntry
public SBFReportEntry(int messageId)
-
-
Method Details
-
setupStylesheet
-
setupStylesheet
@Deprecated(since="0.51.0", forRemoval=true) public static void setupStylesheet(StyleSheet styleSheet) Deprecated, for removal: This API element is subject to removal in a future version. -
add
Add the given int to the list of data that will be substituted for the <data> tags in the report. The order in which items are added must match the order of the tags in the report text.- Parameters:
data- the int to be substituted- Returns:
- This Report to allow chaining
-
add
Add the given int to the list of data that will be substituted for the <data> tags in the report, and mark it as double-blind sensitive information ifobscureis true. The order in which items are added must match the order of the tags in the report text.- Parameters:
data- the int to be substitutedobscure- boolean indicating whether the data is double-blind sensitive- Returns:
- This Report to allow chaining
-
add
Add the given String to the list of data that will be substituted for the <data> tags in the report. The order in which items are added must match the order of the tags in the report text.- Parameters:
data- the String to be substituted- Returns:
- This Report to allow chaining
-
add
Add the given String to the list of data that will be substituted for the <data> tags in the report, and mark it as double-blind sensitive information ifobscureis true. The order in which items are added must match the order of the tags in the report text.- Parameters:
data- the String to be substitutedobscure- boolean indicating whether the data is double-blind sensitive- Returns:
- This Report to allow chaining
-
text
Description copied from interface:ReportEntryGet the report in its final HTML form, with all the necessary substitutions made.- Specified by:
textin interfaceReportEntry- Returns:
- a HTML String with the final report
-
addRoll
Description copied from interface:ReportEntryAdds the result of the given roll to this ReportEntry. Returns this ReportEntry to allow chaining calls.- Specified by:
addRollin interfaceReportEntry- Parameters:
roll- The roll to add- Returns:
- this ReportEntry
-
indent
Indent the report. Equivalent to callingindent(int)with a parameter of 1.- Returns:
- This Report to allow chaining
-
indent
Indent the report n times.- Parameters:
n- the number of times to indent the report- Returns:
- This Report to allow chaining
-
subject
-
newLines
-
noNL
-
endSpace
Deprecated, for removal: This API element is subject to removal in a future version. -
addNL
-
reportText
-