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();
}
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);
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);