X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTTableWindow.java;h=33b8116c17da51664adf614a92979c409acbda41;hb=77961919f5b88f024863cf33ffdfe8f3f9e98d83;hp=507dde72df8e923150e89ce7214d136658e21e68;hpb=2e1384cc5018840e683bf29f705c5c08125325a6;p=fanfix.git diff --git a/src/jexer/TTableWindow.java b/src/jexer/TTableWindow.java index 507dde7..33b8116 100644 --- a/src/jexer/TTableWindow.java +++ b/src/jexer/TTableWindow.java @@ -88,6 +88,10 @@ public class TTableWindow extends TScrollableWindow { public void onFocus() { // Enable the table menu items. getApplication().enableMenuItem(TMenu.MID_CUT); + getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_ROW_LABELS); + getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_COLUMN_LABELS); + getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_ROW); + 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_RIGHT); @@ -117,6 +121,10 @@ public class TTableWindow extends TScrollableWindow { public void onUnfocus() { // Disable the table menu items. getApplication().disableMenuItem(TMenu.MID_CUT); + getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_ROW_LABELS); + getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_COLUMN_LABELS); + getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_ROW); + 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_RIGHT);