Package org.crosswire.jsword.book

Examples of org.crosswire.jsword.book.Book


        if (begin > end) {
            JOptionPane.showMessageDialog(this, java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("INVALID VERSE RANGE"));
            return;
        }

        Book book = Books.installed().getBook(cbBibles.getSelectedItem().toString());
        if (book == null) {
            return;
        }

        StringBuffer sb = new StringBuffer();
View Full Code Here


        bibleTextPanel1.configureForVerseListEditorForm();
        bibleTextPanel1.setVisible(true);

        bibleVerseListPanel1.registerBibleTextPanel(bibleTextPanel1);
        Book book = Books.installed().getBook(bibleTextPanel1.getSelectedBookName());
        if (book != null){
            bibleVerseListPanel1.setBook(book);
        }

        textSplitPanel1.setBtnSplitVisible(false);
View Full Code Here

    private boolean checkSelectedBook() {
        if (swordBook == null) {
            return false;
        }
        if (!btp.getSelectedBookName().equals(swordBookName)) {
            Book book = Books.installed().getBook(btp.getSelectedBookName());
            setBook(book);
        }
        return true;
    }
View Full Code Here

        if (tblAvailable.getSelectedRow() < 0) {
            return;
        }

        Book book = myAvailableModel.getBook(tblAvailable.getSelectedRow());

        // Check if already installed
        if (Books.installed().getBook(book.getInitials()) != null) {
            JOptionPane.showMessageDialog(this, book.getName() + " " + java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("IS ALREADY INSTALLED."));
            return;
        }

        if (JOptionPane.showConfirmDialog(this, java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("ARE YOU SURE TO DOWNLOAD AND INSTALL") + " " + book.getName() + " ?", java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("CONFIRM DOWNLOAD AND INSTALL"), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            try {
                ProgressDialog pd = new ProgressDialog(this, true);
                pd.setText(java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("DOWNLOADING..."));
                pd.isBibleDownload(true);
                pd.setLocationRelativeTo(this);

                WindowPropConfig.getInstance().setSelectedBible(book.getName());

                Installer installer = imanager.getInstaller(cbSource.getSelectedItem().toString());
                installer.install(book);

                pd.setVisible(true);
View Full Code Here

        if (tblInstalled.getSelectedRow() < 0) {
            return;
        }

        Book selected = myInstalledModel.getBook(tblInstalled.getSelectedRow());

        if (JOptionPane.showConfirmDialog(this, java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("ARE YOU SURE TO UNINSTALL") + " " + selected.getName() + " ?", java.util.ResourceBundle.getBundle("datasoul/internationalize").getString("CONFIRM UNINSTALL"), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            try {
                selected.getDriver().delete(selected);              
            } catch (BookException ex) {
                ex.printStackTrace();
            }
        }
View Full Code Here

TOP

Related Classes of org.crosswire.jsword.book.Book

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.