1 16 package net.sf.jftp.gui.base.dir; 17 18 import net.sf.jftp.*; 19 import net.sf.jftp.config.*; 20 import net.sf.jftp.gui.base.DownloadList; 21 import net.sf.jftp.gui.framework.*; 22 import net.sf.jftp.net.*; 23 import net.sf.jftp.util.*; 24 25 import java.awt.*; 26 import java.awt.event.*; 27 28 import java.io.*; 29 30 import java.util.*; 31 32 import javax.swing.*; 33 import javax.swing.event.*; 34 35 36 public class DirPanel extends HPanel implements Dir 37 { 38 public int length = 0; 39 public String [] files; 40 public DirEntry[] dirEntry; 41 public String type = null; 42 public long oldtime = 0; 43 public DownloadList dList = null; 44 public BasicConnection con = null; 45 public String path = "./"; 46 public JList jl = new JList(); 47 48 public DirPanel() 49 { 50 } 51 52 public DirPanel(String path) 53 { 54 this.path = path; 55 } 56 57 public DirPanel(String path, String type) 58 { 59 this.path = path; 60 this.type = type; 61 } 62 63 public boolean setPath(String path) 64 { 65 this.path = path; 66 67 return true; 68 } 69 70 public void setType(String type) 71 { 72 this.type = type; 73 } 74 75 public String getPath() 76 { 77 return path; 78 } 79 80 public String getType() 81 { 82 return type; 83 } 84 85 public void setDownloadList(DownloadList d) 86 { 87 dList = d; 88 } 89 90 public BasicConnection getCon() 91 { 92 return con; 93 } 94 95 public void setCon(BasicConnection con) 96 { 97 this.con = con; 98 } 99 100 public void fresh() 101 { 102 } 103 104 public void actionPerformed(Object target, String msg) 105 { 106 } 107 108 public void lock(boolean isNotification) 109 { 110 } 111 112 public void unlock(boolean isNotification) 113 { 114 } 115 } 116 | Popular Tags |