Package cz.mp.k3bg.core

Examples of cz.mp.k3bg.core.Metadata


        File file = opfFileChooser.getSelectedFile();

        OpfMetadataReader opfMetaReader = new OpfMetadataReader(file);
        try {
            opfMetaReader.parse();
            Metadata metadata = opfMetaReader.getReadedMetadata();

            fillForm(metadata);
           
        } catch (XMLStreamException ex) {
            logger.warning(ex.toString());
View Full Code Here


                || id.isEmpty()
                || lang.isEmpty()) {
            return null;
        }
        else {
            Metadata result = new Metadata();
           
            result.setTitle(title);
            result.setAuthor(author);
            result.setLang(lang);
            result.setId(id);
            result.setIdIsIsbn(idIsbnCheck.isSelected());

            result.setGenre(getSelectedGenre());
            result.setPublisher(publisherField.getText().trim());
            result.setPublishDate(publishDateField.getText().trim());
            result.setDescription(descriptionArea.getText());

            return result;
        }
    }
View Full Code Here

                TabPanel selectedTab = (TabPanel) selected;

                // změna z  MetadataPanel  na cokoliv jiného
                if (lastSelectedTab instanceof MetadataPanel
                        && ! (selectedTab instanceof MetadataPanel)) {
                    Metadata metadata = metadataPanel.createMetadata();
                    if (metadata != null) {
                        logger.info(" MetadataPanel --> * ");
                    }
                    BookState.getMainInstance().setMetadata(metadata);
                }
View Full Code Here

TOP

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

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.