Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 808 Rev 831
Line 17... Line 17...
17
	public UniteRangement(String type, int nombre, String precision, String format) {
17
	public UniteRangement(String type, int nombre, String precision, String format) {
18
		setType(type);
18
		setType(type);
19
		setNombre(nombre);
19
		setNombre(nombre);
20
		setPrecision(precision);
20
		setPrecision(precision);
21
		setFormat(format);
21
		setFormat(format);
-
 
22
		setTypeAutre(false);
22
	}
23
	}
Line 23... Line 24...
23
	
24
	
24
	public String getType() {
25
	public String getType() {
25
		return renvoyerValeurCorrecte((String) get("type"));
26
		return renvoyerValeurCorrecte((String) get("type"));
Line 47... Line 48...
47
	}
48
	}
48
	public void setFormat(String format) {
49
	public void setFormat(String format) {
49
		set("format", format);
50
		set("format", format);
50
	}
51
	}
Line -... Line 52...
-
 
52
	
-
 
53
	public boolean getTypeAutre() {
-
 
54
		return get("type_autre");
-
 
55
	}
-
 
56
	public void setTypeAutre(boolean bool) {
-
 
57
		set("type_autre", bool);
-
 
58
	}
51
	
59
	
52
	private String renvoyerValeurCorrecte(String valeur) {
60
	private String renvoyerValeurCorrecte(String valeur) {
53
		String valeurCorrecte = "";
61
		String valeurCorrecte = "";
54
		if (!UtilString.isEmpty(valeur)) {
62
		if (!UtilString.isEmpty(valeur)) {
55
			valeurCorrecte = valeur;
63
			valeurCorrecte = valeur;