public IsisBlobOrClobPanelAbstract(String id, ScalarModel scalarModel) {
super(id, scalarModel);
}
private void updateRegularFormComponents(final InputFieldVisibility visibility) {
MarkupContainer formComponent = (MarkupContainer) getComponentForRegular();
formComponent.get(ID_SCALAR_VALUE).setVisible(visibility == InputFieldVisibility.VISIBLE);
updateFileNameLabel(ID_FILE_NAME, formComponent);
// the visibility of download link is intentionally 'backwards';
// if in edit mode then do NOT show
final MarkupContainer downloadLink = updateDownloadLink(ID_SCALAR_IF_REGULAR_DOWNLOAD, formComponent);
if (downloadLink != null) {
downloadLink.setVisible(visibility == InputFieldVisibility.NOT_VISIBLE);
}
// ditto any image
if(wicketImage != null) {
wicketImage.setVisible(visibility == InputFieldVisibility.NOT_VISIBLE);
}