Package org.apache.pivot.io

Examples of org.apache.pivot.io.FileList


        }

        // Update the selection
        Sequence<File> previousSelectedFiles = getSelectedFiles();

        FileList fileList = new FileList();
        for (int i = 0, n = selectedFiles.getLength(); i < n; i++) {
            File file = selectedFiles.get(i);

            if (file == null) {
                throw new IllegalArgumentException("file is null.");
            }

            fileList.add(file);
        }

        this.selectedFiles = fileList;

        // Notify listeners
View Full Code Here


            transferData = localManifest.getText();
        } else if (dataFlavor.equals(DataFlavor.imageFlavor)) {
            Picture picture = (Picture)localManifest.getImage();
            transferData = picture.getBufferedImage();
        } else if (dataFlavor.equals(DataFlavor.javaFileListFlavor)) {
            FileList fileList = localManifest.getFileList();
            transferData = fileList.getList();
        } else if (dataFlavor.getRepresentationClass() == URL.class) {
            transferData = localManifest.getURL();
        } else if (dataFlavor.isRepresentationClassByteBuffer()) {
            // TODO
            /*
 
View Full Code Here

    }

    @Override
    @SuppressWarnings("unchecked")
    public FileList getFileList() throws IOException {
        FileList fileList = null;
        try {
            fileList = new FileList((java.util.List<File>)transferable.getTransferData(fileListDataFlavor));
        } catch(UnsupportedFlavorException exception) {
            exception.printStackTrace(System.err);
        }

        return fileList;
View Full Code Here

TOP

Related Classes of org.apache.pivot.io.FileList

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.