/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservations.css |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservationsVue.ui.xml |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/observation.css |
---|
File deleted |
\ No newline at end of file |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservationsPresenteur.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/ObservationVue.ui.xml |
---|
File deleted |
\ No newline at end of file |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/RechercheObservationsVue.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/ObservationPresenteur.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/ObservationVue.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/detailImage.css |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/DetailImageVue.ui.xml |
---|
File deleted |
\ No newline at end of file |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/observationdeterminations/observationdetermination.css |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/observationdeterminations/ObservationDeterminationVue.ui.xml |
---|
File deleted |
\ No newline at end of file |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/observationdeterminations/ObservationDeterminationPresenteur.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/observationdeterminations/ObservationDeterminationVue.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/DetailImagePresenteur.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/detail/DetailVoteObservationVue.ui.xml |
---|
File deleted |
\ No newline at end of file |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/detail/DetailVoteObservationPresenteur.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/detail/DetailVoteObservationVue.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/DetailImageVue.java |
---|
File deleted |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsVue.ui.xml |
---|
New file |
0,0 → 1,21 |
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' |
xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' |
ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator" |
ui:generateLocales="default"> |
<ui:with field='res' type='org.tela_botanica.del.client.resources.Ressources' /> |
<ui:with field="constants" type="org.tela_botanica.del.client.i18n.Vocabulary" /> |
<ui:style src="MoteurRechercheObservations.css" /> |
<g:HTMLPanel> |
<g:HTMLPanel> |
<g:Label text="{constants.rechercherObservation}" styleName="titre" /> |
<g:Label text="{constants.entrerMotClef}" styleName="gris {style.entrerMotClef}" /> |
<g:HTMLPanel ui:field="zoneRecherche" /> |
</g:HTMLPanel> |
<g:HTMLPanel> |
<g:VerticalPanel ui:field="zoneResultats" /> |
</g:HTMLPanel> |
</g:HTMLPanel> |
</ui:UiBinder> |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsPresenteur.java |
---|
New file |
0,0 → 1,58 |
package org.tela_botanica.del.client.vues.rechercheobservations.moteur; |
import org.tela_botanica.del.client.composants.moteurrecherche.MoteurRecherchePresenteur; |
import org.tela_botanica.del.client.composants.moteurrecherche.MoteurRechercheVue; |
import org.tela_botanica.del.client.composants.presenteur.Presenteur; |
import org.tela_botanica.del.client.modeles.ModeRecherche; |
import org.tela_botanica.del.client.services.rest.ObservationService; |
import org.tela_botanica.del.client.services.rest.ObservationServiceConcret; |
import org.tela_botanica.del.client.vues.rechercheobservations.resultats.ResultatsRechercheObservationsPresenteur; |
import org.tela_botanica.del.client.vues.rechercheobservations.resultats.ResultatsRechercheObservationsVue; |
import com.google.gwt.user.client.ui.HasWidgets; |
import com.google.gwt.user.client.ui.IsWidget; |
public class MoteurRechercheObservationsPresenteur extends Presenteur { |
public interface Vue extends IsWidget { |
public HasWidgets getZoneRecherche(); |
public HasWidgets getZoneResultats(); |
} |
private Vue vue; |
public MoteurRechercheObservationsPresenteur(ObservationService serviceObs, Vue vue) { |
this.vue = vue; |
} |
public void go(HasWidgets composite) { |
composite.add(vue.asWidget()); |
ajouterMoteurRechercheAvancee(); |
gererEvenements(); |
} |
protected void ajouterMoteurRechercheAvancee() { |
MoteurRecherchePresenteur presenteur = new MoteurRecherchePresenteur(new MoteurRechercheVue("") { |
}, ModeRecherche.MODE_OBSERVATION) { |
@Override |
public void lancerRecherche() { |
chercherObservations(); |
} |
}; |
presenteur.go(vue.getZoneRecherche()); |
} |
public void chercherObservations() { |
vue.getZoneResultats().clear(); |
new ResultatsRechercheObservationsPresenteur(new ObservationServiceConcret(), new ResultatsRechercheObservationsVue()).go(vue.getZoneResultats()); |
} |
protected void gererEvenements() { |
} |
} |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservationsVue.java |
---|
New file |
0,0 → 1,39 |
package org.tela_botanica.del.client.vues.rechercheobservations.moteur; |
import com.google.gwt.core.client.GWT; |
import com.google.gwt.uibinder.client.UiBinder; |
import com.google.gwt.uibinder.client.UiField; |
import com.google.gwt.user.client.ui.Composite; |
import com.google.gwt.user.client.ui.HasWidgets; |
import com.google.gwt.user.client.ui.Panel; |
import com.google.gwt.user.client.ui.Widget; |
public class MoteurRechercheObservationsVue extends Composite implements MoteurRechercheObservationsPresenteur.Vue { |
// Gestion d'UiBinder |
interface Binder extends UiBinder<Widget, MoteurRechercheObservationsVue> { |
} |
private static Binder binder = GWT.create(Binder.class); |
@UiField |
Panel zoneRecherche, zoneResultats; |
public HasWidgets getZoneRecherche() { |
return zoneRecherche; |
} |
// Constructeur de la vue |
public MoteurRechercheObservationsVue() { |
initWidget(binder.createAndBindUi(this)); |
} |
public Panel getZoneResultats() { |
return zoneResultats; |
} |
} |
/trunk/src/org/tela_botanica/del/client/vues/rechercheobservations/moteur/MoteurRechercheObservations.css |
---|
New file |
0,0 → 1,51 |
.recherchePrincipale { |
width: 50%; |
font-size: 18px; |
padding: 5px; |
-moz-border-radius: 10px; |
border: solid 1px #AAA; |
} |
.boutonRecherche { |
border: solid 1px #AAA; |
-moz-border-radius: 10px; |
padding: 5px; |
cursor: pointer |
} |
.lienRechercheAvancee { |
cursor: pointer; |
text-decoration: underline; |
color: blue; |
float: right; |
margin-right: 240px; |
margin-top: 10px |
} |
.rechercheAvancee { |
border: solid 1px #333; |
padding: 10px; |
-moz-border-radius: 0 0 10px 10px; |
-moz-box-shadow: 5px 5px 10px #EEE; |
position: absolute; |
width: 700px; |
margin-top: 5px; |
background: white |
} |
.champRecherche { |
float: left; |
width: 50%; |
padding-bottom: 5px |
} |
.recherchePrecedente { |
color: #555; |
padding: 5px; |
font-style: italic |
} |
.entrerMotClef { |
margin-bottom: 10px |
} |