C - the parent component for the areapublic interface MessageArea<C> extends MessageLogger
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAXIMUM_LINES
The default maximum lines number.
|
BOLD, CROSSED, DEFAULT_FONT_SIZE, DEFAULT_STYLE, ITALIC, UNDERLINE| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(MessageAreaHandler handler)
Add a handler which will be fired after Hyperlink selections in the area.
|
void |
appendLink(java.lang.String txt,
java.lang.String linkID)
Append a line of text with an hyperlink in the message area.
|
void |
appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.Object o)
Append a line of text with an hyperlink in the message area.The link can be any text without space, and can be used as desired by the
application.
|
void |
appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.String htmlColor)
Append a line of text with an hyperlink in the message area.
|
void |
appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.String htmlColor,
java.lang.Object o)
Append a line of text with an hyperlink in the message area.
|
void |
clear()
Clear the content of the message area and resize it accordingly.
|
default void |
copyToClipboard()
Copy the hightlighted text to the system clipboard.
|
default MessageAreaHandler |
getHandler()
Return the message area handler.
|
int |
getMaximumLines()
Return the maximum lines to be displayed, or -1 if there is no limitation.
|
MessageAreaHandler |
getMessageAreaHandler()
Return the message area handler.
|
java.util.List<MessageAreaHandler> |
getMessageAreaHandlers()
Return the message area handlers.
|
boolean |
hasMaximumLines()
Return true if the number of lines to be displayed is limited.
|
default boolean |
isEditable()
Return true if the message area is editable.
|
default boolean |
isHandlingRightClick()
Return true if the message area is handing right clicks.
|
default boolean |
isManagingClipBoard()
True if the area is managing the clipboard.
|
default void |
manageClipBoard(boolean manageClipboard)
Set if the area is managing the clipboard.
|
default void |
print(java.io.File file)
Print the content of the area in a html file.
|
default void |
save(java.io.File file)
Save the content of the area in a text file.
|
void |
setHandler(MessageAreaHandler handler)
Deprecated.
|
void |
setMaximumLines(int maximumLines)
Set the maximum of lines which are accepted in this message Area.
|
void |
setMaximumLinesBehavior(boolean hasMaximumLines)
Set the behavior concerning the maximum number of lines which are accepted in this message Area.
|
void |
setParent(C parent,
int rows)
Set the parent component
|
append, append, append, append, appendError, appendLinkstatic final int DEFAULT_MAXIMUM_LINES
void addHandler(MessageAreaHandler handler)
handler - the handler@Deprecated void setHandler(MessageAreaHandler handler)
handler - the handlerMessageAreaHandler getMessageAreaHandler()
java.util.List<MessageAreaHandler> getMessageAreaHandlers()
default MessageAreaHandler getHandler()
getMessageAreaHandler().void setMaximumLines(int maximumLines)
maximumLines - the maximum of linesvoid setMaximumLinesBehavior(boolean hasMaximumLines)
setMaximumLines(int) with a value of 500 linessetMaximumLines(int) with a value of -1hasMaximumLines - true if the number of lines to be displayed is limitedint getMaximumLines()
boolean hasMaximumLines()
void setParent(C parent, int rows)
parent - the parent componentrows - the number of rowsdefault void manageClipBoard(boolean manageClipboard)
manageClipboard - true if the area is managing the clipboarddefault boolean isManagingClipBoard()
void clear()
default void copyToClipboard()
default void print(java.io.File file)
file - the filedefault void save(java.io.File file)
file - the filevoid appendLink(java.lang.String txt,
java.lang.String linkID)
appendLink in interface MessageLoggertxt - the text to showlinkID - the linkvoid appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.Object o)
txt - the text to showlinkID - the linko - the object associated with the linkvoid appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.String htmlColor)
appendLink in interface MessageLoggertxt - the text to showlinkID - the linkhtmlColor - the html-define color to use for the textvoid appendLink(java.lang.String txt,
java.lang.String linkID,
java.lang.String htmlColor,
java.lang.Object o)
txt - the text to showlinkID - the linkhtmlColor - the html-define color to use for the texto - the object associated with the linkdefault boolean isHandlingRightClick()
default boolean isEditable()