public static class Log.Record
extends java.lang.Object
Constructor and Description |
---|
Log.Record(java.lang.String message)
Creates new Record with current time and no icon
|
Log.Record(java.lang.String message,
java.util.Date time,
javax.swing.ImageIcon icon)
Creates new Record
|
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
getIcon()
Record icon.
|
java.lang.String |
getMessage()
Record message.
|
java.util.Date |
getTime()
Record time.
|
java.lang.String |
toString() |
public Log.Record(java.lang.String message)
message
- message of the record, not nullpublic Log.Record(java.lang.String message, java.util.Date time, javax.swing.ImageIcon icon)
message
- message of the record, not nulltime
- time when event happened. You can use null for current time.icon
- optional icon to display or nullpublic javax.swing.ImageIcon getIcon()
public java.lang.String getMessage()
public java.util.Date getTime()
public java.lang.String toString()
toString
in class java.lang.Object