public interface ScriptLogger
Modifier and Type | Method and Description |
---|---|
default void |
acceptNullObjectLinks(boolean accept)
Specifies if the logger must accept objects which generate null links from
LinkIndexConverter.getLinkFromObject(java.lang.Object) . |
void |
append(java.lang.String txt)
Append a line of text, with a default color.
|
void |
append(java.lang.String txt,
java.lang.String htmlColor)
Append a line of text, with a specific color.
|
default void |
appendArrayLinks(java.lang.String txt,
java.lang.String... linkIDs)
Append a hyperlinked line of text in the message area, with a default color.
|
default void |
appendColorArrayLinks(java.lang.String txt,
java.lang.String htmlColor,
java.lang.String... linkIDs)
Append a hyperlinked line of text in the message area, with a default color.
|
void |
appendError(java.lang.String message)
Append an error.
|
default void |
appendError(java.lang.Throwable th)
Append an error.
|
default void |
appendLink(java.lang.String txt,
java.lang.String linkID)
Append a hyperlinked line of text in the message area, with a default color.
|
default void |
appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.String htmlColor)
Append a hyperlinked line of text in the message area, with a specific color.
|
default void |
appendLinks(java.lang.String txt,
java.util.List<java.lang.String> linkIDs)
Append a hyperlinked line of text in the message area, with a default color.
|
default void |
appendLinks(java.lang.String txt,
java.util.List<java.lang.String> linkIDs,
java.lang.String htmlColor)
Append a hyperlinked line of text in the message area, with a specified color.
|
default void |
appendObjectLink(HyperlinkElement element)
Append a hyperlinked line of text in the message area, with a default color.
|
default void |
appendObjectLink(HyperlinkElement element,
java.lang.String htmlColor)
Append a hyperlinked line of text in the message area, with a specific color.
|
default void |
appendObjectLinks(java.lang.String txt,
HyperlinkElement... links)
Append a hyperlinked line of text in the message area, with a default color.
|
default void |
appendObjectLinks(java.lang.String txt,
java.util.List<HyperlinkElement> links)
Append a hyperlinked line of text in the message area, with a default color.
|
default void |
appendObjectLinks(java.lang.String txt,
java.util.List<HyperlinkElement> links,
java.lang.String htmlColor)
Append a hyperlinked line of text in the message area, with a specified color.
|
default void |
appendObjectLinks(java.lang.String txt,
java.lang.String htmlColor,
HyperlinkElement... links)
Append a hyperlinked line of text in the message area, with a specified color.
|
default void |
appendStackTrace(java.lang.Throwable th)
Append a StackTrace.
|
default void |
clear()
Clear the content of the logger.
|
default void |
clearTab()
Clear the current value of the tab for the text.
|
default void |
finishedScript()
Called at the end of the script.
|
default void |
registerHyperLinkListener(ScriptLoggerHyperLinkListener hyperlinkListener)
Register the listener which will be fired when an hyperlink is visited.
|
default void |
registerLinkIndexConverter(LinkIndexConverter converter)
Register the class which will convert Objects to and from link indexes.
|
default void |
setProgress(float value)
Set the value of the script progression.
|
default void |
setTab(int tabs)
Set the current value for of the tab for the text.
|
void append(java.lang.String txt)
txt
- the textvoid append(java.lang.String txt, java.lang.String htmlColor)
txt
- the texthtmlColor
- the HTML color to use for the textdefault void appendLink(java.lang.String txt, java.lang.String linkID)
txt
- the textlinkID
- the hyperlink IDdefault void appendObjectLink(HyperlinkElement element)
element
- the hyperlink associated elementdefault void appendLinks(java.lang.String txt, java.util.List<java.lang.String> linkIDs)
txt
- the textlinkIDs
- the hyperlinks IDsdefault void appendArrayLinks(java.lang.String txt, java.lang.String... linkIDs)
txt
- the textlinkIDs
- the hyperlinks IDsdefault void appendObjectLinks(java.lang.String txt, java.util.List<HyperlinkElement> links)
txt
- the textlinks
- the hyperlinks elementsdefault void appendObjectLinks(java.lang.String txt, HyperlinkElement... links)
txt
- the textlinks
- the hyperlinks elementsdefault void appendLinks(java.lang.String txt, java.util.List<java.lang.String> linkIDs, java.lang.String htmlColor)
txt
- the textlinkIDs
- the hyperlinks IDshtmlColor
- the colordefault void appendColorArrayLinks(java.lang.String txt, java.lang.String htmlColor, java.lang.String... linkIDs)
txt
- the texthtmlColor
- the html colorlinkIDs
- the hyperlinks IDsdefault void appendObjectLinks(java.lang.String txt, java.util.List<HyperlinkElement> links, java.lang.String htmlColor)
txt
- the textlinks
- the hyperlinkshtmlColor
- the html colordefault void appendObjectLinks(java.lang.String txt, java.lang.String htmlColor, HyperlinkElement... links)
txt
- the textlinks
- the hyperlinkshtmlColor
- the colordefault void appendLink(java.lang.String txt, java.lang.String linkID, java.lang.String htmlColor)
txt
- the textlinkID
- the hyperlink IDhtmlColor
- the HTML color to use for the textdefault void appendObjectLink(HyperlinkElement element, java.lang.String htmlColor)
element
- the hyperlink elementhtmlColor
- the HTML color to use for the textvoid appendError(java.lang.String message)
message
- the error messagedefault void appendError(java.lang.Throwable th)
th
- the Throwabledefault void appendStackTrace(java.lang.Throwable th)
th
- the Throwabledefault void acceptNullObjectLinks(boolean accept)
LinkIndexConverter.getLinkFromObject(java.lang.Object)
.accept
- true if the logger must accept objects which generate null linksdefault void registerLinkIndexConverter(LinkIndexConverter converter)
converter
- the link index converterdefault void registerHyperLinkListener(ScriptLoggerHyperLinkListener hyperlinkListener)
hyperlinkListener
- the listenerdefault void clearTab()
default void setTab(int tabs)
tabs
. Do nothing
by default.tabs
- the current value for of the tab for the textdefault void clear()
default void setProgress(float value)
value
- the valuedefault void finishedScript()
Copyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence