Package cookxml.core.interfaces

Examples of cookxml.core.interfaces.Converter


      }

      if (value instanceof String)
      {
        Class targetClass = m_field.getType ();
        Converter converter = decodeEngine.getCookXml ().getTagLibrary ().getConverter (ns, targetClass);
        if (converter != null)
          value = converter.convert ((String)value, decodeEngine);
      }

      m_field.set (obj, value);
      if (!m_access)
      {
View Full Code Here


        return;
      }

      if (value instanceof String)
      {
        Converter converter = decodeEngine.getCookXml ().getTagLibrary ().getConverter (ns, m_cl);
        if (converter != null)
          value = converter.convert ((String)value, decodeEngine);
      }

      method.invoke (obj, new Object[]{ value });
      if (!m_access)
      {
View Full Code Here

    tagLibrary.setConverter (Rectangle.class, new RectangleConverter ());
    // Image
    tagLibrary.setCreator ("image", HelperCreator.getCreator (ImageHelper.class));
    tagLibrary.setConverter (Image.class, new ImageConverter ());
    // ImageIcon
    Converter iconConverter = new ImageIconConverter ();
    tagLibrary.setCreator ("imageicon", HelperCreator.getCreator (ImageIconHelper.class));
    tagLibrary.setConverter (ImageIcon.class, iconConverter);
    // Icon
    tagLibrary.setCreator ("icon", HelperCreator.getCreator (IconHelper.class));
    tagLibrary.setConverter (Icon.class, iconConverter);
View Full Code Here

TOP

Related Classes of cookxml.core.interfaces.Converter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.