});
}
@Override
protected SRSListPanel srsListPanel() {
SRSListPanel srsList = new SRSListPanel(popupWindow.getContentId()) {
@Override
protected void onCodeClicked(AjaxRequestTarget target, String epsgCode) {
popupWindow.close(target);
String srs = "EPSG:" + epsgCode;
srsTextField.setModelObject(srs);
target.addComponent(srsTextField);
CoordinateReferenceSystem crs = fromSRS(srs);
wktLabel.setDefaultModelObject(crs.getName().toString());
wktLink.setEnabled(true);
target.addComponent(wktLink);
updateUnits(crs);
target.addComponent(units);
target.addComponent(metersPerUnit);
}
};
srsList.setCompactMode(true);
return srsList;
}