Package org.dyno.visual.swing.plugin.spi

Examples of org.dyno.visual.swing.plugin.spi.ICodeGen


      Component comp = (Component) bean;
      WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(comp);
      if (adapter != null) {
        StringBuilder builder = new StringBuilder();
        Object value = property.getFieldValue(bean);
        ICodeGen gen = property.getCodeGenerator();
        if (gen != null && value != null) {
          String initCode = gen.getInitJavaCode(value, imports);
          if (initCode != null)
            builder.append(initCode);
        }
        if (!adapter.isRoot()) {
          String name = adapter.getID();
          builder.append(name + ".");
        }
        String code;
        if (gen != null) {
          code = value == null ? "null" : gen.getJavaCode(value, imports);
        } else {
          code = value == null ? "null" : value.toString();
        }
        if (code != null) {
          builder.append(property.getSetName() + "(");
View Full Code Here


        if (object == null)
          builder.append("null");
        else {
          TypeAdapter adapter = ExtensionRegistry.getTypeAdapter(object.getClass());
          if (adapter != null) {
            ICodeGen codeGen = adapter.getCodegen();
            if (codeGen != null) {
              builder.append(codeGen.getJavaCode(object, imports));
            } else {
              builder.append(object.toString());
            }
          } else {
            builder.append(object.toString());
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.plugin.spi.ICodeGen

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.