1 53 54 package org.swixml.converters; 55 56 import org.jdom.Attribute; 57 import org.swixml.Converter; 58 import org.swixml.Localizer; 59 60 import java.awt.*; 61 62 69 public class ComponentConverter implements Converter { 70 73 public static final Class TEMPLATE = Component.class; 74 75 81 public static Component conv(Attribute attr) throws Exception { 82 return null; 83 } 84 85 92 public Object convert(Class type, Attribute attr, Localizer localizer) throws Exception { 93 return ComponentConverter.conv(attr); 94 } 95 96 97 103 public Class convertsTo() { 104 return TEMPLATE; 105 } 106 } 107 | Popular Tags |