* @param iconSize アイコンのサイズ
* @return ImageEntry
*/
private ImageEntry getImageEntry(SchemaModel schema, Dimension iconSize) {
ImageEntry model = new ImageEntry();
model.setId(schema.getId());
//model.setConfirmDate(ModelUtils.getDateTimeAsString(schema.getConfirmDate())); // First?
model.setConfirmDate(ModelUtils.getDateTimeAsString(schema.getConfirmed())); // First?
model.setContentType(schema.getExtRef().getContentType());
model.setTitle(schema.getExtRef().getTitle());
model.setMedicalRole(schema.getExtRef().getMedicalRole());
byte[] bytes = schema.getJpegByte();
// Create ImageIcon
ImageIcon icon = new ImageIcon(bytes);
if (icon != null) {
model.setImageIcon(adjustImageSize(icon, iconSize));
}
return model;
}