01: /*
02: * This program is free software; you can redistribute it and/or
03: * modify it under the terms of the GNU General Public License
04: * as published by the Free Software Foundation; either version 2
05: * of the License, or (at your option) any later version.
06: *
07: * This program is distributed in the hope that it will be useful,
08: * but WITHOUT ANY WARRANTY; without even the implied warranty of
09: * 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: public class DirPanel extends HPanel implements Dir {
36: public int length = 0;
37: public String[] files;
38: public DirEntry[] dirEntry;
39: public String type = null;
40: public long oldtime = 0;
41: public DownloadList dList = null;
42: public BasicConnection con = null;
43: public String path = "./";
44: public JList jl = new JList();
45:
46: public DirPanel() {
47: }
48:
49: public DirPanel(String path) {
50: this .path = path;
51: }
52:
53: public DirPanel(String path, String type) {
54: this .path = path;
55: this .type = type;
56: }
57:
58: public boolean setPath(String path) {
59: this .path = path;
60:
61: return true;
62: }
63:
64: public void setType(String type) {
65: this .type = type;
66: }
67:
68: public String getPath() {
69: return path;
70: }
71:
72: public String getType() {
73: return type;
74: }
75:
76: public void setDownloadList(DownloadList d) {
77: dList = d;
78: }
79:
80: public BasicConnection getCon() {
81: return con;
82: }
83:
84: public void setCon(BasicConnection con) {
85: this .con = con;
86: }
87:
88: public void fresh() {
89: }
90:
91: public void actionPerformed(Object target, String msg) {
92: }
93:
94: public void lock(boolean isNotification) {
95: }
96:
97: public void unlock(boolean isNotification) {
98: }
99: }
|