Subversion Repositories eFlore/Applications.coel

Rev

Rev 638 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 638 Rev 648
Line 23... Line 23...
23
import com.extjs.gxt.ui.client.widget.TabItem;
23
import com.extjs.gxt.ui.client.widget.TabItem;
24
import com.extjs.gxt.ui.client.widget.TabPanel;
24
import com.extjs.gxt.ui.client.widget.TabPanel;
25
import com.extjs.gxt.ui.client.widget.form.FieldSet;
25
import com.extjs.gxt.ui.client.widget.form.FieldSet;
26
import com.extjs.gxt.ui.client.widget.form.HiddenField;
26
import com.extjs.gxt.ui.client.widget.form.HiddenField;
27
import com.extjs.gxt.ui.client.widget.form.Radio;
27
import com.extjs.gxt.ui.client.widget.form.Radio;
-
 
28
import com.extjs.gxt.ui.client.widget.form.TextField;
28
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
29
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
-
 
30
import com.extjs.gxt.ui.client.widget.layout.FormData;
29
import com.google.gwt.core.client.GWT;
31
import com.google.gwt.core.client.GWT;
30
import com.google.gwt.user.client.ui.Widget;
32
import com.google.gwt.user.client.ui.Widget;
Line 31... Line 33...
31
 
33
 
Line 42... Line 44...
42
	private TabItem contenuOnglet = null;
44
	private TabItem contenuOnglet = null;
43
	private TabItem documentOnglet = null;
45
	private TabItem documentOnglet = null;
44
	private TabItem inventaireOnglet = null;
46
	private TabItem inventaireOnglet = null;
Line 45... Line 47...
45
 
47
 
46
	public CollectionForm(Mediateur mediateurCourrant, String modeDeCreation) {
-
 
47
		super(mediateurCourrant, modeDeCreation);
48
	public CollectionForm(Mediateur mediateurCourrant, String modeDeCreation) {
48
		menuIdCourant = MenuApplicationId.COLLECTION;
-
 
49
		creerOnglets();
-
 
50
		add(panneauFormulaire);
49
		initialiserFormulaire(mediateurCourrant, modeDeCreation, MenuApplicationId.COLLECTION);
Line 51... Line 50...
51
	}
50
	}
52
	
51
	
53
	protected void creerOnglets() {
52
	protected void creerOnglets() {
Line 91... Line 90...
91
		
90
		
92
		//+-----------------------------------------------------------------------------------------------------------+
91
		//+-----------------------------------------------------------------------------------------------------------+
93
		// Champs cachés
92
		// Champs cachés
94
		HiddenField<String> idCollectionChp = new HiddenField<String>();
93
		HiddenField<String> idCollectionChp = new HiddenField<String>();
95
		champs.put("idCollectionChp", idCollectionChp);
94
		champs.put("idCollectionChp", idCollectionChp);
96
 
95
		
97
		//+-----------------------------------------------------------------------------------------------------------+
96
		//+-----------------------------------------------------------------------------------------------------------+
98
		// Fieldset ADMINISTRATIF
97
		// Fieldset ADMINISTRATIF
99
		FieldSet fieldSetIdentite = new FieldSet();
98
		FieldSet administratifFieldSet = new FieldSet();
100
		fieldSetIdentite.setHeading(i18nC.collectionGeneralTitre());
99
		administratifFieldSet.setHeading(i18nC.collectionGeneralTitre());
101
		fieldSetIdentite.setCollapsible(true);
100
		administratifFieldSet.setCollapsible(true);
-
 
101
		administratifFieldSet.setLayout(creerFormLayout(120, LabelAlign.LEFT));
-
 
102
 
-
 
103
		TextField<String> nomChp = new TextField<String>();
-
 
104
		nomChp.setTabIndex(tabIndex++);
-
 
105
		nomChp.setFieldLabel(i18nC.nomCollection());
-
 
106
		nomChp.setAllowBlank(false);
-
 
107
		nomChp.getMessages().setBlankText(i18nC.champObligatoire());
102
		fieldSetIdentite.setLayout(creerFormLayout(120, LabelAlign.LEFT));
108
		administratifFieldSet.add(nomChp, new FormData(450, 0));
-
 
109
		
Line -... Line 110...
-
 
110
		generalOnglet.add(administratifFieldSet);
-
 
111
		
-
 
112
		//+-----------------------------------------------------------------------------------------------------------+
-
 
113
		// Fieldset DESCRIPTION
-
 
114
		FieldSet descriptionFieldSet = new FieldSet();
-
 
115
		descriptionFieldSet.setHeading(i18nC.collectionDescriptionTitre());
-
 
116
		descriptionFieldSet.setCollapsible(true);
-
 
117
		descriptionFieldSet.setLayout(creerFormLayout(120, LabelAlign.LEFT));
-
 
118
		
-
 
119
		generalOnglet.add(descriptionFieldSet);
-
 
120
 
103
 
121
		//+-----------------------------------------------------------------------------------------------------------+
104
		
122
		// Retour
Line 105... Line 123...
105
		return generalOnglet;
123
		return generalOnglet;
106
	}
124
	}