Line 237... |
Line 237... |
237 |
structureFormPanneau.setFrame(true);
|
237 |
structureFormPanneau.setFrame(true);
|
238 |
structureFormPanneau.setIconStyle("icone-form-ajouter");
|
238 |
structureFormPanneau.setIconStyle("icone-form-ajouter");
|
239 |
structureFormPanneau.setCollapsible(false);
|
239 |
structureFormPanneau.setCollapsible(false);
|
240 |
structureFormPanneau.setHeading(i18nC.titreAjoutFormStructurePanneau());
|
240 |
structureFormPanneau.setHeading(i18nC.titreAjoutFormStructurePanneau());
|
241 |
structureFormPanneau.setButtonAlign(HorizontalAlignment.CENTER);
|
241 |
structureFormPanneau.setButtonAlign(HorizontalAlignment.CENTER);
|
242 |
structureFormPanneau.setLayout(new FlowLayout());
|
242 |
structureFormPanneau.setLayout(new FitLayout());
|
Line 243... |
Line 243... |
243 |
|
243 |
|
244 |
//+-----------------------------------------------------------------------------------------------------------+
|
244 |
//+-----------------------------------------------------------------------------------------------------------+
|
245 |
// Création des onglets
|
245 |
// Création des onglets
|
246 |
onglets = new TabPanel();
|
246 |
onglets = new TabPanel();
|
Line 778... |
Line 778... |
778 |
private TabItem creerOngletValorisation() {
|
778 |
private TabItem creerOngletValorisation() {
|
779 |
valorisationOnglet = new TabItem();
|
779 |
valorisationOnglet = new TabItem();
|
780 |
valorisationOnglet.setText("Valorisation");
|
780 |
valorisationOnglet.setText("Valorisation");
|
781 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
781 |
valorisationOnglet.setScrollMode(Scroll.AUTO);
|
782 |
valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
782 |
valorisationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
- |
|
783 |
valorisationOnglet.setStyleAttribute("padding", "10px");
|
783 |
valorisationOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
|
784 |
valorisationOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
|
784 |
valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
785 |
valorisationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
785 |
public void handleEvent(ComponentEvent be) {
|
786 |
public void handleEvent(ComponentEvent be) {
|
786 |
peuplerStructureValorisation();
|
787 |
peuplerStructureValorisation();
|
787 |
}
|
788 |
}
|
Line 875... |
Line 876... |
875 |
private TabItem creerOngletConservation() {
|
876 |
private TabItem creerOngletConservation() {
|
876 |
conservationOnglet = new TabItem();
|
877 |
conservationOnglet = new TabItem();
|
877 |
conservationOnglet.setText("Conservation");
|
878 |
conservationOnglet.setText("Conservation");
|
878 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
879 |
conservationOnglet.setScrollMode(Scroll.AUTO);
|
879 |
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
880 |
conservationOnglet.setLayout(creerFormLayout(650, LabelAlign.TOP, null));
|
- |
|
881 |
conservationOnglet.setStyleAttribute("padding", "10px");
|
880 |
conservationOnglet.setData("acces", false);
|
882 |
conservationOnglet.setData("acces", false);
|
881 |
conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
883 |
conservationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
882 |
public void handleEvent(ComponentEvent be) {
|
884 |
public void handleEvent(ComponentEvent be) {
|
883 |
peuplerStructureConservation();
|
885 |
peuplerStructureConservation();
|
884 |
conservationOnglet.layout();
|
886 |
conservationOnglet.layout();
|
Line 1137... |
Line 1139... |
1137 |
|
1139 |
|
1138 |
personnelOnglet = new TabItem();
|
1140 |
personnelOnglet = new TabItem();
|
1139 |
personnelOnglet.setText("Personnel");
|
1141 |
personnelOnglet.setText("Personnel");
|
1140 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
1142 |
personnelOnglet.setScrollMode(Scroll.AUTO);
|
- |
|
1143 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, 0));
|
1141 |
personnelOnglet.setLayout(creerFormLayout(400, LabelAlign.LEFT, 0));
|
1144 |
identificationOnglet.setStyleAttribute("padding", "10px");
|
1142 |
personnelOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
|
1145 |
personnelOnglet.setData("acces", false); // Permet de savoir si l'onblet a été accédé par l'utilisateur
|
1143 |
personnelOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
1146 |
personnelOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
1144 |
public void handleEvent(ComponentEvent be) {
|
1147 |
public void handleEvent(ComponentEvent be) {
|
1145 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
1148 |
// Indique que l'onglet a été rempli et a pu être modifié pour la méthode collecter...
|
Line 1159... |
Line 1162... |
1159 |
ContentPanel cp = new ContentPanel();
|
1162 |
ContentPanel cp = new ContentPanel();
|
1160 |
cp.setHeading("Personnes travaillant sur les collections");
|
1163 |
cp.setHeading("Personnes travaillant sur les collections");
|
1161 |
cp.setIconStyle("icone-table");
|
1164 |
cp.setIconStyle("icone-table");
|
1162 |
//cp.setScrollMode(Scroll.AUTO);
|
1165 |
//cp.setScrollMode(Scroll.AUTO);
|
1163 |
cp.setLayout(new FitLayout());
|
1166 |
cp.setLayout(new FitLayout());
|
1164 |
cp.setWidth(1250);
|
1167 |
//cp.setWidth(1250);
|
1165 |
cp.setHeight("100%");
|
1168 |
//cp.setHeight("100%");
|
1166 |
cp.setFrame(true);
|
1169 |
cp.setFrame(true);
|
Line 1167... |
Line 1170... |
1167 |
|
1170 |
|
1168 |
personnelGrilleMagazin = new ListStore<StructureAPersonne>();
|
1171 |
personnelGrilleMagazin = new ListStore<StructureAPersonne>();
|
Line 1430... |
Line 1433... |
1430 |
|
1433 |
|
Line 1431... |
Line 1434... |
1431 |
cp.setTopComponent(toolBar);
|
1434 |
cp.setTopComponent(toolBar);
|
Line 1432... |
Line 1435... |
1432 |
|
1435 |
|
- |
|
1436 |
ColumnModel cm = new ColumnModel(configs);
|
1433 |
ColumnModel cm = new ColumnModel(configs);
|
1437 |
|
1434 |
|
1438 |
grillePersonnel = new EditorGrid<StructureAPersonne>(personnelGrilleMagazin, cm);
|
1435 |
grillePersonnel = new EditorGrid<StructureAPersonne>(personnelGrilleMagazin, cm);
|
1439 |
grillePersonnel.setHeight("100%");
|
1436 |
grillePersonnel.setBorders(true);
|
1440 |
grillePersonnel.setBorders(true);
|
1437 |
grillePersonnel.setSelectionModel(sm);
|
1441 |
grillePersonnel.setSelectionModel(sm);
|
Line 1460... |
Line 1464... |
1460 |
// Onlget formulaire IDENTIFICATION
|
1464 |
// Onlget formulaire IDENTIFICATION
|
1461 |
identificationOnglet = new TabItem();
|
1465 |
identificationOnglet = new TabItem();
|
1462 |
identificationOnglet.setId("identification");
|
1466 |
identificationOnglet.setId("identification");
|
1463 |
identificationOnglet.setText("Identification");
|
1467 |
identificationOnglet.setText("Identification");
|
1464 |
identificationOnglet.setLayout(new FormLayout());
|
1468 |
identificationOnglet.setLayout(new FormLayout());
|
- |
|
1469 |
identificationOnglet.setStyleAttribute("padding", "10px");
|
1465 |
identificationOnglet.setScrollMode(Scroll.AUTO);
|
1470 |
identificationOnglet.setScrollMode(Scroll.AUTO);
|
1466 |
identificationOnglet.setData("acces", false);
|
1471 |
identificationOnglet.setData("acces", false);
|
1467 |
identificationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
1472 |
identificationOnglet.addListener(Events.Select, new Listener<ComponentEvent>() {
|
1468 |
public void handleEvent(ComponentEvent be) {
|
1473 |
public void handleEvent(ComponentEvent be) {
|
1469 |
peuplerStructureIdentification();
|
1474 |
peuplerStructureIdentification();
|
Line 1817... |
Line 1822... |
1817 |
formLayout.setLabelWidth(labelWidth);
|
1822 |
formLayout.setLabelWidth(labelWidth);
|
1818 |
}
|
1823 |
}
|
1819 |
if (labelAlign != null) {
|
1824 |
if (labelAlign != null) {
|
1820 |
formLayout.setLabelAlign(labelAlign);
|
1825 |
formLayout.setLabelAlign(labelAlign);
|
1821 |
}
|
1826 |
}
|
1822 |
|
- |
|
1823 |
//TODO : Check : setPadding ne peut pas être placé sur le form layout mais doit l'etre sur le parent
|
- |
|
1824 |
/*if (padding != null) {
|
- |
|
1825 |
formLayout.setPadding(padding);
|
- |
|
1826 |
}*/
|
- |
|
1827 |
return formLayout;
|
1827 |
return formLayout;
|
1828 |
}
|
1828 |
}
|
Line 1829... |
Line 1829... |
1829 |
|
1829 |
|
1830 |
/** Méthode simplifiant la création de bouton radio oui/non
|
1830 |
/** Méthode simplifiant la création de bouton radio oui/non
|