Package com.ponysdk.core.export

Examples of com.ponysdk.core.export.ExportableField


    private ExportConfiguration<Pony> initExportConfiguration() {
        final ExportConfiguration<Pony> exportConfiguration = new ExportConfiguration<Pony>();
        exportConfiguration.addExporter(new CSVExporter<Pony>("pony"));
        exportConfiguration.addExporter(new PDFExporter<Pony>("Pony export", "users"));
        exportConfiguration.addExporter(new XMLExporter<Pony>("root", "pony"));
        exportConfiguration.addExportableField(new ExportableField("name", "Name"));
        exportConfiguration.addExportableField(new ExportableField("age", "Age"));
        exportConfiguration.addExportableField(new ExportableField("race", "type"));
        return exportConfiguration;
    }
View Full Code Here


                    final PrintWriter printer = response.getWriter();
                    try {
                        final Iterator<ExportableField> iter = exportableFields.iterator();

                        while (iter.hasNext()) {
                            final ExportableField exportableField = iter.next();
                            final String header = exportableField.getCaption();
                            printer.print(header);
                            if (iter.hasNext()) printer.print(DELIMITER);
                        }

                        printer.println();
View Full Code Here

TOP

Related Classes of com.ponysdk.core.export.ExportableField

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.