git://git.nikiroo.be
/
jvcard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update support code for Jexer
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
tui
/
windows
/
TuiFileListWindow.java
diff --git
a/src/be/nikiroo/jvcard/tui/windows/TuiFileListWindow.java
b/src/be/nikiroo/jvcard/tui/windows/TuiFileListWindow.java
index f1feea5c021ead72fb6ae9c4c1f24694ed3eb76e..f354a1061c0c9bcbf36cd1fbb2addf2119149dfb 100644
(file)
--- a/
src/be/nikiroo/jvcard/tui/windows/TuiFileListWindow.java
+++ b/
src/be/nikiroo/jvcard/tui/windows/TuiFileListWindow.java
@@
-17,14
+17,13
@@
import be.nikiroo.jvcard.launcher.Main;
import be.nikiroo.jvcard.parsers.Format;
public class TuiFileListWindow extends TuiBrowserWindow {
import be.nikiroo.jvcard.parsers.Format;
public class TuiFileListWindow extends TuiBrowserWindow {
- private TApplication app;
private List<String> files;
private List<CardResult> cards;
private List<String> files;
private List<CardResult> cards;
- public TuiFileListWindow(TApplication app, List<String> files) {
- super(app, "Contacts", false);
+ public TuiFileListWindow(TApplication app, int width, int height,
+ List<String> files) {
+ super(app, width, height, "Contacts", false);
- this.app = app;
this.files = files;
cards = new ArrayList<CardResult>();
this.files = files;
cards = new ArrayList<CardResult>();
@@
-41,7
+40,7
@@
public class TuiFileListWindow extends TuiBrowserWindow {
dataLines.add(listOfOneFile);
}
dataLines.add(listOfOneFile);
}
- addKeyBinding(TKeypress.kbQ, new TAction() {
+ addKeyBinding(TKeypress.kbQ,
"Quit",
new TAction() {
@Override
public void DO() {
close();
@Override
public void DO() {
close();
@@
-55,7
+54,8
@@
public class TuiFileListWindow extends TuiBrowserWindow {
public void onAction(int selectedLine, int selectedColumn) {
try {
@SuppressWarnings("unused")
public void onAction(int selectedLine, int selectedColumn) {
try {
@SuppressWarnings("unused")
- TWindow w = new TuiContactListWindow(app, getCard(selectedLine));
+ TWindow w = new TuiContactListWindow(TuiFileListWindow.this,
+ getCard(selectedLine));
} catch (IOException e) {
setMessage("Fail to get file: " + e.getMessage(), true);
}
} catch (IOException e) {
setMessage("Fail to get file: " + e.getMessage(), true);
}