Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

No changes between revisions

Ignore whitespace Rev 12 → Rev 11

/trunk/src/org/tela_botanica/client/DateList.java
File deleted
/trunk/src/org/tela_botanica/client/InventoryItem.java
File deleted
/trunk/src/org/tela_botanica/client/CalendarWidget.java
File deleted
\ No newline at end of file
/trunk/src/org/tela_botanica/client/EntryPanel.java
File deleted
/trunk/src/org/tela_botanica/client/InventoryItemList.java
62,14 → 62,11
public final Button gotoPrev = new Button("<", this);
 
public final Button gotoEnd = new Button(">>", this);
 
public final HTML status = new HTML();
 
public NavBar() {
initWidget(bar);
bar.setStyleName("navbar");
status.setStyleName("status");
100,27 → 97,8
VerticalPanel actions = new VerticalPanel();
HorizontalPanel actionButton = new HorizontalPanel();
HTML addButton = new HTML("Nouvelle observation");
addButton.setStyleName("html_button");
addButton.addClickListener(
new ClickListener() {
public void onClick(Widget w) {
openEntryPanel();
}
}
);
 
actionButton.add(addButton);
HTML delButton=new HTML("Suppression");
delButton.setStyleName("html_button");
delButton.addClickListener(
141,64 → 119,14
 
actions.add(actionButton);
 
HorizontalPanel selections = new HorizontalPanel();
selections.setSpacing(3);
 
selections.add(new HTML("Sélection : "));
Label allLabel = new Label("Tous");
Label separatorLabel = new Label(",");
Label noneLabel = new Label("Aucun");
allLabel.setStyleName("selection_label");
noneLabel.setStyleName("selection_label");
selections.add(allLabel);
allLabel.addClickListener(
new ClickListener() {
public void onClick(Widget sender) {
selectAll();
}
}
);
selections.add(separatorLabel);
selections.add(noneLabel);
noneLabel.addClickListener(
new ClickListener() {
public void onClick(Widget sender) {
deselectAll();
}
}
);
 
actionButton.add(selections);
 
 
bar.add(actions, DockPanel.WEST);
 
}
private void openEntryPanel() {
 
mediator.onEntryClick();
 
}
 
 
public void onClick(Widget sender) {
if (sender == gotoNext) {
// Move forward a page.
249,9 → 177,22
private NavBar navBar=null;
private Mediator mediator = null;
// Optimization
int sizeChecked=0;
int itemDeleted=0;
// Données alimentant la saisie : texte et valeur localité, texte et valeur communes
private String nameText=null;
private String nameValue=null;
private String locationText=null;
private String locationValue=null;
 
//
private String location = "all";
private String date = "all";
public InventoryItemList(Mediator med) {
 
274,15 → 215,15
header.setCellPadding(2);
header.setWidth("100%");
 
header.setStyleName("inventoryItem-ListHeader");
header.setStyleName("taxon-ListHeader");
 
header.setText(0, 0, "");
header.setHTML(0, 1, "Plante observée");
header.setHTML(0, 2, "Référence retenue");
header.setHTML(0, 3, "R&eacute;f&eacute;rence<br>Nomenclaturale");
header.setHTML(0, 4, "R&eacute;f&eacute;rence<br>Taxonomique");
header.setText(0, 1, "Nom saisi");
header.setText(0, 2, "Nom retenu");
header.setHTML(0, 3, "Code<br>Nomenclatural");
header.setHTML(0, 4, "Code<br>Taxonomique");
header.setText(0, 5, "Famille");
header.setText(0, 6, "Commune");
header.setText(0, 6, "Localisation");
 
header.getCellFormatter().setWidth(0, 0, "2%");
header.getCellFormatter().setWidth(0, 1, "31%");
303,14 → 244,51
 
navBar.setWidth("100%");
 
table.setStyleName("inventoryItem-List");
table.setStyleName("taxon-List");
 
panel.add(navBar);
panel.add(header);
panel.add(table);
 
//updateCount();
HorizontalPanel selections = new HorizontalPanel();
selections.setSpacing(3);
 
selections.add(new HTML("S&eacute;lection : "));
Label allLabel = new Label("Tous");
Label separatorLabel = new Label(",");
Label noneLabel = new Label("Aucun");
allLabel.setStyleName("selection_label");
noneLabel.setStyleName("selection_label");
selections.add(allLabel);
allLabel.addClickListener(
new ClickListener() {
public void onClick(Widget sender) {
selectAll();
}
}
);
selections.add(separatorLabel);
selections.add(noneLabel);
noneLabel.addClickListener(
new ClickListener() {
public void onClick(Widget sender) {
deselectAll();
}
}
);
 
panel.add(selections);
updateCount();
// update()
 
318,12 → 296,7
 
 
}
 
 
/**
* Action lancee par la selection d'un nom dans l'assistant de saisie. Lance
* la recherche d'informations complémentaires (famille, numero
334,20 → 307,25
public void onValidate(SourcesAutoCompleteAsyncTextBoxEvents sender,
String str, String value) {
// Le nom de plante est requis
if (mediator.getNameAssistant().getText().compareTo("")==0) {
return;
}
 
mediator.onAddInventoryItem();
}
nameText=(mediator.getNameAssistant()).getText();
nameValue=(mediator.getNameAssistant()).getValue();
public void addelement() {
if (mediator.inventoryItemIsValid()) {
final InventoryItem inventoryItem=mediator.getInventoryItem();
setStatusDisabled();
locationText=(mediator.getLocationAssistant()).getText();
locationValue=(mediator.getLocationAssistant()).getValue();
// Suppresion indication departementale (on pourrait faire mieux !!)
int pos=locationText.indexOf(" (" );
if (pos>=0) {
locationText=locationText.substring(0,pos);
}
setStatusDisabled();
// On met a jour rapidement l'affichage puis on lance la requete ....
363,9 → 341,9
// Recherche complement d'information
if (inventoryItem.getNomenclaturalNumber() !=null) {
if (nameValue !=null) {
HTTPRequest.asyncGet(serviceBaseUrl + "/NameValid/" + inventoryItem.getNomenclaturalNumber(),
HTTPRequest.asyncGet(serviceBaseUrl + "/NameValid/" + nameValue,
new ResponseTextHandler() {
public void onCompletion(String strcomplete) {
376,7 → 354,7
if ((jsonArray = jsonValue.isArray()) != null) {
// Nom retenu, Num Nomen nom retenu, Num Taxon,
// Famille
addElement(inventoryItem.getName(), inventoryItem.getNomenclaturalNumber(),
addElement(nameText, nameValue,
((JSONString) jsonArray.get(0))
.stringValue(),
((JSONString) jsonArray.get(1))
385,7 → 363,7
.stringValue(),
((JSONString) jsonArray.get(3))
.stringValue(),
inventoryItem.getLocation(),inventoryItem.getLocation_id(),inventoryItem.getDate(),inventoryItem.getComplementlocation(),inventoryItem.getComment());
locationText,locationValue);
}
}
393,14 → 371,11
}
// Saisie libre
else {
addElement(inventoryItem.getName(), " ", " ", " ", " ", " ",inventoryItem.getLocation(),inventoryItem.getLocation_id(),inventoryItem.getDate(),inventoryItem.getComplementlocation(),inventoryItem.getComment());
addElement(nameText, " ", " ", " ", " ", " ",locationText,locationValue);
}
}
else {
return;
}
}
 
/**
* Ajoute un element à l'inventaire
419,8 → 394,8
* famille
*/
 
private void addElement(String nom_sel, String num_nom_sel, String nom_ret,
String num_nom_ret, String num_taxon, String famille,final String loc, String id_location,String dat, String complementLocation, String comment) {
public void addElement(String nom_sel, String num_nom_sel, String nom_ret,
String num_nom_ret, String num_taxon, String famille,final String loc, String id_location) {
 
// Calcul du nouveau numéro d'ordre
 
428,16 → 403,12
HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/", "identifiant="
+ user + "&nom_sel=" + nom_sel + "&num_nom_sel=" + num_nom_sel
+ "&nom_ret=" + nom_ret + "&num_nom_ret=" + num_nom_ret
+ "&num_taxon=" + num_taxon + "&famille=" + famille + "&location=" + loc + "&id_location=" + id_location + "&date_observation=" + dat
+ "&station="+ complementLocation + "&commentaire="+ comment,
+ "&num_taxon=" + num_taxon + "&famille=" + famille + "&location=" + loc + "&id_location=" + id_location,
 
new ResponseTextHandler() {
 
public void onCompletion(String str) {
location=loc;
if (location.compareTo("")==0) {
location="000null";
}
updateCount();
}
});
454,32 → 425,32
boolean checked = false;
Vector parseChecked = new Vector();
 
// TODO : optimiser
// Lifo ...
for (int i = table.getRowCount() - 1; i >= 0; i--) {
if (table.getWidget(i, 0)!=null) {
if (((CheckBox) table.getWidget(i, 0)).isChecked()) {
checked = true;
// Numero ordre
parseChecked.add(table.getText(i, 7));
count--;
}
}
if (((CheckBox) table.getWidget(i, 0)).isChecked()) {
checked = true;
// Numero ordre
parseChecked.add(table.getText(i, 7));
count--;
}
}
StringBuffer ids=new StringBuffer();
sizeChecked=parseChecked.size();
itemDeleted=0;
for (Iterator it = parseChecked.iterator(); it.hasNext();) {
ids.append((String)it.next());
if (it.hasNext()) ids.append(",");
}
HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/" + user
+ "/" + ids.toString(), "action=DELETE",
itemDeleted++;
HTTPRequest.asyncPost(serviceBaseUrl + "/Inventory/" + user
+ "/" + (String) it.next(), "action=DELETE",
new ResponseTextHandler() {
public void onCompletion(String str) {
// Optimisation : on ne lance la suppression qu'a la fin
if (itemDeleted==sizeChecked) {
updateCount();
}
}
});
 
}
if (!checked) {
setStatusEnabled();
}
492,9 → 463,7
 
public void selectAll() {
 
// TODO : optimiser ...
for (int i = table.getRowCount() - 1; i >= 0; i--) {
if (table.getWidget(i, 0)!=null)
((CheckBox) table.getWidget(i, 0)).setChecked(true);
}
}
501,9 → 470,7
 
public void deselectAll() {
// TODO : optimiser ...
for (int i = table.getRowCount() - 1; i >= 0; i--) {
if (table.getWidget(i, 0)!=null)
((CheckBox) table.getWidget(i, 0)).setChecked(false);
}
}
517,13 → 484,8
public void updateCount() {
setStatusDisabled();
String adate="all";
if (date.compareTo("all")!=0) {
adate=date.substring(6,10)+"-"+date.substring(3,5)+"-"+date.substring(0,2)+" 00:00:00";
}
 
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryItemList/" + user + "/" + location + "/" + adate ,
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryItemList/" + user + "/" + location,
new ResponseTextHandler() {
 
public void onCompletion(String str) {
560,12 → 522,7
 
setStatusDisabled();
 
String adate="all";
if (date.compareTo("all")!=0) {
adate=date.substring(6,10)+"-"+date.substring(3,5)+"-"+date.substring(0,2)+" 00:00:00";
}
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryItemList/" + user + "/" + location +"/" + adate + "/"+
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryItemList/" + user + "/" + location +"/"
+ startIndex + "/" + VISIBLE_TAXON_COUNT,
 
new ResponseTextHandler() {
576,7 → 533,6
JSONArray jsonArray;
JSONArray jsonArrayNested;
 
int row=0;
int i=0;
if ((jsonArray = jsonValue.isArray()) != null) {
589,55 → 545,23
else {
row = i;
}
 
// Case a cocher
table.setWidget(row, 0, new CheckBox());
// Nom saisi
table.setText(row, 1, ((JSONString) jsonArrayNested
.get(0)).stringValue());
// Nom retenu
String aname=((JSONString) jsonArrayNested .get(2)).stringValue();
if (aname.compareTo("null")==0) {
table.setText(row, 2, "");
}
else {
table.setText(row, 2, aname);
}
table.setText(row, 2, ((JSONString) jsonArrayNested
.get(2)).stringValue());
// Num nomenclatural
String ann=((JSONString) jsonArrayNested .get(3)).stringValue();
if (ann.compareTo("0")==0) {
table.setText(row, 3, "");
}
else {
table.setText(row, 3, ann);
}
 
table.setText(row, 3, ((JSONString) jsonArrayNested
.get(1)).stringValue());
// Num Taxonomique
String ant=((JSONString) jsonArrayNested .get(4)).stringValue();
if (ant.compareTo("0")==0) {
table.setText(row, 4, "");
}
else {
table.setText(row, 4, ann);
}
 
table.setText(row, 4, ((JSONString) jsonArrayNested
.get(4)).stringValue());
// Famille
String afamily=((JSONString) jsonArrayNested .get(5)).stringValue();
if (afamily.compareTo("null")==0) {
table.setText(row, 5, "");
}
else {
table.setText(row, 5, afamily);
}
table.setText(row, 5, ((JSONString) jsonArrayNested
.get(5)).stringValue());
 
table.getFlexCellFormatter().setWidth(row, 0, "2%");
645,48 → 569,31
.setWidth(row, 1, "31%");
table.getFlexCellFormatter()
.setWidth(row, 2, "31%");
table.getFlexCellFormatter().setWidth(row, 3, "9%");
table.getFlexCellFormatter().setWidth(row, 4, "9%");
table.getFlexCellFormatter().setWidth(row, 5, "9%");
 
// TODO : Bool ici non ?
// Affichage contenu commune si tout demandé.
String aloc=((JSONString) jsonArrayNested .get(6)).stringValue();
if (location.compareTo("all")==0) {
// Localisation - Lieu
String aloc=((JSONString) jsonArrayNested .get(6)).stringValue();
if (aloc.compareTo("000null")==0) {
if (aloc.compareTo("000null")==00) {
table.setText(row, 6, "Inconnu");
}
else {
table.setText(row, 6, aloc );
table.setText(row, 6, ((JSONString) jsonArrayNested .get(6)).stringValue());
}
 
header.getCellFormatter().setVisible(0, 6,true);
table.getFlexCellFormatter().setWidth(row, 1, "31%");
table.getFlexCellFormatter().setWidth(row, 2, "31%");
 
table.getFlexCellFormatter().setWidth(row, 3, "9%");
table.getFlexCellFormatter().setWidth(row, 4, "9%");
table.getFlexCellFormatter().setWidth(row, 5, "9%");
table.getFlexCellFormatter().setWidth(row, 6, "9%");
 
}
else {
header.getCellFormatter().setVisible(0, 6,false);
table.getCellFormatter().setVisible(row, 6,false);
table.getFlexCellFormatter().setWidth(row, 1, "36%");
table.getFlexCellFormatter().setWidth(row, 2, "36%");
 
table.getFlexCellFormatter().setWidth(row, 3, "9%");
table.getFlexCellFormatter().setWidth(row, 4, "9%");
table.getFlexCellFormatter().setWidth(row, 5, "8%");
}
table.getFlexCellFormatter().setWidth(row, 6, "9%");
// Numero d'ordre (caché)
table.setText(row, 7, ((JSONString) jsonArrayNested
699,8 → 606,6
 
}
}
 
// Suppression fin ancien affichage
if (i<table.getRowCount()-1) {
for (int j = table.getRowCount() - 1; j > i-1; j--) {
801,12 → 706,6
public void setLocation(String location) {
this.location = location;
}
 
 
 
public void setDate(String date) {
this.date = date;
}
/trunk/src/org/tela_botanica/client/LeftPanel.java
27,23 → 27,16
public class LeftPanel extends Composite {
 
private LocationList locationList = null;
private DateList dateList = null;
 
public LeftPanel(Mediator mediator) {
 
HorizontalPanel inner = new HorizontalPanel();
dateList = new DateList(mediator);
locationList = new LocationList(mediator);
dateList.setStyleName("dateList");
locationList.setStyleName("locationList");
VerticalPanel outer = new VerticalPanel();
 
outer.add(inner);
outer.add(locationList);
outer.add(dateList);
outer.setCellHeight(inner,"100%");
 
initWidget(outer);
/trunk/src/org/tela_botanica/client/AutoCompleteAsyncTextBox.java
120,6 → 120,9
}
 
/**
* Not used at all
*/
public void onKeyDown(Widget arg0, char arg1, int arg2) {
/trunk/src/org/tela_botanica/client/CenterPanel.java
19,8 → 19,6
 
inventoryItemList = new InventoryItemList(mediator);
inventoryItemList.setStyleName("inventoryItemList");
 
VerticalPanel outer = new VerticalPanel();
/trunk/src/org/tela_botanica/client/TopPanel.java
16,6 → 16,7
package org.tela_botanica.client;
 
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
25,21 → 26,62
*/
 
public class TopPanel extends Composite {
private NameAssistant nameAssistant = null;
private LocationAssistant locationAssistant = null;
 
public TopPanel(final Mediator mediator) {
VerticalPanel outer = new VerticalPanel();
VerticalPanel inner = new VerticalPanel();
 
nameAssistant = new NameAssistant(mediator);
locationAssistant = new LocationAssistant(mediator);
DockPanel namePanel = new DockPanel();
DockPanel locationPanel = new DockPanel();
HTML labelNameAssistant = new HTML("Nom:&nbsp;");
namePanel.add(labelNameAssistant,DockPanel.WEST);
namePanel.add (nameAssistant,DockPanel.CENTER);
nameAssistant.setWidth("100%");
namePanel.setCellWidth(labelNameAssistant,"7%");
namePanel.setCellWidth(nameAssistant,"93%");
namePanel.setWidth("50%");
 
HTML labelLocationAssistant= new HTML("Lieu:&nbsp;");
locationPanel.add(labelLocationAssistant,DockPanel.WEST);
locationPanel.add (locationAssistant,DockPanel.CENTER);
locationAssistant.setWidth("100%");
locationPanel.setCellWidth(locationAssistant,"7%");
locationPanel.setCellWidth(locationAssistant,"93%");
locationPanel.setWidth("50%");
inner.add(namePanel);
inner.add(locationPanel);
public TopPanel(final Mediator med) {
VerticalPanel outer = new VerticalPanel();
inner.setCellWidth(namePanel,"50%");
inner.setCellWidth(locationPanel,"50%");
 
 
outer.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
 
outer.add(new HTML("<b>Carnet en ligne</b>"));
 
outer.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
 
outer.add(inner);
 
inner.setWidth("100%");
 
 
initWidget(outer);
}
 
/trunk/src/org/tela_botanica/client/Cel.java
16,11 → 16,10
private TopPanel topPanel = null;
private CenterPanel centerPanel = null;
private LeftPanel leftPanel = null;
private EntryPanel entryPanel = null;
private Mediator mediator = null;
 
 
/**
* This is the entry point method.
*/
38,17 → 37,14
 
centerPanel = new CenterPanel(mediator);
topPanel = new TopPanel(mediator);
leftPanel = new LeftPanel(mediator);
 
entryPanel = new EntryPanel(mediator);
// Information haut de page (nom application, connexion ... etc).
// A regler
entryPanel.setStyleName("item-Input");
topPanel.setWidth("100%");
 
// DockPanel permet d'arranger plusieurs panneaux au coins cardinaux, le panneau central remplissant
59,7 → 55,6
outer.add(topPanel, DockPanel.NORTH);
outer.add(centerPanel, DockPanel.CENTER);
outer.add(leftPanel, DockPanel.WEST);
// outer.add(bottomPanel, DockPanel.SOUTH);
centerPanel.setWidth("100%");
// LeftPanel :
73,18 → 68,12
// Window.enableScrolling(false);
Window.setMargin("0px");
 
mediator.onInit();
entryPanel.show();
RootPanel.get().add(outer);
 
 
}
 
 
}
/trunk/src/org/tela_botanica/client/LocationList.java
125,7 → 125,7
 
 
 
private static final int VISIBLE_LOCATION_COUNT = 10;
private static final int VISIBLE_LOCATION_COUNT = 15;
private static final String VALUE_UNKNOWN = "Inconnues";
 
private Grid header = new Grid(1, 1);
177,7 → 177,7
header.setStyleName("location-ListHeader");
 
header.setHTML(0, 0, "Relev&eacute;s par commune&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); // yeah !
header.setHTML(0, 0, "Localit&eacute;s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); // yeah !
 
header.getCellFormatter().setWidth(0, 0, "100%");
 
250,10 → 250,10
styleRow(selectedRow, false);
selector.getRowFormatter().addStyleName(0, "location-SelectedRow");
// mediator.onLocationSelected("all");
mediator.onLocationSelected("all");
//updateCount();
updateCount();
// update()
initWidget(outer);
279,7 → 279,6
JSONNumber jsonNumber;
if ((jsonNumber = jsonValue.isNumber()) != null) {
count = (int) jsonNumber.getValue();
mediator.onLocationUpdate(location);
update();
}
}
/trunk/src/org/tela_botanica/client/Mediator.java
10,7 → 10,6
import com.google.gwt.json.client.JSONValue;
import com.google.gwt.user.client.HTTPRequest;
import com.google.gwt.user.client.ResponseTextHandler;
import com.google.gwt.user.client.ui.TextBox;
 
public class Mediator {
19,19 → 18,9
private String user = null;
private InventoryItemList inventoryItemList = null;
private LocationList locationList = null;
private DateList dateList = null;
private NameAssistant nameAssistant=null;
private LocationAssistant locationAssistant=null;
private InventoryItem inventoryItem=null;
private EntryPanel entryPanel=null;
private TextBox date = null;
private TextBox complementLocation = null;
private TextBox comment = null;
 
 
 
private Cel cel = null;
 
49,76 → 38,28
getUserFromService();
}
/**
* Action initialisation
*/
public void onInit() {
 
this.onLocationSelected("all");
}
 
public void onEntryClick() {
this.entryPanel.show();
}
/**
* Action sur selection d'un lieu : affichage de la liste des taxons correspondants
*
*/
public void onLocationSelected(String loc) {
inventoryItemList.setLocation(loc);
inventoryItemList.setDate("all");
inventoryItemList.updateCount();
if (entryPanel!=null) {
if ((loc.compareTo("000null")==0) || (loc.compareTo("all")==0)) {
locationAssistant.setText("");
}
else {
locationAssistant.setText(loc);
}
if ((loc.compareTo("000null")==0) || (loc.compareTo("all")==0)) {
locationAssistant.setText("");
}
}
 
/**
* Action sur selection d'une date : affichage de la liste des taxons correspondants
*/
public void onDateSelected(String date) {
 
inventoryItemList.setDate(date);
inventoryItemList.updateCount();
 
/*
if (entryPanel!=null) {
else {
locationAssistant.setText(loc);
}
if ((loc.compareTo("000null")==0) || (loc.compareTo("all")==0)) {
locationAssistant.setText("");
}
else {
locationAssistant.setText(loc);
}
}
*/
}
 
/**
* Action posterieure à l'affichage des observations : mise a jour affichage des localites
* Action sur ajout d'un taxon : affichage du lieu corresondant
*/
128,62 → 69,8
locationList.updateCount();
}
/**
* Action posterieure à l'affichage des localites : mise a jour affichage des dates
*/
 
public void onLocationUpdate(String loc) {
 
dateList.setLocation(loc);
dateList.updateCount();
}
/**
* Action prealable à l'ajout d'une observation : controle presence champs requis et lancement mise a jour
*
*/
public void onAddInventoryItem() {
// TODO : singleton ?
registerInventoryItem(new InventoryItem(nameAssistant.getText(),nameAssistant.getValue(),locationAssistant.getText(),locationAssistant.getValue(),date.getText(),complementLocation.getText(),comment.getText()));
inventoryItemList.addelement();
}
 
 
public boolean inventoryItemIsValid() {
// TODO : controle date
if (inventoryItem.getName().compareTo("")==0) {
return false;
}
else {
return true;
}
}
 
/**
* Declaration InventoryItem
* @param cel
*/
 
public void registerInventoryItem(InventoryItem inventoryItem) {
this.inventoryItem=inventoryItem;
}
 
 
/**
* Declaration InventoryItemList
* @param inventoryItemList
*/
203,22 → 90,8
this.locationList=locationList;
}
/**
* Declaration DateList
* @param locationList
*/
public void registerDateList(DateList dateList) {
this.dateList=dateList;
}
 
/**
* Declaration Cel
* @param cel
*/
248,51 → 121,9
this.locationAssistant=locationAssistant;
}
 
/**
* Declaration date
* @param date
*/
public void registerDate(TextBox date) {
this.date=date;
}
/**
* Declaration complementLocation
* @param complementLocation
*/
public void registerComplementLocation(TextBox complementLocation) {
this.complementLocation=complementLocation;
}
public void registerEntryPanel(EntryPanel entryPanel) {
this.entryPanel=entryPanel;
}
 
/**
* Declaration commentaire
* @param commentaire
*/
public void registerComment(TextBox comment) {
this.comment=comment;
}
 
 
/**
* Recherche distante et asynchrone de l'utilisateur connecté, en retour lancement methode initialisation
* de l'appellant Cel. (initAsync)
*
360,11 → 191,6
return locationList;
}
 
public DateList getDateList() {
return dateList;
}
 
public NameAssistant getNameAssistant() {
return nameAssistant;
}
373,14 → 199,6
return locationAssistant;
}
 
public InventoryItem getInventoryItem() {
return inventoryItem;
}
 
public EntryPanel getEntryPanel() {
return entryPanel;
}
 
 
 
}
/trunk/src/org/tela_botanica/public/Cel.css
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream