Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 687 Rev 858
Line 10... Line 10...
10
import com.extjs.gxt.ui.client.Style.Scroll;
10
import com.extjs.gxt.ui.client.Style.Scroll;
11
import com.extjs.gxt.ui.client.event.ComponentEvent;
11
import com.extjs.gxt.ui.client.event.ComponentEvent;
12
import com.extjs.gxt.ui.client.event.Events;
12
import com.extjs.gxt.ui.client.event.Events;
13
import com.extjs.gxt.ui.client.event.Listener;
13
import com.extjs.gxt.ui.client.event.Listener;
14
import com.extjs.gxt.ui.client.widget.TabItem;
14
import com.extjs.gxt.ui.client.widget.TabItem;
-
 
15
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
15
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
16
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
Line 16... Line 17...
16
 
17
 
Line 17... Line 18...
17
public abstract class FormulaireOnglet extends TabItem implements Rafraichissable {
18
public abstract class FormulaireOnglet extends TabItem implements Rafraichissable {
Line 21... Line 22...
21
	protected Constantes i18nC = null;
22
	protected Constantes i18nC = null;
22
	protected Configuration config = null;
23
	protected Configuration config = null;
Line 23... Line 24...
23
	
24
	
24
	protected String mode = null;
25
	protected String mode = null;
-
 
26
	protected int tabIndex = 100;
-
 
27
	protected static LabelAlign alignementLabelDefaut = LabelAlign.LEFT;
Line 25... Line 28...
25
	protected int tabIndex = 100;
28
	protected static int largeurLabelDefaut = 250;
26
	
29
	
27
	public FormulaireOnglet() {
30
	public FormulaireOnglet() {
28
		parametrer(this);
31
		parametrer(this);
Line 32... Line 35...
32
			}  
35
			}  
33
		});
36
		});
34
	}
37
	}
Line 35... Line 38...
35
	
38
	
-
 
39
	public static void parametrer(TabItem onglet) {
-
 
40
		FormLayout layout = new FormLayout();
-
 
41
		layout.setLabelWidth(largeurLabelDefaut);
36
	public static void parametrer(TabItem onglet) {
42
		layout.setLabelAlign(alignementLabelDefaut);
-
 
43
		onglet.setLayout(layout);
37
		onglet.setLayout(new FormLayout());
44
		
38
		onglet.setStyleAttribute("padding", "10px");
45
		onglet.setStyleAttribute("padding", "10px");
39
		onglet.setScrollMode(Scroll.AUTO);
46
		onglet.setScrollMode(Scroll.AUTO);
40
		onglet.setData("acces", false);
47
		onglet.setData("acces", false);