});
add(new DropDownChoice("defaultInterpolationMethod", new PropertyModel(coverage, "defaultInterpolationMethod"),
new WCSInterpolationModel()));
Palette interpolationMethods = new Palette("interpolationMethods", LiveCollectionModel
.list(new PropertyModel(coverage, "interpolationMethods")),
new WCSInterpolationModel(), new SimpleChoiceRenderer(), 7, false) {
/**
* Override otherwise the header is not i18n'ized
*/
@Override
public Component newSelectedHeader(final String componentId) {
return new Label(componentId, new ResourceModel(
"InterpolationMethodsPalette.selectedHeader"));
}
/**
* Override otherwise the header is not i18n'ized
*/
@Override
public Component newAvailableHeader(final String componentId) {
return new Label(componentId, new ResourceModel(
"InterpolationMethodsPalette.availableHeader"));
}
};
add(interpolationMethods);
// don't allow editing the native format
TextField nativeFormat = new TextField("nativeFormat", new PropertyModel(coverage, "nativeFormat"));
nativeFormat.setEnabled(false);
add(nativeFormat);
Palette formatPalette = new Palette("formatPalette", LiveCollectionModel
.list(new PropertyModel(coverage, "supportedFormats")), new WCSFormatsModel(),
new SimpleChoiceRenderer(), 10, false) {
/**
* Override otherwise the header is not i18n'ized
*/