7 module SymbolItemColumnModule
11 attr :default_symbol, :face_manifest, :item
12 def initialize default_symbol, face_manifest, item
13 @default_symbol = default_symbol
14 @face_manifest = face_manifest
31 self.filer.template_dir + "symbol_face/"
34 def template_file_name
35 raise "undefined template_file_name\n"
39 self.template_dir + self.template_file_name
44 class ImageFace < BaseFace
45 def template_file_name
54 {:src => self.url, :width => Manifest.manifest.magic_numbers['thumbnail_width'], :height => Manifest.manifest.magic_numbers['thumbnail_height']}
59 class PictureFace < BaseFace
60 def template_file_name
65 @face_manifest.method_name
69 if @item.methods(true).include?(self.method_name.to_sym)
70 @item.__send__ self.method_name
72 {:src => '/images/error.png', :width => Manifest.manifest.magic_numbers['thumbnail_width'], :height => Manifest.manifest.magic_numbers['thumbnail_height']}