/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.java |
---|
79,15 → 79,6 |
String chargement(); |
/** |
* Translated "Choisir un protocole". |
* |
* @return translated "Choisir un protocole" |
*/ |
@DefaultStringValue("Choisir un protocole") |
@Key("choisirProtocole") |
String choisirProtocole(); |
/** |
* Translated "Choisir un taxon". |
* |
* @return translated "Choisir un taxon" |
322,6 → 313,15 |
String infoVous(); |
/** |
* Translated "Choisir un protocole". |
* |
* @return translated "Choisir un protocole" |
*/ |
@DefaultStringValue("Choisir un protocole") |
@Key("labelProtocole") |
String labelProtocole(); |
/** |
* Translated "Propositions ". |
* |
* @return translated "Propositions " |
466,6 → 466,15 |
String protocole(); |
/** |
* Translated "Protocole par défaut". |
* |
* @return translated "Protocole par défaut" |
*/ |
@DefaultStringValue("Protocole par défaut") |
@Key("protocoleDefaut") |
String protocoleDefaut(); |
/** |
* Translated "Esthetisme". |
* |
* @return translated "Esthetisme" |
484,11 → 493,11 |
String protocoleIdentificationAuto(); |
/** |
* Translated "Recherche avancee". |
* Translated "Recherche avancée". |
* |
* @return translated "Recherche avancee" |
* @return translated "Recherche avancée" |
*/ |
@DefaultStringValue("Recherche avancee") |
@DefaultStringValue("Recherche avancée") |
@Key("rechercheAvancee") |
String rechercheAvancee(); |
520,11 → 529,11 |
String rechercherImage(); |
/** |
* Translated "Rechercher une observation". |
* Translated "Identifier une plante". |
* |
* @return translated "Rechercher une observation" |
* @return translated "Identifier une plante" |
*/ |
@DefaultStringValue("Rechercher une observation") |
@DefaultStringValue("Identifier une plante") |
@Key("rechercherObservation") |
String rechercherObservation(); |
/trunk/src/org/tela_botanica/del/client/i18n/Vocabulary.properties |
---|
23,7 → 23,8 |
nom = Nom |
auteur = Auteur |
protocole = Protocole |
choisirProtocole = Choisir un protocole |
protocoleDefaut = Protocole par défaut |
labelProtocole = Choisir un protocole |
vous = Vous |
contributeur= Contributeur |
commentaire = Commentaire |
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImageVue.ui.xml |
---|
15,7 → 15,7 |
<g:HorizontalPanel ui:field="zoneRecherche"/> |
</g:HorizontalPanel> |
</g:HTMLPanel> |
<g:HTMLPanel styleName="{style.zoneProtocoles}"><g:ListBox ui:field="listeProtocoles"/></g:HTMLPanel> |
<g:HTMLPanel styleName="{style.zoneProtocoles}"><g:Label text="{constants.labelProtocole}" styleName="{style.labelProtocole}"/><g:ListBox ui:field="listeProtocoles"/></g:HTMLPanel> |
<g:HTMLPanel ui:field="panneauResultats" /> |
</g:HTMLPanel> |
</ui:UiBinder> |
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/rechercheImage.css |
---|
1,7 → 1,7 |
.zoneRecherche{width:100%} |
.moteurRecherche {margin-bottom:10px;} |
.moteurRecherche button {margin-left:2px; margin-top:-1px} |
.labelProtocole {padding:4px 5px 0 15px;} |
.labelProtocole {padding:0 5px 0 0; float:left} |
.labelProtocole:after {content:" :"} |
.entrerMotClef {margin-bottom:10px;} |
.zoneProtocoles {margin-left:40%; position:absolute;} |
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImagePresenteur.java |
---|
31,6 → 31,7 |
public HasWidgets getZoneResultats(); |
public HasWidgets getZoneRecherche(); |
public String getNomProtocolSelectionne(); |
public int getIdProtocolSelectionne(); |
} |
private Vue vue; |
40,7 → 41,7 |
private List<Protocole> protocoles; |
// TODO : passer ça en cache |
private String protocoleParDefaut = Protocole.IDENTIFICATION_AUTOMATIQUE; |
private String protocoleParDefaut = Protocole.ESTHETISME; |
/** |
* Constructeur |
47,7 → 48,6 |
* */ |
public MoteurRechercheImagePresenteur(Vue vue) { |
this.vue = vue; |
if (CacheClient.getInstance().getProtocoleCourant() == null) { |
CacheClient.getInstance().setProtocoleCourant(protocoleService.getProtocole(protocoleParDefaut)); |
} |
76,7 → 76,7 |
public void onChange(ChangeEvent event) { |
Protocole protocoleCourant = null; |
for (Protocole protocole : protocoles) { |
if (protocole.getNom().equals(vue.getNomProtocolSelectionne())) { |
if (protocole.getId() == vue.getIdProtocolSelectionne()) { |
protocoleCourant = protocole; |
} |
} |
/trunk/src/org/tela_botanica/del/client/vues/rechercheimages/MoteurRechercheImageVue.java |
---|
33,7 → 33,6 |
// Constructeur |
public MoteurRechercheImageVue() { |
initWidget(uiBinder.createAndBindUi(this)); |
this.ajouterProtocole(I18n.getVocabulary().choisirProtocole()); |
} |
public Panel getPanneauChargement() { |
74,4 → 73,9 |
public String getNomProtocolSelectionne() { |
return listeProtocoles.getValue(listeProtocoles.getSelectedIndex()); |
} |
@Override |
public int getIdProtocolSelectionne() { |
return listeProtocoles.getSelectedIndex(); |
} |
} |
/trunk/src/org/tela_botanica/del/client/modeles/Protocole.java |
---|
4,7 → 4,7 |
private int id; |
private String nom; |
public static String ESTHETISME = "Esthetisme"; |
public static String ESTHETISME = "Par défaut"; |
public static String IDENTIFICATION_AUTOMATIQUE = "Identification automatique"; |
public int getId() { |
/trunk/src/org/tela_botanica/del/client/utils/MockDatasource.java |
---|
93,11 → 93,11 |
Protocole protocol1 = new Protocole(); |
protocol1.setNom(Protocole.ESTHETISME); |
protocol1.setId(1); |
protocol1.setId(0); |
Protocole protocol2 = new Protocole(); |
protocol2.setNom(Protocole.IDENTIFICATION_AUTOMATIQUE); |
protocol2.setId(2); |
protocol2.setId(1); |
protocoles.add(protocol1); |
protocoles.add(protocol2); |