Line 19... |
Line 19... |
19 |
import org.tela_botanica.client.vues.Formulaire;
|
19 |
import org.tela_botanica.client.vues.Formulaire;
|
20 |
import org.tela_botanica.client.vues.FormulaireBarreValidation;
|
20 |
import org.tela_botanica.client.vues.FormulaireBarreValidation;
|
21 |
import org.tela_botanica.client.vues.FormulaireOnglet;
|
21 |
import org.tela_botanica.client.vues.FormulaireOnglet;
|
22 |
import org.tela_botanica.client.vues.publication.PublicationForm;
|
22 |
import org.tela_botanica.client.vues.publication.PublicationForm;
|
Line -... |
Line 23... |
- |
|
23 |
|
23 |
|
24 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
24 |
import com.extjs.gxt.ui.client.core.XTemplate;
|
25 |
import com.extjs.gxt.ui.client.core.XTemplate;
|
25 |
import com.extjs.gxt.ui.client.event.BaseEvent;
|
26 |
import com.extjs.gxt.ui.client.event.BaseEvent;
|
26 |
import com.extjs.gxt.ui.client.event.ButtonEvent;
|
27 |
import com.extjs.gxt.ui.client.event.ButtonEvent;
|
27 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
28 |
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
Line 48... |
Line 49... |
48 |
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
|
49 |
import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
|
49 |
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
|
50 |
import com.extjs.gxt.ui.client.widget.grid.GridSelectionModel;
|
50 |
import com.extjs.gxt.ui.client.widget.grid.RowExpander;
|
51 |
import com.extjs.gxt.ui.client.widget.grid.RowExpander;
|
51 |
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
|
52 |
import com.extjs.gxt.ui.client.widget.grid.RowNumberer;
|
52 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
53 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
- |
|
54 |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
53 |
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
|
55 |
import com.extjs.gxt.ui.client.widget.toolbar.SeparatorToolItem;
|
54 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
56 |
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
|
55 |
import com.google.gwt.core.client.GWT;
|
57 |
import com.google.gwt.core.client.GWT;
|
Line 56... |
Line 58... |
56 |
|
58 |
|
Line 71... |
Line 73... |
71 |
private Button publicationsBoutonModifier = null;
|
73 |
private Button publicationsBoutonModifier = null;
|
Line 72... |
Line 74... |
72 |
|
74 |
|
Line 73... |
Line 75... |
73 |
private FenetreForm fenetreFormulaire = null;
|
75 |
private FenetreForm fenetreFormulaire = null;
|
- |
|
76 |
|
74 |
|
77 |
public CollectionFormPublication(Formulaire formulaireCourrant) {
|
75 |
public CollectionFormPublication(Formulaire formulaireCourrant) {
|
78 |
|
76 |
initialiserOnglet(formulaireCourrant);
|
79 |
initialiserOnglet(formulaireCourrant);
|
77 |
setId(ID);
|
80 |
setId(ID);
|
78 |
setText(Mediateur.i18nC.collectionPublication());
|
- |
|
79 |
setStyleAttribute("padding", "0");
|
81 |
setText(Mediateur.i18nC.collectionPublication());
|
- |
|
82 |
setStyleAttribute("padding", "0");
|
80 |
|
83 |
panneauPrincipal = creerPanneauContenantGrille();
|
81 |
panneauPrincipal = creerPanneauContenantGrille();
|
84 |
setLayout(new FitLayout());
|
82 |
barreOutils = creerBarreOutilsGrille();
|
85 |
barreOutils = creerBarreOutilsGrille();
|
- |
|
86 |
panneauPrincipal.setTopComponent(barreOutils);
|
83 |
panneauPrincipal.setTopComponent(barreOutils);
|
87 |
grille = creerGrille();
|
- |
|
88 |
panneauPrincipal.setLayout(new FitLayout());
|
84 |
grille = creerGrille();
|
89 |
panneauPrincipal.add(grille);
|
Line 85... |
Line 90... |
85 |
panneauPrincipal.add(grille);
|
90 |
|
86 |
add(panneauPrincipal);
|
91 |
add(panneauPrincipal);
|
Line 370... |
Line 375... |
370 |
|
375 |
|
371 |
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
|
376 |
ColumnModel modeleDeColonnes = new ColumnModel(colonnes);
|
Line 372... |
Line 377... |
372 |
modeleDeColonnes.getColumn(0).setWidget(Images.ICONES.information().createImage(), "Info");
|
377 |
modeleDeColonnes.getColumn(0).setWidget(Images.ICONES.information().createImage(), "Info");
|
373 |
|
378 |
|
374 |
EditorGrid<CollectionAPublication> grillePublications = new EditorGrid<CollectionAPublication>(storeGrille, modeleDeColonnes);
|
379 |
EditorGrid<CollectionAPublication> grillePublications = new EditorGrid<CollectionAPublication>(storeGrille, modeleDeColonnes);
|
375 |
grillePublications.setHeight("100%");
|
380 |
//grillePublications.setHeight("100%");
|
376 |
grillePublications.setBorders(true);
|
381 |
grillePublications.setBorders(true);
|
377 |
grillePublications.setSelectionModel(modeleDeSelection);
|
382 |
grillePublications.setSelectionModel(modeleDeSelection);
|
378 |
grillePublications.addPlugin(expansionPlugin);
|
383 |
grillePublications.addPlugin(expansionPlugin);
|