Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 558 → Rev 559

/trunk/src/org/tela_botanica/client/vues/StructureListeVue.java
80,16 → 80,16
 
setTopComponent(toolBar);
 
List<ColumnConfig> lstColumns = new ArrayList<ColumnConfig>();
lstColumns.add(new ColumnConfig("ville", "Ville", 150));
lstColumns.add(new ColumnConfig("nom", "Nom", 450));
ColumnModel cmStructure = new ColumnModel(lstColumns);
List<ColumnConfig> colonnes = new ArrayList<ColumnConfig>();
colonnes.add(new ColumnConfig("ville", "Ville", 150));
colonnes.add(new ColumnConfig("nom", "Nom", 450));
ColumnModel modeleDeColonne = new ColumnModel(colonnes);
GridSelectionModel<Structure> gsmSelectionStructure = new GridSelectionModel<Structure>();
gsmSelectionStructure.addSelectionChangedListener(new SelectionChangedListener<Structure>() {
GridSelectionModel<Structure> modeleDeSelection = new GridSelectionModel<Structure>();
modeleDeSelection.addSelectionChangedListener(new SelectionChangedListener<Structure>() {
public void selectionChanged(SelectionChangedEvent<Structure> event) {
Structure m = (Structure) event.getSelectedItem();
clicListe(m);
Structure structureSelectionnee = (Structure) event.getSelectedItem();
clicListe(structureSelectionnee);
}
});
96,10 → 96,10
store = new ListStore<Structure>();
store.sort("ville", SortDir.ASC);
 
grille = new Grid<Structure>(store, cmStructure);
grille = new Grid<Structure>(store, modeleDeColonne);
grille.setWidth("100%");
grille.setAutoExpandColumn("nom");
grille.setSelectionModel(gsmSelectionStructure);
grille.setSelectionModel(modeleDeSelection);
add(grille);
}
 
152,7 → 152,7
Info.display(i18nC.suppressionStructure(), info.toString().replaceAll("\n", "<br />"));
 
// Suppression des structures sélectionnées
List<Structure> selectionStructure = grille.getSelectionModel().getSelectedItems();//table.getSelectedItems();
List<Structure> selectionStructure = grille.getSelectionModel().getSelectedItems();
final int taille = selectionStructure.size();
for (int i = 0; i < taille; i++) {
//GWT.log("INDEX :"+table.indexOf(selectionStructure.get(i)), null);
/trunk/src/org/tela_botanica/client/vues/StructureForm.java
239,7 → 239,7
structureFormPanneau.setCollapsible(false);
structureFormPanneau.setHeading(i18nC.titreAjoutFormStructurePanneau());
structureFormPanneau.setButtonAlign(HorizontalAlignment.CENTER);
structureFormPanneau.setLayout(new FlowLayout());
structureFormPanneau.setLayout(new FitLayout());
 
//+-----------------------------------------------------------------------------------------------------------+
// Création des onglets
780,6 → 780,7
valorisationOnglet.setText("Valorisation");
valorisationOnglet.setScrollMode(Scroll.AUTO);
valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
valorisationOnglet.setStyleAttribute("padding", "10px");
valorisationOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
877,6 → 878,7
conservationOnglet.setText("Conservation");
conservationOnglet.setScrollMode(Scroll.AUTO);
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
conservationOnglet.setStyleAttribute("padding", "10px");
conservationOnglet.setData("acces", false);
conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
1139,6 → 1141,7
personnelOnglet.setText("Personnel");
personnelOnglet.setScrollMode(Scroll.AUTO);
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, 0));
identificationOnglet.setStyleAttribute("padding", "10px");
personnelOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
personnelOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
1161,8 → 1164,8
cp.setIconStyle("icone-table");
//cp.setScrollMode(Scroll.AUTO);
cp.setLayout(new FitLayout());
cp.setWidth(1250);
cp.setHeight("100%");
//cp.setWidth(1250);
//cp.setHeight("100%");
cp.setFrame(true);
personnelGrilleMagazin = new ListStore<StructureAPersonne>();
1432,7 → 1435,8
 
ColumnModel cm = new ColumnModel(configs);
grillePersonnel = new EditorGrid<StructureAPersonne>(personnelGrilleMagazin, cm);
grillePersonnel = new EditorGrid<StructureAPersonne>(personnelGrilleMagazin, cm);
grillePersonnel.setHeight("100%");
grillePersonnel.setBorders(true);
grillePersonnel.setSelectionModel(sm);
grillePersonnel.addPlugin(checkColumn);
1462,6 → 1466,7
identificationOnglet.setId("identification");
identificationOnglet.setText("Identification");
identificationOnglet.setLayout(new FormLayout());
identificationOnglet.setStyleAttribute("padding", "10px");
identificationOnglet.setScrollMode(Scroll.AUTO);
identificationOnglet.setData("acces", false);
identificationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
1819,11 → 1824,6
if (labelAlign != null) {
formLayout.setLabelAlign(labelAlign);
}
//TODO : Check : setPadding ne peut pas être placé sur le form layout mais doit l'etre sur le parent
/*if (padding != null) {
formLayout.setPadding(padding);
}*/
return formLayout;
}