Last change
on this file was 33053, checked in by ak19, 5 years ago |
I still had some stuff of Nathan Kelly's (FileTransfer-WebSocketPair) sitting on my USB. Had already commited the Themes folder at the time, 2 years back. Not sure if he wanted this additional folder commited. But I didn't want to delete it and decided it will be better off on SVN. When we use his project, if we find we didn't need this test folder, we can remove it from svn then.
|
File size:
692 bytes
|
Line | |
---|
1 | package com.gs3.testGXT.server.Greenstone;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 | import java.util.ArrayList;
|
---|
5 |
|
---|
6 | public class GWTFileNode extends BaseFileNode {
|
---|
7 |
|
---|
8 | public GWTFileNode(File file) {
|
---|
9 | super(file);
|
---|
10 | this.child_nodes_unfiltered = new ArrayList<BaseFileNode>();
|
---|
11 | }
|
---|
12 |
|
---|
13 | @Override
|
---|
14 | protected BaseFileNode addChildNode(File file) {
|
---|
15 | GWTFileNode child_node = new GWTFileNode(file);
|
---|
16 | child_node.setModel(model);
|
---|
17 | child_node.setParent(this);
|
---|
18 | return child_node;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void refreshChildren() {
|
---|
22 | this.child_nodes_unfiltered = new ArrayList();
|
---|
23 | if(file.isDirectory()) {
|
---|
24 | File[] files = file.listFiles();
|
---|
25 | for (File f : files) {
|
---|
26 | child_nodes_unfiltered.add(new GWTFileNode(f));
|
---|
27 | }
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.