git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More PMD warnings
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoTreeViewWindow.java
diff --git
a/src/jexer/demos/DemoTreeViewWindow.java
b/src/jexer/demos/DemoTreeViewWindow.java
index 7697981c015bb8b0db59874b0091ee3697ba8332..e31ef765ba7b9df1386996ed7dba811b3c42dac7 100644
(file)
--- a/
src/jexer/demos/DemoTreeViewWindow.java
+++ b/
src/jexer/demos/DemoTreeViewWindow.java
@@
-32,6
+32,7
@@
import java.io.IOException;
import jexer.*;
import jexer.event.*;
import jexer.*;
import jexer.event.*;
+import jexer.ttree.*;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
@@
-40,10
+41,18
@@
import static jexer.TKeypress.*;
*/
public class DemoTreeViewWindow extends TWindow {
*/
public class DemoTreeViewWindow extends TWindow {
+ // ------------------------------------------------------------------------
+ // Variables --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Hang onto my TTreeView so I can resize it with the window.
*/
/**
* Hang onto my TTreeView so I can resize it with the window.
*/
- private TTreeView treeView;
+ private TTreeViewWidget treeView;
+
+ // ------------------------------------------------------------------------
+ // Constructors -----------------------------------------------------------
+ // ------------------------------------------------------------------------
/**
* Public constructor.
/**
* Public constructor.
@@
-55,7
+64,7
@@
public class DemoTreeViewWindow extends TWindow {
super(parent, "Tree View", 0, 0, 44, 16, TWindow.RESIZABLE);
// Load the treeview with "stuff"
super(parent, "Tree View", 0, 0, 44, 16, TWindow.RESIZABLE);
// Load the treeview with "stuff"
- treeView = addTreeView(1, 1, 40, 12);
+ treeView = addTreeView
Widget
(1, 1, 40, 12);
new TDirectoryTreeItem(treeView, ".", true);
statusBar = newStatusBar("Treeview demonstration");
new TDirectoryTreeItem(treeView, ".", true);
statusBar = newStatusBar("Treeview demonstration");
@@
-65,6
+74,10
@@
public class DemoTreeViewWindow extends TWindow {
statusBar.addShortcutKeypress(kbF10, cmExit, "Exit");
}
statusBar.addShortcutKeypress(kbF10, cmExit, "Exit");
}
+ // ------------------------------------------------------------------------
+ // TWindow ----------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Handle window/screen resize events.
*
/**
* Handle window/screen resize events.
*