6 module SymbolItemColumnModule
10 attr :default_symbol, :face_manifest, :item
11 def initialize default_symbol, face_manifest, item
12 @default_symbol = default_symbol
13 @face_manifest = face_manifest
30 self.filer.template_dir + "symbol_face/"
33 def template_file_name
34 raise "undefined template_file_name\n"
38 self.template_dir + self.template_file_name
43 class ImageFace < BaseFace
44 def template_file_name
53 {:src => self.url, :width => Manifest.manifest.magic_numbers['thumbnail_width'], :height => Manifest.manifest.magic_numbers['thumbnail_height']}
58 class PictureFace < BaseFace
59 def template_file_name
64 @face_manifest.method_name
68 if @item.methods(true).include?(self.method_name.to_sym)
69 @item.__send__ self.method_name
71 {:src => '/images/error.png', :width => Manifest.manifest.magic_numbers['thumbnail_width'], :height => Manifest.manifest.magic_numbers['thumbnail_height']}