Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 45 → Rev 46

/src/org/tela_botanica/del/client/vues/plateformedetermination/Determination.java
File deleted
/src/org/tela_botanica/del/client/vues/plateformedetermination/Determination.ui.xml
File deleted
\ No newline at end of file
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/Forum.ui.xml
File deleted
\ No newline at end of file
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/Forum.java
File deleted
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/ForumVue.ui.xml
New file
0,0 → 1,9
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:vues="urn:import:org.tela_botanica.del.client.vues.plateformedetermination.forum">
<g:HTML ui:field='htmlTableau' />
 
</ui:UiBinder>
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/ForumPresenteur.java
New file
0,0 → 1,35
package org.tela_botanica.del.client.vues.plateformedetermination.forum;
 
import java.util.List;
 
import org.tela_botanica.del.client.modeles.ObservationDetermination;
import org.tela_botanica.del.client.utils.MockDatasource;
 
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.HTML;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
 
public class ForumPresenteur {
private ForumVue forumVue = new ForumVue();
 
private final MockDatasource validationService = MockDatasource.getInstance();
private List<ObservationDetermination> determinations;
private String idObservation = "0";
public void go(HasWidgets composite) {
chargerCommentaires();
composite.add(forumVue);
}
private void chargerCommentaires() {
determinations = validationService.getDeterminationData(idObservation);
forumVue.chargerObservations(determinations);
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/forum/ForumVue.java
New file
0,0 → 1,50
package org.tela_botanica.del.client.vues.plateformedetermination.forum;
 
import java.util.List;
 
import org.tela_botanica.del.client.modeles.ObservationDetermination;
 
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.HTML;
import com.google.gwt.user.client.ui.Widget;
 
public class ForumVue extends Composite {
private static ForumUIiBinder uiBinder = GWT.create(ForumUIiBinder.class);
interface ForumUIiBinder extends UiBinder<Widget, ForumVue>{};
@UiField(provided = true)
HTML htmlTableau = new HTML();
public ForumVue() {
initWidget(uiBinder.createAndBindUi(this));
}
public void chargerObservations(List<ObservationDetermination> determinations) {
String ligne = "<table>"+
"<tr>"+
"<th> Espèce </th>"+
"<th> Contributeur </th>"+
"<th> Fiabilité </th>"+
"<th> Date de transmission </th>"+
"<th> Commentaires </th>"+
"</tr>";
for (ObservationDetermination observationDetermination : determinations) {
ligne += "<tr>"+
"<td>"+observationDetermination.getEspece()+"</td>"+
"<td>"+observationDetermination.getContributeur()+"</td>"+
"<td>"+observationDetermination.getPourcentageConfiance()+"%</td>"+
"<td>"+observationDetermination.getDateCommentaire()+"</td>"+
"<td>"+observationDetermination.getCommentaire()+"</td>"+
"</tr>";
}
ligne += "</table>";
htmlTableau.setHTML(ligne);
}
 
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/formulaireproposition/FormulaireProposition.ui.xml
File deleted
\ No newline at end of file
/src/org/tela_botanica/del/client/vues/plateformedetermination/formulaireproposition/FormulaireProposition.java
File deleted
/src/org/tela_botanica/del/client/vues/plateformedetermination/formulaireproposition/FormulairePropositionVue.ui.xml
New file
0,0 → 1,18
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:vues="urn:import:org.tela_botanica.del.client.vues.plateformedetermination.forum">
 
<g:VerticalPanel>
<g:HTML> Proposer sa détermination </g:HTML>
<g:FlowPanel>
<g:TextBox ui:field="nomPrenom" />
<g:ListBox ui:field="choixProposition" />
<g:TextBox ui:field="autreProposition" />
<g:TextBox ui:field="pourcentageConfiance" />
<g:TextArea ui:field="commentaires" />
</g:FlowPanel>
</g:VerticalPanel>
 
</ui:UiBinder>
/src/org/tela_botanica/del/client/vues/plateformedetermination/formulaireproposition/FormulairePropositionPresenteur.java
New file
0,0 → 1,25
package org.tela_botanica.del.client.vues.plateformedetermination.formulaireproposition;
 
import java.util.ArrayList;
 
import org.tela_botanica.del.client.utils.MockDatasource;
 
import com.google.gwt.user.client.ui.HasWidgets;
 
public class FormulairePropositionPresenteur {
private final MockDatasource validationService = MockDatasource.getInstance();
private ArrayList<String> propositionsTaxons;
private String idImage = "0";
private FormulairePropositionVue formulairePropositionVue = new FormulairePropositionVue();
public void go(HasWidgets composite) {
propositionsTaxons = validationService.getPropositionsTaxonsData(idImage);
formulairePropositionVue.chargerPropositionsTaxons(propositionsTaxons);
composite.add(formulairePropositionVue);
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/formulaireproposition/FormulairePropositionVue.java
New file
0,0 → 1,49
package org.tela_botanica.del.client.vues.plateformedetermination.formulaireproposition;
 
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
 
import org.tela_botanica.del.client.modeles.ObservationDetermination;
import org.tela_botanica.del.client.utils.MockDatasource;
 
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.ListBox;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
 
public class FormulairePropositionVue extends Composite {
@UiField(provided = true)
public TextBox nomPrenom = new TextBox();
@UiField(provided = true)
public ListBox choixProposition = new ListBox();
@UiField(provided = true)
public TextBox autreProposition = new TextBox();
@UiField(provided = true)
public TextBox pourcentageConfiance = new TextBox();
@UiField(provided = true)
public TextArea commentaires = new TextArea();
interface FormulairePropositionUIiBinder extends UiBinder<Widget, FormulairePropositionVue>{};
FormulairePropositionUIiBinder uiBinder = GWT.create(FormulairePropositionUIiBinder.class);
 
public FormulairePropositionVue() {
initWidget(uiBinder.createAndBindUi(this));
}
public void chargerPropositionsTaxons(ArrayList<String> propositionsTaxons) {
for(Iterator<String> it = propositionsTaxons.iterator(); it.hasNext();) {
choixProposition.addItem(it.next());
}
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/DeterminationVue.ui.xml
New file
0,0 → 1,14
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:forum="urn:import:org.tela_botanica.del.client.vues.plateformedetermination.forum">
 
 
<g:VerticalPanel>
<g:VerticalPanel ui:field="detailImageObservation"></g:VerticalPanel>
<g:VerticalPanel ui:field="forum"></g:VerticalPanel>
<g:VerticalPanel ui:field="formulaireProposition"></g:VerticalPanel>
</g:VerticalPanel>
 
</ui:UiBinder>
/src/org/tela_botanica/del/client/vues/plateformedetermination/DeterminationPresenteur.java
New file
0,0 → 1,26
package org.tela_botanica.del.client.vues.plateformedetermination;
 
import org.tela_botanica.del.client.vues.plateformedetermination.detail.DetailImageObservationPresenteur;
import org.tela_botanica.del.client.vues.plateformedetermination.formulaireproposition.FormulairePropositionPresenteur;
import org.tela_botanica.del.client.vues.plateformedetermination.formulaireproposition.FormulairePropositionVue;
import org.tela_botanica.del.client.vues.plateformedetermination.forum.ForumPresenteur;
 
import com.google.gwt.user.client.ui.HasWidgets;
 
public class DeterminationPresenteur {
DeterminationVue determinationVue = new DeterminationVue();
public DeterminationPresenteur() {
 
}
public void go(HasWidgets composite) {
new DetailImageObservationPresenteur().go(determinationVue.getDetailImageObservation());
new ForumPresenteur().go(determinationVue.getForum());
new FormulairePropositionPresenteur().go(determinationVue.getFormulaireProposition());
composite.add(determinationVue);
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/DeterminationVue.java
New file
0,0 → 1,39
package org.tela_botanica.del.client.vues.plateformedetermination;
 
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.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
 
public class DeterminationVue extends Composite {
@UiField(provided = true)
VerticalPanel forum = new VerticalPanel();
@UiField(provided = true)
VerticalPanel detailImageObservation = new VerticalPanel();
@UiField(provided = true)
VerticalPanel formulaireProposition = new VerticalPanel();
interface DeterminationUIiBinder extends UiBinder<Widget, DeterminationVue>{};
private static DeterminationUIiBinder uiBinder = GWT.create(DeterminationUIiBinder.class);
 
public DeterminationVue() {
initWidget(uiBinder.createAndBindUi(this));
}
public VerticalPanel getForum() {
return forum;
}
public VerticalPanel getDetailImageObservation() {
return detailImageObservation;
}
public VerticalPanel getFormulaireProposition() {
return formulaireProposition;
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/detail/DetailImageObservation.ui.xml
File deleted
\ No newline at end of file
/src/org/tela_botanica/del/client/vues/plateformedetermination/detail/DetailImageObservation.java
File deleted
/src/org/tela_botanica/del/client/vues/plateformedetermination/detail/DetailImageObservationVue.ui.xml
New file
0,0 → 1,12
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
 
<g:VerticalPanel>
<g:HTML>Image</g:HTML>
<g:HTML>Notes</g:HTML>
<g:HTML>Proposer sa determination</g:HTML>
</g:VerticalPanel>
 
</ui:UiBinder>
/src/org/tela_botanica/del/client/vues/plateformedetermination/detail/DetailImageObservationPresenteur.java
New file
0,0 → 1,28
package org.tela_botanica.del.client.vues.plateformedetermination.detail;
 
import java.util.List;
 
import org.tela_botanica.del.client.modeles.ObservationDetermination;
import org.tela_botanica.del.client.utils.MockDatasource;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;
 
public class DetailImageObservationPresenteur {
private final MockDatasource validationService = MockDatasource.getInstance();
private List<ObservationDetermination> determinations;
private DetailImageObservationVue detailImageObservationVue = new DetailImageObservationVue();
private Image imageTaxon;
public void go(HasWidgets composite) {
composite.add(detailImageObservationVue);
}
}
/src/org/tela_botanica/del/client/vues/plateformedetermination/detail/DetailImageObservationVue.java
New file
0,0 → 1,18
package org.tela_botanica.del.client.vues.plateformedetermination.detail;
 
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
 
public class DetailImageObservationVue extends Composite {
private static DetailImageObservationUIiBinder uiBinder = GWT.create(DetailImageObservationUIiBinder.class);
interface DetailImageObservationUIiBinder extends UiBinder<Widget, DetailImageObservationVue>{};
public DetailImageObservationVue() {
initWidget(uiBinder.createAndBindUi(this));
}
}