36,7 → 36,7 |
|
private int id = 0; |
private EditorGrid<Valeur> grille; |
private int nbLogs = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbLogs")); |
//private int nbLogs = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbLogs")); |
private ListStore<Valeur> store; |
public FenetreJournal(Mediateur mediateur) { |
|
85,11 → 85,11 |
v.set("heure", getDate()); |
store.add(v); |
|
if (store.getModels().size() > nbLogs) { |
store.remove(store.getAt(nbLogs)); |
//if (store.getModels().size() > nbLogs) { |
//store.remove(store.getAt(nbLogs)); |
//} |
} |
} |
} |
|
public String getDate() { |
Date date = new Date(); |