Subversion Repositories eFlore/Applications.del

Rev

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

Rev 210 Rev 233
Line 23... Line 23...
23
	private static BusEvenementiel instance;
23
	private static BusEvenementiel instance;
Line 24... Line 24...
24
 
24
 
25
	private BusEvenementiel() {
25
	private BusEvenementiel() {
26
		super(null);
26
		super(null);
27
		instance = this;
27
		instance = this;
28
		createHandlers();
28
		creerHandler();
Line 29... Line 29...
29
	}
29
	}
30
 
30
 
31
	public static BusEvenementiel getInstance() {
31
	public static BusEvenementiel getInstance() {
32
		if (instance == null) {
32
		if (instance == null) {
33
			instance = new BusEvenementiel();
33
			instance = new BusEvenementiel();
34
		}
34
		}
Line 35... Line 35...
35
		return instance;
35
		return instance;
36
	}
36
	}
Line 37... Line 37...
37
 
37
 
38
	private void createHandlers() {
38
	private void creerHandler() {
39
		addHandler(EvenementValidation.TYPE, new GestionnaireEvenementValidation() {
39
		addHandler(EvenementValidation.TYPE, new GestionnaireEvenementValidation() {
Line 68... Line 68...
68
			}
68
			}
69
		});
69
		});
70
	}
70
	}
Line 71... Line 71...
71
 
71
 
72
	private void doValidationImage(Image image) {
72
	private void doValidationImage(Image image) {
73
		CacheClient.getInstance().setCurrentObservation(image.getObservation());
73
		CacheClient.getInstance().setObservationCourante(image.getObservation());
74
		CacheClient.getInstance().setImageCourante(image);
74
		CacheClient.getInstance().setImageCourante(image);
75
		History.newItem(ConstantesNavigation.PAGE_VALIDATION, true);
75
		History.newItem(ConstantesNavigation.PAGE_VALIDATION, true);
76
		History.fireCurrentHistoryState();
76
		History.fireCurrentHistoryState();