|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrseslib.system.AbstractLog
vr.system.VisualLog
public class VisualLog
Manager of messages. It manages three message streams: for errors, for information and for debugging messages. Errors are directed to error field in place defined by variable panel and after that they are converted into exceptions. The other two are also directed into suitable textfield. They can be also directed to files
Field Summary | |
---|---|
LogPanel |
panel
|
Fields inherited from class rseslib.system.AbstractLog |
---|
lineSeparator, s_bWriteDebug, s_bWriteDisplay, s_debugWriter, s_displayWriter |
Constructor Summary | |
---|---|
VisualLog()
Object constructor creating his own window in witch it will be displaying his messages. |
|
VisualLog(LogPanel lpanel)
Object constructor receiving panel from outside. |
Method Summary | |
---|---|
void |
debug(java.lang.String message)
Writes a message on screen in debug field if the corresponding flag is set on. |
void |
debugnl()
Writes a new line on screen in debug field and to file if the corresponding flag is set on |
void |
display(java.lang.Object obj)
Writes an information about a given object if the corresponding flag is set on. |
void |
displaynl(java.lang.Object obj)
Writes an information about a given object and append the end of line if the corresponding flag is set on. |
void |
error(java.lang.String message)
Writes message on screen in debug field. |
void |
setHeaderFile(java.lang.String f)
Sets information about loaded header file. |
void |
setHeaderModified(boolean b)
Sets if header was modified |
void |
setOpenDebugWindow(boolean open)
Opens or closes window with debug messages of subordinate LogPanel |
void |
setOpenDisplayWindow(boolean open)
Opens or closes window with Iformation messages of subordinate LogPanel |
void |
setOpenErrorWindow(boolean open)
Opens or closes window with error messages of subordinate LogPanel |
void |
setTestFile(java.lang.String f)
Sets information about loaded test file. |
void |
setTestModified(boolean b)
Sets if test was modified |
void |
setTrainingFile(java.lang.String f)
Sets information about loaded training file. |
void |
setTrainingModified(boolean b)
Sets if training was modified |
Methods inherited from class rseslib.system.AbstractLog |
---|
close, displayMapWithMultiLines, displayMapWithSingleLines, openDebugFile, openDisplayFile, setDebug, setDisplay, test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public LogPanel panel
Constructor Detail |
---|
public VisualLog()
public VisualLog(LogPanel lpanel)
lpanel
- Panel in witch new object will be displaying his messages..Method Detail |
---|
public void error(java.lang.String message)
error
in class rseslib.system.AbstractLog
message
- Error message.public void debug(java.lang.String message)
debug
in class rseslib.system.AbstractLog
message
- Komunikat debagowy.public void debugnl()
debugnl
in class rseslib.system.AbstractLog
public void display(java.lang.Object obj)
display
in class rseslib.system.AbstractLog
obj
- Information message.public void displaynl(java.lang.Object obj)
displaynl
in class rseslib.system.AbstractLog
obj
- Information message.public void setOpenErrorWindow(boolean open)
open
- Flag seting if window have to be open or closed.public void setOpenDebugWindow(boolean open)
open
- Flag seting if window have to be open or closed.public void setOpenDisplayWindow(boolean open)
open
- Flag seting if window have to be open or closed.public void setHeaderFile(java.lang.String f)
f
- Inforation about loaded file.public void setTrainingFile(java.lang.String f)
f
- Inforation about loaded file.public void setTestFile(java.lang.String f)
f
- Inforation about loaded file.public void setHeaderModified(boolean b)
public void setTrainingModified(boolean b)
public void setTestModified(boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |