public class Log
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Log.Record
Single log record
|
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_ADD_RECORD
new record added
|
static int |
ACTION_CLEAR_RECORDS
all records deleted
|
static int |
ACTION_REMOVE_RECORD
existing record removed
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener actionListener) |
void |
addRecord(Log.Record record)
add new record
|
void |
clearRecords()
delete all records
|
static Log |
getInstance()
Get shared instance
|
Log.Record |
getLastRecord()
Get lastly added record
|
java.util.List<Log.Record> |
getRecords()
get all records in unmodifiable list
|
boolean |
isEmpty()
Return if there are no records
|
void |
removeActionListener(java.awt.event.ActionListener actionListener) |
void |
removeRecord(Log.Record record)
remove existing record
|
int |
size()
Return number of records
|
public static final int ACTION_ADD_RECORD
public static final int ACTION_REMOVE_RECORD
public static final int ACTION_CLEAR_RECORDS
public void addActionListener(java.awt.event.ActionListener actionListener)
public void removeActionListener(java.awt.event.ActionListener actionListener)
public static Log getInstance()
public java.util.List<Log.Record> getRecords()
public void addRecord(Log.Record record)
public void removeRecord(Log.Record record)
public void clearRecords()
public int size()
Collection.size()
public boolean isEmpty()
Collection.isEmpty()
public Log.Record getLastRecord()