HTML and CSS Reference
In-Depth Information
public RightCountry() {
initialize();
}
public List<Place> getPlaces() {
return places;
}
public void setPlaces(List<Place> places) {
this.places = places;
}
public List<Place> getEgyptPlaces() {
return egyptPlaces;
}
public void setEgyptPlaces(List<Place> egyptPlaces) {
this.egyptPlaces = egyptPlaces;
}
public List<Place> getGermanyPlaces() {
return germanyPlaces;
}
public void setGermanyPlaces(List<Place> germanyPlaces) {
this.germanyPlaces = germanyPlaces;
}
public List<Place> getBrazilPlaces() {
return brazilPlaces;
}
public void setBrazilPlaces(List<Place> brazilPlaces) {
this.brazilPlaces = brazilPlaces;
}
public void processDrop(DropEvent event) {
Place place = (Place) event.getDragValue();
String dropValue = (String) event.getDropValue();
switch (dropValue) {
case "Egypt":
egyptPlaces.add(place);
places.remove(place);
break;
case "Germany":
germanyPlaces.add(place);
places.remove(place);
break;
case "Brazil":
brazilPlaces.add(place);
Search WWH ::




Custom Search