Libraryless. Click here for Pure Java version (15718L/111K).
1 | !7 |
2 | |
3 | sclass FileBrowser > DynObjectTable<File> {
|
4 | File dir; |
5 | transient JTree tree; |
6 | |
7 | start {
|
8 | itemToMap = itemToMap_File(); |
9 | if (dir == null) setDir(userDir()); |
10 | } |
11 | |
12 | visualize {
|
13 | ret jhsplit( |
14 | tree = jtree_openRootNode(jDirectoryTree(dir)), |
15 | super.visualize(), |
16 | 0.3); |
17 | } |
18 | |
19 | // API |
20 | void setDir(File dir) {
|
21 | setField(+dir); |
22 | setData(sortFilesAlphaNumIC(listFilesOnly(dir))); |
23 | } |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020596 |
| Snippet name: | FileBrowser (dev.) |
| Eternal ID of this version: | #1020596/6 |
| Text MD5: | 8756ea7071079f6a792a33f8ea3cb77f |
| Transpilation MD5: | decb5d0c9098b2e099a46cc3f24bb624 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-28 00:25:58 |
| Source code size: | 442 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 586 / 3761 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |