New Jexer TUI now working (still needs work)
[jvcard.git] / src / be / nikiroo / jvcard / tui / windows / TuiContactWindow.java
CommitLineData
10dd1e38
NR
1package be.nikiroo.jvcard.tui.windows;
2
10dd1e38
NR
3import jexer.TAction;
4import jexer.TApplication;
5import jexer.TKeypress;
6import jexer.TLabel;
7import jexer.TWindow;
10dd1e38
NR
8import be.nikiroo.jvcard.Contact;
9
c8398c23 10public class TuiContactWindow extends TuiBasicWindow {
10dd1e38 11 public TuiContactWindow(final TApplication app, final Contact contact) {
c8398c23 12 super(app, "Contact view");
10dd1e38 13
c8398c23 14 addKeyBinding(TKeypress.kbQ, new TAction() {
10dd1e38
NR
15 @Override
16 public void DO() {
17 app.closeWindow(TuiContactWindow.this);
18 }
19 });
20
c8398c23 21 addKeyBinding(TKeypress.kbR, new TAction() {
10dd1e38
NR
22 @Override
23 public void DO() {
24 @SuppressWarnings("unused")
25 TWindow w = new TuiRawContactWindow(app, contact);
26 }
27 });
28
29 @SuppressWarnings("unused")
30 TLabel l = new TLabel(this, "'r' to see raw view", 0, 0);
10dd1e38
NR
31 }
32}