Package org.resmedicinae.resmedlib.term

Examples of org.resmedicinae.resmedlib.term.String.replace()


        filterXml.setDescription("XML");
        chooser.setFileFilter(filterXml);
        int returnVal = chooser.showDialog(new JFrame(), "Import HealthRecord");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curFile = chooser.getSelectedFile().getAbsolutePath();
            curFile = curFile.replace('\\', '/');
            HealthRecord importedHealthRecord = getHealthRecordDataFromDocument(parseXMLFile(curFile));
            importedHealthRecord.setIdentifier(ObjectID.getNewOId());
            Hashtable healthRecordData = new Hashtable();
            healthRecordData.put(HealthRecordIndex.ID, importedHealthRecord.getIdentifier());
            healthRecordData.put(HealthRecordIndex.NAME, importedHealthRecord.getName());
View Full Code Here


        chooser.setFileFilter(filterXml);
        chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int returnVal = chooser.showDialog(new JFrame(), "Import Directory");
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curDirectory = chooser.getSelectedFile().getAbsolutePath();
            curDirectory = curDirectory.replace('\\', '/');
            System.out.println("You chose to import this directory: " + curDirectory);
            HealthRecord importedHealthRecord;
            String curFile;
            File[] fileList = chooser.getSelectedFile().listFiles();
            for (int i = 0; i < fileList.length; i++) {
View Full Code Here

            chooser.setFileFilter(filterXml);
            int returnVal = chooser.showOpenDialog(new JFrame());
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                String curFile = chooser.getSelectedFile().getAbsolutePath();
                System.out.println("B: curfile: " + curFile);
                curFile = curFile.replace('\\', '/');
                setIndexFile(curFile);
                setGlobalPath(curFile.substring(0, curFile.lastIndexOf("/") + 1));
                // setUpdateAfterChangingHealthRecordData();
                System.out.println("You choose to open this file: " + curFile);
            } else
View Full Code Here

        filterXml.setDescription("XML");
        chooser.setFileFilter(filterXml);
        int returnVal = chooser.showSaveDialog(new JFrame());
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            String curFile = chooser.getSelectedFile().getAbsolutePath();
            curFile = curFile.replace('\\', '/');
            setIndexFile(curFile);
            setGlobalPath(curFile.substring(0, curFile.lastIndexOf("/") + 1));
            System.out.println("You choose to save this file: " + curFile);
            System.out.println("save index...");
            saveHealthRecordIndex(healthRecordIndex);
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.