X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoTreeViewWindow.java;h=365cbcac8bcf05151713a72e856a5972b3649a26;hb=8c236a985851e21e6514b25f0795f8d4aead871a;hp=a1f4a6152cc342b60e693a846ae32dc62d1b7430;hpb=e16dda65585466c8987bd1efd718431450a96605;p=nikiroo-utils.git diff --git a/src/jexer/demos/DemoTreeViewWindow.java b/src/jexer/demos/DemoTreeViewWindow.java index a1f4a61..365cbca 100644 --- a/src/jexer/demos/DemoTreeViewWindow.java +++ b/src/jexer/demos/DemoTreeViewWindow.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2016 Kevin Lamonte + * Copyright (C) 2017 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -32,6 +32,8 @@ import java.io.IOException; import jexer.*; import jexer.event.*; +import static jexer.TCommand.*; +import static jexer.TKeypress.*; /** * This window demonstates the TTreeView widget. @@ -55,6 +57,12 @@ public class DemoTreeViewWindow extends TWindow { // Load the treeview with "stuff" treeView = addTreeView(1, 1, 40, 12); new TDirectoryTreeItem(treeView, ".", true); + + statusBar = newStatusBar("Treeview demonstration"); + statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); + statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); + statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); + statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } /**