table row/column insert
[fanfix.git] / src / jexer / TTableWindow.java
index 984e660fe51e8738a1c344576b485ab83ffc02ba..d42ed097773459e3dcf33df3158fda038f0810d4 100644 (file)
@@ -90,6 +90,8 @@ public class TTableWindow extends TScrollableWindow {
     public void onFocus() {
         // Enable the table menu items.
         getApplication().enableMenuItem(TMenu.MID_CUT);
+        getApplication().enableMenuItem(TMenu.MID_TABLE_RENAME_COLUMN);
+        getApplication().enableMenuItem(TMenu.MID_TABLE_RENAME_ROW);
         getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_ROW_LABELS);
         getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_COLUMN_LABELS);
         getApplication().enableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_ROW);
@@ -125,6 +127,8 @@ public class TTableWindow extends TScrollableWindow {
     public void onUnfocus() {
         // Disable the table menu items.
         getApplication().disableMenuItem(TMenu.MID_CUT);
+        getApplication().disableMenuItem(TMenu.MID_TABLE_RENAME_COLUMN);
+        getApplication().disableMenuItem(TMenu.MID_TABLE_RENAME_ROW);
         getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_ROW_LABELS);
         getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_COLUMN_LABELS);
         getApplication().disableMenuItem(TMenu.MID_TABLE_VIEW_HIGHLIGHT_ROW);