| Line 7... |
Line 7... |
| 7 |
import com.google.gwt.uibinder.client.UiBinder;
|
7 |
import com.google.gwt.uibinder.client.UiBinder;
|
| 8 |
import com.google.gwt.uibinder.client.UiField;
|
8 |
import com.google.gwt.uibinder.client.UiField;
|
| 9 |
import com.google.gwt.uibinder.client.UiHandler;
|
9 |
import com.google.gwt.uibinder.client.UiHandler;
|
| 10 |
import com.google.gwt.user.client.Window;
|
10 |
import com.google.gwt.user.client.Window;
|
| 11 |
import com.google.gwt.user.client.ui.Button;
|
11 |
import com.google.gwt.user.client.ui.Button;
|
| - |
|
12 |
import com.google.gwt.user.client.ui.CheckBox;
|
| 12 |
import com.google.gwt.user.client.ui.DialogBox;
|
13 |
import com.google.gwt.user.client.ui.DialogBox;
|
| 13 |
import com.google.gwt.user.client.ui.TextBox;
|
14 |
import com.google.gwt.user.client.ui.TextBox;
|
| 14 |
import com.google.gwt.user.client.ui.Widget;
|
15 |
import com.google.gwt.user.client.ui.Widget;
|
| 15 |
import com.google.gwt.user.datepicker.client.DateBox;
|
16 |
import com.google.gwt.user.datepicker.client.DateBox;
|
| 16 |
|
17 |
|
| Line 20... |
Line 21... |
| 20 |
private ComingSoon comingSoon;
|
21 |
private ComingSoon comingSoon;
|
| 21 |
|
22 |
|
| 22 |
@UiField Button okButton, cancelButton, cancelComingSoonButton;
|
23 |
@UiField Button okButton, cancelButton, cancelComingSoonButton;
|
| 23 |
@UiField TextBox lightBoxText;
|
24 |
@UiField TextBox lightBoxText;
|
| 24 |
@UiField DateBox comingSoonStartDate, expectedArrivalDate;
|
25 |
@UiField DateBox comingSoonStartDate, expectedArrivalDate;
|
| - |
|
26 |
@UiField CheckBox showPrice;
|
| 25 |
|
27 |
|
| 26 |
|
28 |
|
| 27 |
public ComingSoonDialog(ComingSoon comingSoon){
|
29 |
public ComingSoonDialog(ComingSoon comingSoon){
|
| 28 |
setText("Coming Soon");
|
30 |
setText("Coming Soon");
|
| 29 |
setWidget(binder.createAndBindUi(this));
|
31 |
setWidget(binder.createAndBindUi(this));
|
| 30 |
setAnimationEnabled(true);
|
32 |
setAnimationEnabled(true);
|
| 31 |
center();
|
33 |
center();
|
| 32 |
//Do the coding for moving both the info to appropriate fields.
|
- |
|
| 33 |
this.comingSoon = comingSoon;
|
34 |
this.comingSoon = comingSoon;
|
| 34 |
if(this.comingSoon.getExpectedArrivalDate() != null){
|
35 |
if(this.comingSoon.getExpectedArrivalDate() != null){
|
| 35 |
this.lightBoxText.setValue(this.comingSoon.getBestDealsText());
|
36 |
this.lightBoxText.setValue(this.comingSoon.getBestDealsText());
|
| 36 |
this.comingSoonStartDate.setValue(this.comingSoon.getComingSoonStartDate());
|
37 |
this.comingSoonStartDate.setValue(this.comingSoon.getComingSoonStartDate());
|
| 37 |
this.expectedArrivalDate.setValue(this.comingSoon.getExpectedArrivalDate());
|
38 |
this.expectedArrivalDate.setValue(this.comingSoon.getExpectedArrivalDate());
|
| - |
|
39 |
this.expectedArrivalDate.setValue(this.comingSoon.getExpectedArrivalDate());
|
| - |
|
40 |
this.showPrice.setValue(this.comingSoon.isShowPrice());
|
| 38 |
}else {
|
41 |
}else {
|
| 39 |
this.cancelComingSoonButton.setEnabled(false);
|
42 |
this.cancelComingSoonButton.setEnabled(false);
|
| 40 |
}
|
43 |
}
|
| 41 |
}
|
44 |
}
|
| 42 |
|
45 |
|
| Line 98... |
Line 101... |
| 98 |
//Do the coding for moving both the info to appropriate fields.
|
101 |
//Do the coding for moving both the info to appropriate fields.
|
| 99 |
|
102 |
|
| 100 |
this.comingSoon.setComingSoonStartDate(comingSoonStartDt);
|
103 |
this.comingSoon.setComingSoonStartDate(comingSoonStartDt);
|
| 101 |
this.comingSoon.setExpectedArrivalDate(expectedArrivalDt);
|
104 |
this.comingSoon.setExpectedArrivalDate(expectedArrivalDt);
|
| 102 |
this.comingSoon.setBestDealsText(lightBoxTxt);
|
105 |
this.comingSoon.setBestDealsText(lightBoxTxt);
|
| - |
|
106 |
this.comingSoon.setShowPrice(showPrice.getValue());
|
| 103 |
hide();
|
107 |
hide();
|
| 104 |
}
|
108 |
}
|
| 105 |
}
|
109 |
}
|