Subversion Repositories eFlore/Applications.coel

Rev

Rev 1202 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1202 Rev 1206
Line 34... Line 34...
34
 
34
 
Line 35... Line 35...
35
public class FenetreJournal extends Dialog implements Rafraichissable{
35
public class FenetreJournal extends Dialog implements Rafraichissable{
36
 
36
 
37
	private int id = 0;
37
	private int id = 0;
38
	private EditorGrid<Valeur> grille;
38
	private EditorGrid<Valeur> grille;
39
	private int nbLogs = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbLogs"));
39
	//private int nbLogs = Integer.valueOf(((Dictionary) Dictionary.getDictionary("configuration")).get("nbLogs"));
Line 40... Line 40...
40
	private ListStore<Valeur> store;
40
	private ListStore<Valeur> store;
41
	public FenetreJournal(Mediateur mediateur)	{
41
	public FenetreJournal(Mediateur mediateur)	{
Line 83... Line 83...
83
			id++;
83
			id++;
84
			Valeur v = new Valeur(String.valueOf(id), info.title, null, info.text);
84
			Valeur v = new Valeur(String.valueOf(id), info.title, null, info.text);
85
			v.set("heure", getDate());
85
			v.set("heure", getDate());
86
			store.add(v);
86
			store.add(v);
Line 87... Line 87...
87
			
87
			
88
			if (store.getModels().size() > nbLogs)	{
88
			//if (store.getModels().size() > nbLogs)	{
89
				store.remove(store.getAt(nbLogs));
89
				//store.remove(store.getAt(nbLogs));
90
			}
90
			//}
91
		}
91
		}
Line 92... Line 92...
92
	}
92
	}
93
	
93