private String newInterpolationMethod;
public WCSLayerConfig(String id, IModel model){
super(id, model);
final CoverageInfo coverage = (CoverageInfo) getLayerInfo().getResource();
add(new ListMultipleChoice("requestSRS",
new PropertyModel(this, "selectedRequestSRSs"),
coverage.getRequestSRS())
);
add(new TextField("newRequestSRS", new PropertyModel(this, "newRequestSRS")));
add(new Button("deleteSelectedRequestSRSs"){
public void onSubmit(){
coverage.getRequestSRS().removeAll(selectedRequestSRSs);
selectedRequestSRSs.clear();
}
});
add(new Button("addNewRequestSRS"){
public void onSubmit(){
coverage.getRequestSRS().add(newRequestSRS);
newRequestSRS = "";
}
});
add (new ListMultipleChoice("responseSRS",
new PropertyModel(this, "selectedResponseSRSs"),
coverage.getResponseSRS())
);
add(new TextField("newResponseSRS", new PropertyModel(this, "newResponseSRS")));
add(new Button("deleteSelectedResponseSRSs"){
public void onSubmit(){
coverage.getResponseSRS().removeAll(selectedResponseSRSs);
selectedResponseSRSs.clear();
}
});
add(new Button("addNewResponseSRS"){
public void onSubmit(){
coverage.getResponseSRS().add(newResponseSRS);
newResponseSRS = "";
}
});
add(new DropDownChoice("defaultInterpolationMethod", new PropertyModel(coverage, "defaultInterpolationMethod"),