Package adams.gui.core
Interface LogPanel
-
- All Known Implementing Classes:
ConsolePanel.OutputPanel
,SimpleLogPanel
public interface LogPanel
Common interface for log panels.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(LoggingLevel level, String msg)
Appends the given string.void
clear()
Clears the text.void
copy()
Copies the text to the clipboard.boolean
getLineWrap()
Returns the current line wrap setting.String
getText()
Returns the current text.void
saveAs()
Saves the current content to a file.void
setLineWrap(boolean value)
Sets the line wrap flag.void
setText(String value)
Sets the current text.
-
-
-
Method Detail
-
append
void append(LoggingLevel level, String msg)
Appends the given string.- Parameters:
level
- the logging levelmsg
- the message to append
-
clear
void clear()
Clears the text.
-
copy
void copy()
Copies the text to the clipboard.
-
saveAs
void saveAs()
Saves the current content to a file.
-
setLineWrap
void setLineWrap(boolean value)
Sets the line wrap flag.- Parameters:
value
- if true line wrap is enabled
-
getLineWrap
boolean getLineWrap()
Returns the current line wrap setting.- Returns:
- true if line wrap is enabled
-
setText
void setText(String value)
Sets the current text.- Parameters:
value
- the text
-
getText
String getText()
Returns the current text.- Returns:
- the tex
-
-