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
#27 expose messagebox type for inputbox
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoEditorWindow.java
diff --git
a/src/jexer/demos/DemoEditorWindow.java
b/src/jexer/demos/DemoEditorWindow.java
index f04916a1df1a933f7ab0f495dfbaae22a631f674..104715997261206c0d54b1cadd4bf54e70360751 100644
(file)
--- a/
src/jexer/demos/DemoEditorWindow.java
+++ b/
src/jexer/demos/DemoEditorWindow.java
@@
-34,15
+34,23
@@
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
/**
import static jexer.TKeypress.*;
/**
- * This window demonstates the T
Text, THScroller, and TVScroller widgets
.
+ * This window demonstates the T
Editor widget
.
*/
public class DemoEditorWindow extends TWindow {
*/
public class DemoEditorWindow extends TWindow {
+ // ------------------------------------------------------------------------
+ // Variables --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Hang onto my TEditor so I can resize it with the window.
*/
private TEditorWidget editField;
/**
* Hang onto my TEditor so I can resize it with the window.
*/
private TEditorWidget editField;
+ // ------------------------------------------------------------------------
+ // Constructors -----------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Public constructor makes a text window out of any string.
*
/**
* Public constructor makes a text window out of any string.
*
@@
-56,10
+64,9
@@
public class DemoEditorWindow extends TWindow {
super(parent, title, 0, 0, 44, 22, RESIZABLE);
editField = addEditor(text, 0, 0, 42, 20);
super(parent, title, 0, 0, 44, 22, RESIZABLE);
editField = addEditor(text, 0, 0, 42, 20);
- statusBar = newStatusBar("Editable text window");
+ statusBar = newStatusBar("Editable text
demo
window");
statusBar.addShortcutKeypress(kbF1, cmHelp, "Help");
statusBar.addShortcutKeypress(kbF2, cmShell, "Shell");
statusBar.addShortcutKeypress(kbF1, cmHelp, "Help");
statusBar.addShortcutKeypress(kbF2, cmShell, "Shell");
- statusBar.addShortcutKeypress(kbF3, cmOpen, "Open");
statusBar.addShortcutKeypress(kbF10, cmExit, "Exit");
}
statusBar.addShortcutKeypress(kbF10, cmExit, "Exit");
}
@@
-100,6
+107,10
@@
public class DemoEditorWindow extends TWindow {
}
}
+ // ------------------------------------------------------------------------
+ // TWindow ----------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Handle window/screen resize events.
*
/**
* Handle window/screen resize events.
*