Coverage Report - wjhk.jupload2.gui.filepanel.treeview.RootNode
 
Classes in this File Line Coverage Branch Coverage Complexity
RootNode
50 %
3/6
N/A
1
 
 1  
 //
 2  
 // $Id$
 3  
 //
 4  
 // jupload - A file upload applet.
 5  
 //
 6  
 // Copyright 2015 The JUpload Team
 7  
 //
 8  
 // Created: 7 févr. 2015
 9  
 // Creator: etienne_sf
 10  
 // Last modified: $Date$
 11  
 //
 12  
 // This program is free software; you can redistribute it and/or modify
 13  
 // it under the terms of the GNU General Public License as published by
 14  
 // the Free Software Foundation; either version 2 of the License, or
 15  
 // (at your option) any later version.
 16  
 //
 17  
 // This program is distributed in the hope that it will be useful,
 18  
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 19  
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 20  
 // GNU General Public License for more details.
 21  
 //
 22  
 // You should have received a copy of the GNU General Public License
 23  
 // along with this program; if not, write to the Free Software
 24  
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 25  
 
 26  
 package wjhk.jupload2.gui.filepanel.treeview;
 27  
 
 28  
 import java.util.Date;
 29  
 
 30  
 import wjhk.jupload2.gui.filepanel.FilePanelFlatDataModel2;
 31  
 import wjhk.jupload2.policies.UploadPolicy;
 32  
 
 33  
 /**
 34  
  * This class is the root of JUPload of the file system. This allows to manage the difference between Unix and Windows:
 35  
  * there is one root on unix, and potential several on windows. This root is virtual, and is the parent for '/' (on
 36  
  * Unix) and for C:\, D:\ (...) on windows.
 37  
  * 
 38  
  * @author etienne_sf
 39  
  */
 40  
 public class RootNode extends FolderNode {
 41  
 
 42  
     public RootNode(UploadPolicy uploadPolicy, MyTreeTableModel<TreeFileDataNode> model,
 43  
             FilePanelFlatDataModel2 flatModel) {
 44  267
         super(uploadPolicy, model, flatModel);
 45  267
     }
 46  
 
 47  
     public String getFileName() {
 48  94
         return "";
 49  
     }
 50  
 
 51  
     public Date getLastModified() {
 52  0
         return null;
 53  
     }
 54  
 
 55  
     public String getDirectory() {
 56  0
         return "";
 57  
     }
 58  
 
 59  
     public boolean canRead() {
 60  0
         return false;
 61  
     }
 62  
 
 63  
 }