KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jftp > gui > base > dir > DirPanel


1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

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 JavaDoc[] files;
40     public DirEntry[] dirEntry;
41     public String JavaDoc type = null;
42     public long oldtime = 0;
43     public DownloadList dList = null;
44     public BasicConnection con = null;
45     public String JavaDoc path = "./";
46     public JList jl = new JList();
47
48     public DirPanel()
49     {
50     }
51
52     public DirPanel(String JavaDoc path)
53     {
54         this.path = path;
55     }
56
57     public DirPanel(String JavaDoc path, String JavaDoc type)
58     {
59         this.path = path;
60         this.type = type;
61     }
62
63     public boolean setPath(String JavaDoc path)
64     {
65         this.path = path;
66
67         return true;
68     }
69
70     public void setType(String JavaDoc type)
71     {
72         this.type = type;
73     }
74
75     public String JavaDoc getPath()
76     {
77         return path;
78     }
79
80     public String JavaDoc 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 JavaDoc target, String JavaDoc 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