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
#45 fix example usage
[fanfix.git]
/
src
/
jexer
/
TTableWindow.java
diff --git
a/src/jexer/TTableWindow.java
b/src/jexer/TTableWindow.java
index 47a5b9ec37368537e11c89afabb414c28f68a4bb..984e660fe51e8738a1c344576b485ab83ffc02ba 100644
(file)
--- a/
src/jexer/TTableWindow.java
+++ b/
src/jexer/TTableWindow.java
@@
-75,7
+75,7
@@
public class TTableWindow extends TScrollableWindow {
super(parent, title, 0, 0, parent.getScreen().getWidth() / 2,
parent.getScreen().getHeight() / 2 - 2, RESIZABLE | CENTERED);
super(parent, title, 0, 0, parent.getScreen().getWidth() / 2,
parent.getScreen().getHeight() / 2 - 2, RESIZABLE | CENTERED);
- tableField =
new TTableWidget(this,
0, 0, getWidth() - 2, getHeight() - 2);
+ tableField =
addTable(
0, 0, getWidth() - 2, getHeight() - 2);
setupAfterTable();
}
setupAfterTable();
}
@@
-96,6
+96,8
@@
public class TTableWindow extends TScrollableWindow {
getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_COLUMN);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_NONE);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_ALL);
getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_COLUMN);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_NONE);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_ALL);
+ getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_CELL_NONE);
+ getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_CELL_ALL);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_RIGHT);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_LEFT);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_TOP);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_RIGHT);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_LEFT);
getApplication().enableMenuItem(TMenu.MID_TABLE_BORDER_TOP);
@@
-129,6
+131,8
@@
public class TTableWindow extends TScrollableWindow {
getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_COLUMN);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_NONE);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_ALL);
getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_COLUMN);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_NONE);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_ALL);
+ getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_CELL_NONE);
+ getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_CELL_ALL);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_RIGHT);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_LEFT);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_TOP);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_RIGHT);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_LEFT);
getApplication().disableMenuItem(TMenu.MID_TABLE_BORDER_TOP);