public interface QuickLoggerModel
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Adds a listener which gets notified if the logged data changed.
|
void |
addMessage(java.lang.String message,
long time)
Adds a message to the log.
|
void |
clearMessages()
Clears all messages/lines from the model.
|
java.lang.String |
getLine(int line)
Returns the message at the line with the given index.
|
java.lang.String |
getLineTime(int line)
Returns a string describing the creation time of the message, or null if not the first line of a message.
|
int |
getMaxNumLines()
Returns the maximal number of stored lines.
|
int |
getNumLines()
Returns current number of stored lines.
|
int |
getTimeMaxChar()
Returns the maximal number of characters the date string consists of.
|
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes a previously added listener.
|
int getNumLines()
int getMaxNumLines()
java.lang.String getLine(int line)
line
- Line to return.java.lang.String getLineTime(int line)
line
- Line to return the creation line of.int getTimeMaxChar()
void addActionListener(java.awt.event.ActionListener listener)
listener
- Listener to add.void removeActionListener(java.awt.event.ActionListener listener)
listener
- listener to remove.void addMessage(java.lang.String message, long time)
message
- Message to add.time
- Time of message.void clearMessages()