Package br.com.gmartins.simbler.helpers

Examples of br.com.gmartins.simbler.helpers.FileSaver.saveFile()


     * @param panel Painel a ser salvo.
     */
    private void save(MainPanel panel) {
        FileSaver fs = new FileSaver(panel);
        fs.setPath(panel.getFilePath().replace(FileSaver.FILE_EXTENSION, ""));
        fs.saveFile();
        this.updatePanelSettings(panel, new File(panel.getFilePath()));
    }

    /**
     * Método usado quando o arquivo ainda não foi salvo, ou quando o usuário
View Full Code Here


            FileSaver fs = new FileSaver(panel);
            String filePath = getSaveAsFileChooser().getSelectedFile().getAbsolutePath();
            fs.setPath(filePath.replace(".sbl", ""));
            // Define o diretório pai do arquivo selecionado como último caminho usado.
            properties.setProperty(PropertiesConstants.LAST_PATH, getSaveAsFileChooser().getSelectedFile().getParent());
            fs.saveFile();
            this.updatePanelSettings(panel, getSaveAsFileChooser().getSelectedFile());
        } else {
            actionCloseCancelled = true;
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.