/branches/v1.0-syrah/src/org/tela_botanica/client/Mediateur.java |
---|
183,7 → 183,7 |
private void creerPanneauOuest() { |
panneauOuest = new NavigationVue(this); |
BorderLayoutData regionOuest = new BorderLayoutData(LayoutRegion.WEST, 200); |
BorderLayoutData regionOuest = new BorderLayoutData(LayoutRegion.WEST, 375); |
regionOuest.setSplit(true); |
regionOuest.setCollapsible(true); |
regionOuest.setMargins(new Margins(5)); |
/branches/v1.0-syrah/src/org/tela_botanica/client/vues/personne/PersonneForm.java |
---|
250,7 → 250,7 |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(); |
ChampComboBoxRechercheTempsReelPaginable cbProjets = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets); |
cbProjets.setWidth(100, 600); |
cbProjets.setWidth(100, 550); |
cbProjets.getCombo().setTabIndex(tabIndex++); |
cbProjets.getCombo().setFieldLabel(i18nC.personneProjet()); |
cbProjets.getCombo().setEmptyText(i18nC.txtListeProjetDefaut()); |
/branches/v1.0-syrah/src/org/tela_botanica/client/vues/collection/CollectionFormGeneral.java |
---|
126,7 → 126,7 |
ProxyProjets<ModelData> proxyProjets = new ProxyProjets<ModelData>(); |
projetsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyProjets, modelTypeProjets, displayNameProjets); |
projetsCombo.setWidth(250, 600); |
projetsCombo.setWidth(250, 650); |
projetsCombo.getCombo().setTabIndex(tabIndex++); |
projetsCombo.getCombo().setFieldLabel(i18nC.projetChamp()); |
projetsCombo.getCombo().setForceSelection(true); |
165,7 → 165,7 |
ProxyStructures<ModelData> proxyStructures = new ProxyStructures<ModelData>(); |
structuresCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyStructures, modelTypeStructures, displayNameStructures); |
structuresCombo.setWidth(250, 600); |
structuresCombo.setWidth(250, 650); |
structuresCombo.getCombo().setTabIndex(tabIndex++); |
structuresCombo.getCombo().setFieldLabel(i18nC.lienStructureCollection()); |
structuresCombo.getCombo().setForceSelection(true); |
202,7 → 202,7 |
ProxyCollections<ModelData> proxyCollections = new ProxyCollections<ModelData>(); |
collectionsCombo = new ChampComboBoxRechercheTempsReelPaginable(proxyCollections, modelTypeCollections, displayNameCollections); |
collectionsCombo.setWidth(250, 600); |
collectionsCombo.setWidth(250, 650); |
collectionsCombo.getCombo().setTabIndex(tabIndex++); |
collectionsCombo.getCombo().setFieldLabel(i18nC.lienMereCollection()); |
collectionsCombo.getCombo().setForceSelection(true); |
/branches/v1.0-syrah/src/org/tela_botanica/client/vues/structure/StructureForm.java |
---|
1583,8 → 1583,8 |
projetsCombo.getCombo().setForceSelection(true); |
projetsCombo.getCombo().addStyleName(ComposantClass.OBLIGATOIRE); |
projetsCombo.getCombo().addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire()); |
projetsCombo.setWidth(120, 450); |
fieldSetIdentite.add(projetsCombo, new FormData(450, 0)); |
projetsCombo.setWidth(120, 520); |
fieldSetIdentite.add(projetsCombo, new FormData(520, 0)); |
// Création du sous-formulaire : Acronyme |
LayoutContainer ligne = new LayoutContainer(); |
1758,7 → 1758,7 |
// Fieldset ADRESSE |
LayoutContainer principalFdAdresse = new LayoutContainer(); |
principalFdAdresse.setLayout(new ColumnLayout()); |
principalFdAdresse.setSize(700, -1); |
principalFdAdresse.setSize(1050, -1); |
LayoutContainer gaucheFdAdresse = new LayoutContainer(); |
gaucheFdAdresse.setLayout(creerFormLayout(null, LabelAlign.LEFT)); |
1765,7 → 1765,7 |
LayoutContainer droiteFdAdresse = new LayoutContainer(); |
droiteFdAdresse.setLayout(creerFormLayout(100, LabelAlign.LEFT)); |
droiteFdAdresse.setWidth(300); |
droiteFdAdresse.setWidth(700); |
FieldSet fieldSetAdresse = new FieldSet(); |
fieldSetAdresse.setHeading("Adresse"); |
1806,7 → 1806,7 |
ProxyValeur<ModelData> proxyPays = new ProxyValeur<ModelData>(nomListeTypes); |
comboPays = new ChampComboBoxRechercheTempsReelPaginable(proxyPays, modelTypesPays, displayNamePays); |
comboPays.setWidth(100,300); |
comboPays.setWidth(100,500); |
comboPays.getCombo().setTabIndex(tabIndex++); |
comboPays.getCombo().setFieldLabel("Pays"); |
comboPays.getCombo().setForceSelection(true); |
/branches/v1.0-syrah/src/org/tela_botanica/client/vues/projet/ProjetForm.java |
---|
190,7 → 190,7 |
ProxyValeur<ModelData> proxyLangues = new ProxyValeur<ModelData>(nomListeTypes); |
langueChp = new ChampComboBoxRechercheTempsReelPaginable(proxyLangues, modelTypesLangues, displayNameLangues); |
langueChp.setWidth(100,300); |
langueChp.setWidth(100, 550); |
langueChp.getCombo().setTabIndex(tabIndex++); |
langueChp.getCombo().setFieldLabel(i18nC.projetLangue()); |
langueChp.getCombo().setForceSelection(true); |
/branches/v1.0-syrah/src/org/tela_botanica/client/vues/commentaire/CommentaireForm.java |
---|
106,7 → 106,6 |
projetsCombo.getCombo().setForceSelection(true); |
projetsCombo.getCombo().setEditable(false); |
projetsCombo.getCombo().setAllowBlank(false); |
projetsCombo.getCombo().addStyleName(ComposantClass.OBLIGATOIRE); |
projetsCombo.getCombo().setValidator(new Validator() { |
public String validate(Field<?> champ, String valeurAValider) { |
String retour = null; |
118,7 → 117,6 |
return retour; |
} |
}); |
projetsCombo.getCombo().addListener(Events.Valid, Formulaire.creerEcouteurChampObligatoire()); |
panneauFormulaire.add(projetsCombo, new FormData(450, 0)); |
/branches/v1.0-syrah/src/org/tela_botanica/client/composants/ChampComboBoxRechercheTempsReelPaginable.java |
---|
18,6 → 18,11 |
import com.extjs.gxt.ui.client.widget.LayoutContainer; |
import com.extjs.gxt.ui.client.widget.VerticalPanel; |
import com.extjs.gxt.ui.client.widget.form.ComboBox; |
import com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout; |
import com.extjs.gxt.ui.client.widget.layout.AnchorLayout; |
import com.extjs.gxt.ui.client.widget.layout.BoxLayout; |
import com.extjs.gxt.ui.client.widget.layout.FitLayout; |
import com.extjs.gxt.ui.client.widget.layout.FlowLayout; |
import com.extjs.gxt.ui.client.widget.layout.FormData; |
import com.extjs.gxt.ui.client.widget.layout.FormLayout; |
44,7 → 49,7 |
private int start = 0; |
private int limit = 10; |
private int largeur = 200; |
private int largeur = 370; |
private LayoutContainer lc = null; |
private BasePagingLoadConfig plc = null; |
95,6 → 100,7 |
combo = new ComboBox<ModelData>(); |
combo.setWidth(largeur); |
this.setWidth(largeur); |
combo.setDisplayField(displayName); |
combo.setHideTrigger(false); |
combo.setPageSize(plc.getLimit()); |
113,13 → 119,9 |
}); |
lc = new LayoutContainer(); |
lc.add(combo); |
add(lc); |
this.add(combo); |
} |
/*------------ |
Accesseurs |
------------*/ |
147,14 → 149,16 |
public void setWidth(int tailleLabel, int largeurTotale) |
{ |
this.setWidth(largeurTotale); |
this.largeur = largeurTotale; |
// FIXME - problème avec la largeur de la combobox |
this.combo.setWidth(largeurTotale - tailleLabel); |
FormLayout fl = new FormLayout(); |
fl.setLabelWidth(tailleLabel); |
this.lc.setSize(largeurTotale, 0); |
this.lc.setLayout(fl); |
fl.setDefaultWidth(largeurTotale - tailleLabel); |
this.setLayout(fl); |
this.layout(); |
} |
/*----------------------------- |