Package com.openkm.openoffice.bean

Examples of com.openkm.openoffice.bean.FolderNodeBean


    @SuppressWarnings("static-access")
    private void getChilds() throws OKMException {
        try {
            actualNode.removeAllChildren();
            FolderNodeBean folderNode = (FolderNodeBean) actualNode.getUserObject();
            for (Iterator<Folder> it = okmFolder.getChilds(token, folderNode.getFolder().getPath()).getItem().iterator(); it.hasNext();) {
                Folder folder = it.next();
                FolderNodeBean newfolderNode = new FolderNodeBean();
                newfolderNode.setFolder(folder);
                newfolderNode.setIcon(imageUtil.selectImage(folder));
                DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(newfolderNode);
                actualNode.add(childNode);
            }
            pack();
        } catch (Exception ex) {
View Full Code Here


        int size = 0;

        while (tableModel.getRowCount()>0) {
            tableModel.removeRow(0);
        }
        FolderNodeBean folderNode = (FolderNodeBean) actualNode.getUserObject();
        try {
            for (Iterator<Document> it = okmDocument.getChilds(token, folderNode.getFolder().getPath()).getItem().iterator(); it.hasNext();) {
                Document doc = it.next();
                Object[] data = new Object[7];
                if (doc.isLocked() && !doc.isCheckedOut()) {
                    is = this.getClass().getClassLoader().getResourceAsStream("com/openkm/openoffice/images/icon/lock.gif");
                    buf = new byte[1024*10];
 
View Full Code Here

            if (obj instanceof Boolean)
                setText(OpenKMAddOn.get().getLang().getString("explorer.retrieve.data"));

            if (obj instanceof FolderNodeBean)
            {
                FolderNodeBean idata = (FolderNodeBean) obj;
                if (expanded) {
                    setIcon(idata.getExpandedIcon());
                } else {
                    setIcon(idata.getIcon());
                }
            } else {
                setIcon(null);
            }
View Full Code Here

    }
   
    private void getRootFolder() throws OKMException {
        try {
            Folder folder = okmRepository.getRootFolder(token);
            FolderNodeBean folderNode = new FolderNodeBean();
            folderNode.setFolder(folder);
            folderNode.setIcon(imageUtil.selectImage(folder));
            DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(folderNode);
            rootModel = new DefaultTreeModel(rootNode);
            tree = new JTree(rootModel);
            TreeCellRenderer renderer = new IconCellRenderer();
            tree.setCellRenderer(renderer);
View Full Code Here

    }

    private void getChilds() throws OKMException {
        try {
        actualNode.removeAllChildren();
        FolderNodeBean folderNode = (FolderNodeBean) actualNode.getUserObject();
            for (Iterator<Folder> it = okmFolder.getChilds(token, folderNode.getFolder().getPath()).getItem().iterator(); it.hasNext();) {
                Folder folder = it.next();
                FolderNodeBean newfolderNode = new FolderNodeBean();
                newfolderNode.setFolder(folder);
                newfolderNode.setIcon(imageUtil.selectImage(folder));
                DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(newfolderNode);
                actualNode.add(childNode);
            }
        } catch (Exception ex) {
            throw new OKMException(ex);
View Full Code Here

                if (obj instanceof Boolean)
                  setText(OpenKMAddOn.get().getLang().getString("tree.retrieve.data"));

                if (obj instanceof FolderNodeBean)
                {
                    FolderNodeBean idata = (FolderNodeBean) obj;
                    if (expanded) {
                        setIcon(idata.getExpandedIcon());
                    } else {
                        setIcon(idata.getIcon());
                    }
                } else {
                    setIcon(null);
                }
View Full Code Here

    }

    private void getRootFolder() throws OKMException {
        try {
            Folder folder = okmRepository.getRootFolder(token);
            FolderNodeBean folderNode = new FolderNodeBean();
            folderNode.setFolder(folder);
            folderNode.setIcon(imageUtil.selectImage(folder));
            DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(folderNode);
            rootModel = new DefaultTreeModel(rootNode);
            tree = new JTree(rootModel);
            TreeCellRenderer renderer = new IconCellRenderer();
            tree.setCellRenderer(renderer);
View Full Code Here

TOP

Related Classes of com.openkm.openoffice.bean.FolderNodeBean

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.