public class MuLiMessageStore<D> extends MuLiMessageReceiver<D>
SimpleMessage
s, with graphic
interfaces.
Modifier and Type | Class and Description |
---|---|
protected class |
MuLiMessageStore.Entry |
class |
MuLiMessageStore.TableModel
standard specialisation of
AbstractTableModel . |
Modifier and Type | Field and Description |
---|---|
protected List<MuLiMessageStore.Entry> |
messages |
protected MuLiMessageStore.TableModel |
tableModel |
catalog, counter, prefs, terminationText
receiver
Constructor and Description |
---|
MuLiMessageStore(CatalogByString cat,
List<String> prefs) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the internal storage, deleting all messages.
|
int |
getSize()
returns the number of currently contained messages
|
MuLiMessageStore.TableModel |
getTableModel()
returns the default (or a user-defined) table model,
MuLiMessageStore.TableModel . |
protected void |
notifyGuiAdd(int i)
An item has been inserted at position "i".
|
void |
notifyLanguageChanged()
Must be called when the list of languages preferences has changed.
|
void |
receive(SimpleMessage<D> message,
Object... args)
adds the received message to the internal store and notifies all GUI objects.
|
void |
setLivingListLanguagePreferences(List<String> lang_prefs)
must be set to a "live" list, which can change the order of preferred translation
languages.
|
void |
setTableModel(MuLiMessageStore.TableModel tm)
only needed for inserting a user-defined table model, cf
MuLiMessageStore.TableModel . |
error, error, error, failure, failure, failure, getCatalog, getCounter, getMarkedErros, getPrefs, hint, hint, hint, log, log, log, logEnd, logEnd, logEnd, logStart, logStart, logStart, markCriticalErrors, noTranslate, receive, send, send, send, setCatalog, setPreferences, setPreferences, terminateApplicationOnErrors, terminateApplicationOnErrors, warning, warning, warning
getReceiver, send, setReceiver
protected final List<MuLiMessageStore.Entry> messages
protected MuLiMessageStore.TableModel tableModel
public MuLiMessageStore(CatalogByString cat, List<String> prefs)
public int getSize()
public void setLivingListLanguagePreferences(List<String> lang_prefs)
public void notifyLanguageChanged()
public void setTableModel(MuLiMessageStore.TableModel tm)
MuLiMessageStore.TableModel
.public MuLiMessageStore.TableModel getTableModel()
MuLiMessageStore.TableModel
.public void clear()
protected void notifyGuiAdd(int i)
public void receive(SimpleMessage<D> message, Object... args)
see also the complete user documentation .