use of teamdash.wbs.WBSTabPanel in project processdash by dtuma.
the class SaveAsExcelAction method writeData.
private void writeData(File f) {
DataJTable dataTable = getDataJTable();
WBSTabPanel tabPanel = getWBSTabPanel();
WBSExcelWriter writer = new WBSExcelWriter(dataTable);
LinkedHashMap<String, TableColumnModel> tabs = tabPanel.getTabData();
for (Map.Entry<String, TableColumnModel> e : tabs.entrySet()) {
writer.addData(e.getKey(), e.getValue());
}
try {
writer.save(f);
} catch (IOException ioe) {
Object message = resources.formatStrings("Error.Message_FMT", f.getAbsolutePath());
JOptionPane.showMessageDialog(tabPanel, message, resources.getString("Error.Title"), JOptionPane.ERROR_MESSAGE);
}
}
Aggregations