Package com.tonbeller.wcf.table

Examples of com.tonbeller.wcf.table.DefaultCell


          final ScriptColumn sc = (ScriptColumn)sIt.next();
          scriptEngine.run(sc.getFile(), binding);
          final Object output = binding.getVariable("output");
          if (output instanceof Map) {
            Map outMap = (Map)output;
            rowList.add(sc.getPosition() - 1, new DefaultCell((String)outMap.get("URL"), (String)outMap.get("Value")));
          } else if (output instanceof String) {
            rowList.add(sc.getPosition() - 1, (String)output);
          } else {
            throw new Exception("Unknown groovy script return type (neither a Map nor a String).");
          }
View Full Code Here


          final ScriptColumn sc = (ScriptColumn)sIt.next();
          scriptEngine.run(sc.getFile(), binding);
          final Object output = binding.getVariable("output");
          if (output instanceof Map) {
            Map outMap = (Map)output;
            rowList.add(sc.getPosition() - 1, new DefaultCell((String)outMap.get("URL"), (String)outMap.get("Value")));
          } else if (output instanceof String) {
            rowList.add(sc.getPosition() - 1, (String)output);
          } else {
            throw new Exception("Unknown groovy script return type (not a Map nor String).");
          }
View Full Code Here

TOP

Related Classes of com.tonbeller.wcf.table.DefaultCell

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.