|
From: Carlos <ma...@us...> - 2007-10-10 21:28:15
|
Update of /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11367/src/java/net/sf/tails/swing/frame Modified Files: Index.java Log Message: Refatoração de tela para conseguir criar critérios como o versus buy and hold que necessita de outro critério em seu construtor. Index: Index.java =================================================================== RCS file: /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame/Index.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Index.java 10 Oct 2007 19:04:47 -0000 1.17 --- Index.java 10 Oct 2007 21:28:10 -0000 1.18 *************** *** 60,63 **** --- 60,64 ---- private javax.swing.JFileChooser xlsFileChooser; private javax.swing.JFileChooser htmlFileChooser; + private FrameHelper helper; /** Creates new form OpenStockAnalysis *************** *** 88,91 **** --- 89,93 ---- // <editor-fold defaultstate="collapsed" desc=" Código Gerado "> private void initComponents() { + helper = new FrameHelper(); menuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); *************** *** 134,138 **** reportTable.setAutoCreateRowSorter(true); ! reportTable.setModel(FrameHelper.getTableModel(stockAnalysis)); reportTable.setGridColor(new java.awt.Color(255, 255, 255)); --- 136,140 ---- reportTable.setAutoCreateRowSorter(true); ! reportTable.setModel(helper.getTableModel(stockAnalysis)); reportTable.setGridColor(new java.awt.Color(255, 255, 255)); *************** *** 355,359 **** StockAnalysisSerializer serializer = new StockAnalysisSerializer(); try { ! String stringAnalysis = FrameHelper.readFile(filePath); StockAnalysis analysis = serializer.fromXML(stringAnalysis); loadStockAnalysis(analysis); --- 357,361 ---- StockAnalysisSerializer serializer = new StockAnalysisSerializer(); try { ! String stringAnalysis = helper.readFile(filePath); StockAnalysis analysis = serializer.fromXML(stringAnalysis); loadStockAnalysis(analysis); *************** *** 375,379 **** reportTable.setAutoCreateRowSorter(true); ! reportTable.setModel(FrameHelper.getTableModel(analysis)); reportTable.setGridColor(new java.awt.Color(255, 255, 255)); --- 377,381 ---- reportTable.setAutoCreateRowSorter(true); ! reportTable.setModel(helper.getTableModel(analysis)); reportTable.setGridColor(new java.awt.Color(255, 255, 255)); *************** *** 390,398 **** if (this.getTitle().endsWith(" - " + messageBundle.getString("DEFAULT_TITLE"))) { ! filePath = FrameHelper.getStockAnalysisPath() + "/" + this.getTitle().split(" - ")[0]; } else { ! filePath = FrameHelper.getStockAnalysisPath() + "/" + FrameHelper.generateStockAnalysisName(); } File stockAnalysisXML = new File(filePath); --- 392,400 ---- if (this.getTitle().endsWith(" - " + messageBundle.getString("DEFAULT_TITLE"))) { ! filePath = helper.getStockAnalysisPath() + "/" + this.getTitle().split(" - ")[0]; } else { ! filePath = helper.getStockAnalysisPath() + "/" + helper.generateStockAnalysisName(); } File stockAnalysisXML = new File(filePath); |