64,7 → 64,6 |
import com.google.gwt.user.client.ResponseTextHandler; |
import com.google.gwt.user.client.ui.Button; |
import com.google.gwt.user.client.ui.ChangeListener; |
import com.google.gwt.user.client.ui.CheckBox; |
import com.google.gwt.user.client.ui.ClickListener; |
import com.google.gwt.user.client.ui.Composite; |
import com.google.gwt.user.client.ui.Grid; |
196,8 → 195,14 |
public void onKeyDown(Widget arg0, char arg1, int arg2) { |
if(arg1 == KEY_ENTER) |
{ |
mediator.onAddInventoryItem(); |
date.setText(""); |
if (ordre==null) { |
mediator.onAddInventoryItem(); |
date.setText(""); |
} |
else { |
mediator.onModifyInventoryItem(ordre); |
ordre=null; |
} |
} |
} |
|
222,8 → 227,14 |
public void onKeyDown(Widget arg0, char arg1, int arg2) { |
if(arg1 == KEY_ENTER) |
{ |
mediator.onAddInventoryItem(); |
complementLocation.setText(""); |
if (ordre==null) { |
mediator.onAddInventoryItem(); |
complementLocation.setText(""); |
} |
else { |
mediator.onModifyInventoryItem(ordre); |
ordre=null; |
} |
} |
|
} |
249,8 → 260,14 |
public void onKeyDown(Widget arg0, char arg1, int arg2) { |
if(arg1 == KEY_ENTER) |
{ |
mediator.onAddInventoryItem(); |
comment.setText(""); |
if (ordre==null) { |
mediator.onAddInventoryItem(); |
comment.setText(""); |
} |
else { |
mediator.onModifyInventoryItem(ordre); |
ordre=null; |
} |
} |
|
} |
389,8 → 406,11 |
String ann=((JSONString) jsonArray .get(3)).stringValue(); |
|
if (ann.compareTo("0")!=0) { |
nameAssistant.setValue(ann); |
nameAssistant.setValue(null); |
} |
else { |
nameAssistant.setValue(null); |
} |
|
// Commune |
String aloc=((JSONString) jsonArray .get(6)).stringValue(); |
448,6 → 468,9 |
} |
|
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* $Log$ |
* $Log$ |
* Revision 1.4 2007-05-21 21:01:35 ddelon |
* Modification comportement boutons |
* |
* |
*/ |