-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Excel feature framework operational.
- Loading branch information
Showing
12 changed files
with
254 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package org.ndextools.morphcx.tables; | ||
|
||
import org.apache.poi.ss.usermodel.Row; | ||
import org.apache.poi.ss.usermodel.Sheet; | ||
import org.apache.poi.xssf.usermodel.XSSFWorkbook; | ||
import org.ndexbio.model.cx.NiceCXNetwork; | ||
import org.ndextools.morphcx.shared.Configuration; | ||
import org.ndextools.morphcx.writers.TableToPOI; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
import java.util.List; | ||
|
||
public class ExcelApp implements Table3D { | ||
private final Configuration cfg; | ||
private final NiceCXNetwork niceCX; | ||
private final TableToPOI writer; | ||
private final OutputStream outStream; | ||
private final XSSFWorkbook wb; | ||
|
||
public ExcelApp(Configuration cfg, | ||
NiceCXNetwork niceCX, | ||
TableToPOI writer, | ||
XSSFWorkbook wb, | ||
OutputStream outStream) { | ||
this.cfg = cfg; | ||
this.niceCX = niceCX; | ||
this.writer = writer; | ||
this.outStream = outStream; | ||
this.wb = wb; | ||
} | ||
|
||
@Override | ||
public void morphThisCX() throws IOException { | ||
|
||
Sheet sheet1 = wb.createSheet("Mike 1"); | ||
Row row = sheet1.createRow(0); | ||
row.createCell(0).setCellValue("Cell-0"); | ||
row.createCell(1).setCellValue("Cell-1"); | ||
row.createCell(2).setCellValue("Cell-2"); | ||
row.createCell(3).setCellValue("Cell-3"); | ||
writer.outputAll(); | ||
|
||
} | ||
|
||
@Override | ||
public List<String> buildColumnHeadings() { | ||
return null; // TODO: 2/7/19 CANT BE NULL! | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.ndextools.morphcx.writers; | ||
|
||
public interface POIWritable extends AutoCloseable { | ||
|
||
void outputAll() throws Exception; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.