Class HTMLConfiguration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the value used for highlighting changes from the input A document.Get the current value of the styling used for changes from the input A document.Get the value used for highlighting changes from the input B document.Get the current value of the styling used for changes from the input B document.voidsetInputAHighlightColour(String value) Set the colour used to highlight changes in the input A document.voidsetInputAStyling(String value) Set the CSS applied to changed elements from the input A document.voidsetInputBHighlightColour(String value) Set the colour used to highlight changes in the input B document.voidsetInputBStyling(String value) Set the CSS applied to changed elements from the input B document.
-
Field Details
-
DEFAULT_INPUT_A_HIGHLIGHT_COLOUR
The default input A highlight colour used by HTML Compare.
- See Also:
-
DEFAULT_INPUT_B_HIGHLIGHT_COLOUR
The default input B highlight colour used by HTML Compare.
- See Also:
-
-
Constructor Details
-
HTMLConfiguration
public HTMLConfiguration()Create a newHTMLConfigurationobject.
-
-
Method Details
-
getInputAHighlightColour
Get the value used for highlighting changes from the input A document.- Returns:
- a String representing the value of the input A highlight colour parameter.
-
setInputAHighlightColour
Set the colour used to highlight changes in the input A document.
A valid value is a css property value appropriate for use with the 'background' css property.
If comparing MathML, the value given must also be valid for the 'mathbackground' attribute.
- Parameters:
value- a String that represents a valid value of the background css property.- See Also:
-
getInputBHighlightColour
Get the value used for highlighting changes from the input B document.- Returns:
- a String representing the value of the input B highlight colour parameter.
-
setInputBHighlightColour
Set the colour used to highlight changes in the input B document.
A valid value is a css property value appropriate for use with the 'background' css property.
If comparing MathML, the value given must also be valid for the 'mathbackground' attribute.
- Parameters:
value- a String that represents a valid value of the background css property.- See Also:
-
getInputAStyling
Get the current value of the styling used for changes from the input A document.- Returns:
- the value of the styling used for the input A document.
-
setInputAStyling
Set the CSS applied to changed elements from the input A document.
Note that this will override the highlight colour parameter if set using
setInputAHighlightColour(String)(except in the case of MathML that uses the mathbackground attribute)- Parameters:
value- A valid string of inline CSS to apply.
-
getInputBStyling
Get the current value of the styling used for changes from the input B document.- Returns:
- the value of the styling used for the input B document.
-
setInputBStyling
Set the CSS applied to changed elements from the input B document.
Note that this will override the highlight colour parameter if set using
setInputBHighlightColour(String)(except in the case of MathML that uses the mathbackground attribute)- Parameters:
value- A valid string of inline CSS to apply.
-