Package cz.mp.k3bg.core

Examples of cz.mp.k3bg.core.BookFiles


                }
               
                // změna z  BookFilesPanel  na cokoliv jiného
                if (lastSelectedTab instanceof BookFilesPanel
                        && ! (selectedTab instanceof BookFilesPanel)) {
                    BookFiles bookFiles = filesPanel.createBookFiles();
                    if (bookFiles != null) {
                        logger.info(" BookFilesPanel --> * ");
                    }
                    BookState.getMainInstance().setBookFiles(bookFiles);
                }
View Full Code Here


    /**
     *
     */
    BookFiles createBookFiles() {
        BookFiles result = null;

        Stopwatch stopwatch = new Stopwatch();
        stopwatch.start();
       
        if (workingDirField.isSelectedFile()
                && ! bookFilesList.getFiles().isEmpty()
                && tocFileField.isSelectedFile()
                && coverFileField.isSelectedFile()
                ) {
            result = new BookFiles(
                    workingDirField.getSelectedFileAbsolutePath());
            try {
                result.addSrcFiles(bookFilesList.getFiles());
                result.setToc(tocFileField.getSelectedFilePath());
                result.setLoi(loiFileField.getSelectedFilePath());
                result.setPersonalNotes(personalsFileField.getSelectedFilePath());
                result.setColophon(colophonFileField.getSelectedFilePath());
                result.setCoverImage(coverFileField.getSelectedFilePath());
            } catch (IOException ex) {
                logger.warning(ex.toString());
                if (DEBUG) {  ex.printStackTrace()}           
                Dialogs.showErrorDialog(ex);
            }
View Full Code Here

     */
    private void generateToc() {

        if (workingDirField.isSelectedFile()
                && ! bookFilesList.getFiles().isEmpty()) {
            BookFiles bookFilesForToc = new BookFiles(
                    workingDirField.getSelectedFileAbsolutePath());

            try {
                bookFilesForToc.addSrcFiles(bookFilesList.getFiles());

                String generatedFile =
                        GenerateTocDialog.showDialog(bookFilesForToc);

                if (! StringUtils.isBlank(generatedFile)) {
View Full Code Here

    /**
     *
     */
    private void generatePersonalNotes() {
        BookFiles bookFilesForPn = new BookFiles(
                workingDirField.getSelectedFileAbsolutePath());

        String generatedFile =
                GeneratePersonalNotesDialog.showDialog(bookFilesForPn);

View Full Code Here

   
    /**
     *
     */
    private void generateColophon() {
        BookFiles bookFilesForColophon = new BookFiles(
                workingDirField.getSelectedFileAbsolutePath());

        String generatedFile =
                GenerateColophonDialog.showDialog(bookFilesForColophon);

View Full Code Here

TOP

Related Classes of cz.mp.k3bg.core.BookFiles

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.